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