chore(docker-compose): add healthchecks for runtipi container

This commit is contained in:
Nicolas Meienberger 2024-03-19 18:49:20 +01:00
parent bf14df3e4b
commit 1384940bf5

View File

@ -4,7 +4,8 @@ services:
runtipi-reverse-proxy:
container_name: runtipi-reverse-proxy
depends_on:
- runtipi
runtipi:
condition: service_healthy
image: traefik:v2.11
restart: unless-stopped
ports:
@ -65,6 +66,11 @@ services:
SENTRY_DISABLE_AUTO_UPLOAD: true
TIPI_VERSION: development
container_name: runtipi
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:5000/worker-api/healthcheck']
interval: 5s
timeout: 3s
retries: 20
restart: unless-stopped
depends_on:
runtipi-db: