changed the container name and added healthcheck

This commit is contained in:
2026-05-10 22:38:36 -07:00
parent 885e77ec8b
commit 8d909496f4
+7 -1
View File
@@ -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