Add Docker healthcheck to docker-compose.yml
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
88bcbc376e
commit
fb5e2d1329
|
|
@ -11,6 +11,12 @@ services:
|
|||
- "traefik.http.routers.rsocials.entrypoints=web"
|
||||
- "traefik.http.services.rsocials.loadbalancer.server.port=3000"
|
||||
- "traefik.docker.network=traefik-public"
|
||||
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
|
||||
cap_drop:
|
||||
|
|
|
|||
Loading…
Reference in New Issue