diff --git a/IT-Tools/docker-compose.yaml b/IT-Tools/docker-compose.yaml index cee0d7c..3b8b87a 100644 --- a/IT-Tools/docker-compose.yaml +++ b/IT-Tools/docker-compose.yaml @@ -1,11 +1,17 @@ services: app: image: corentinth/it-tools:latest - container_name: ittools + container_name: it-tools ports: - ${IT_TOOLS_PORT}:80 deploy: resources: limits: memory: 512m + healthcheck: + test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://127.0.0.1/ || exit 1"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 15s restart: unless-stopped \ No newline at end of file