Fix backend error on recreation

This commit is contained in:
AtomHare 2021-10-05 18:43:22 +02:00
parent eb62697497
commit 4db7efede3
2 changed files with 11 additions and 0 deletions

View File

@ -28,6 +28,12 @@ services:
container_name: varnish
depends_on:
- piped
healthcheck:
test: ash -c "wget --no-verbose --tries=1 --spider 127.0.0.1:80/trending?region=US || (varnishreload && exit 1)"
interval: 10s
timeout: 10s
retries: 1
caddy:
image: caddy:2-alpine
restart: unless-stopped

View File

@ -28,6 +28,11 @@ services:
container_name: varnish
depends_on:
- piped
healthcheck:
test: ash -c "wget --no-verbose --tries=1 --spider 127.0.0.1:80/trending?region=US || (varnishreload && exit 1)"
interval: 10s
timeout: 10s
retries: 1
nginx:
image: nginx:mainline-alpine
restart: unless-stopped