Add healthcheck
This commit is contained in:
@@ -3,6 +3,12 @@ services:
|
||||
image: git.mifi.dev/mifi-holdings/mail-autoconfig:latest
|
||||
container_name: mail-autoconfig
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:80/mail/config-v1.1.xml')"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
networks:
|
||||
- traefik
|
||||
labels:
|
||||
|
||||
Reference in New Issue
Block a user