Add Docker healthcheck to docker-compose.yml
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
162d39b9d1
commit
047d7c3578
|
|
@ -8,6 +8,12 @@ services:
|
|||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.rfunds.rule=Host(`rfunds.online`) || Host(`www.rfunds.online`)"
|
||||
- "traefik.http.services.rfunds.loadbalancer.server.port=3000"
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:3000/"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 15s
|
||||
networks:
|
||||
- traefik-public
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue