Browse Source

Make healthcheck test bypass cache.

pull/14/head
FireMasterK 4 months ago
parent
commit
597bdfb23d
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD
  1. 4
      template/docker-compose.caddy.yml
  2. 4
      template/docker-compose.nginx.yml

4
template/docker-compose.caddy.yml

@ -31,8 +31,8 @@ services:
depends_on:
- piped
healthcheck:
test: ash -c "wget --no-verbose --tries=1 --spider
127.0.0.1:80/trending?region=US || (varnishreload && exit 1)"
test: ash -c "wget --no-verbose --tries=1 --spider 127.0.0.1:80/feed ||
(varnishreload && exit 1)"
interval: 10s
timeout: 10s
retries: 1

4
template/docker-compose.nginx.yml

@ -31,8 +31,8 @@ services:
depends_on:
- piped
healthcheck:
test: ash -c "wget --no-verbose --tries=1 --spider
127.0.0.1:80/trending?region=US || (varnishreload && exit 1)"
test: ash -c "wget --no-verbose --tries=1 --spider 127.0.0.1:80/feed ||
(varnishreload && exit 1)"
interval: 10s
timeout: 10s
retries: 1

Loading…
Cancel
Save