diff --git a/docker-compose.yml b/docker-compose.yml index c0d99d8..acccf20 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: