Fix the "Error 503 Backend fetch failed" (#8)

* Fix backend error on recreation

* typo
This commit is contained in:
AtomHare 2021-10-05 18:58:05 +02:00 committed by GitHub
parent eb62697497
commit e1acda33ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -28,6 +28,11 @@ services:
container_name: varnish container_name: varnish
depends_on: depends_on:
- piped - 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: caddy:
image: caddy:2-alpine image: caddy:2-alpine
restart: unless-stopped restart: unless-stopped

View File

@ -28,6 +28,11 @@ services:
container_name: varnish container_name: varnish
depends_on: depends_on:
- piped - 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: nginx:
image: nginx:mainline-alpine image: nginx:mainline-alpine
restart: unless-stopped restart: unless-stopped