add healthcheck
This commit is contained in:
parent
8d298917ee
commit
e0436feaf3
1 changed files with 6 additions and 2 deletions
|
@ -5,8 +5,6 @@ services:
|
|||
container_name: excalidraw
|
||||
restart: on-failure
|
||||
stdin_open: true
|
||||
healthcheck:
|
||||
disable: true
|
||||
environment:
|
||||
- NODE_ENV=development
|
||||
networks:
|
||||
|
@ -28,6 +26,12 @@ services:
|
|||
- "traefik.http.routers.excalidraw-secure.tls=true"
|
||||
- "traefik.http.routers.excalidraw-secure.service=excalidraw"
|
||||
- "traefik.http.services.excalidraw.loadbalancer.server.port=80"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsS -m 5 http://127.0.0.1/ >/dev/null || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
start_period: 30s
|
||||
|
||||
networks:
|
||||
traefik:
|
||||
|
|
Loading…
Add table
Reference in a new issue