changed the container name and added healthcheck
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user