Add healthcheck to infmap docker-compose service
This commit is contained in:
@@ -11,6 +11,12 @@ services:
|
|||||||
- ${CONFIG_PATH}/infrastructure.conf:/app/infrastructure.conf:ro
|
- ${CONFIG_PATH}/infrastructure.conf:/app/infrastructure.conf:ro
|
||||||
- app_data:/app/data
|
- app_data:/app/data
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:5000/')"]
|
||||||
|
interval: 30s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 3
|
||||||
|
start_period: 15s
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
app_data:
|
app_data:
|
||||||
|
|||||||
Reference in New Issue
Block a user