[Compose] Slight changes to health checks to start a bit faster

This commit is contained in:
andryyy 2017-07-06 11:34:10 +02:00
parent e357eb1131
commit 44d3a6eee8

View File

@ -11,7 +11,7 @@ services:
healthcheck: healthcheck:
test: ["CMD", "nslookup", "mailcow.email", "127.0.0.1"] test: ["CMD", "nslookup", "mailcow.email", "127.0.0.1"]
interval: 30s interval: 30s
timeout: 7s timeout: 3s
retries: 10 retries: 10
volumes: volumes:
- ./data/conf/unbound/unbound.conf:/etc/unbound/unbound.conf:ro - ./data/conf/unbound/unbound.conf:/etc/unbound/unbound.conf:ro
@ -27,8 +27,8 @@ services:
command: mysqld --max_allowed_packet=128M command: mysqld --max_allowed_packet=128M
healthcheck: healthcheck:
test: ["CMD", "mysqladmin", "ping", "--host", "localhost", "--silent"] test: ["CMD", "mysqladmin", "ping", "--host", "localhost", "--silent"]
interval: 10s interval: 5s
timeout: 7s timeout: 5s
retries: 10 retries: 10
volumes: volumes:
- mysql-vol-1:/var/lib/mysql/ - mysql-vol-1:/var/lib/mysql/
@ -258,10 +258,10 @@ services:
- php-fpm-mailcow - php-fpm-mailcow
image: nginx:mainline-alpine image: nginx:mainline-alpine
healthcheck: healthcheck:
test: ["CMD", "ping", "php-fpm-mailcow", "-c", "10"] test: ["CMD", "ping", "php-fpm-mailcow"]
interval: 10s interval: 5s
timeout: 30s timeout: 5s
retries: 5 retries: 10
command: /bin/sh -c "envsubst < /etc/nginx/conf.d/templates/listen_plain.template > /etc/nginx/conf.d/listen_plain.active && command: /bin/sh -c "envsubst < /etc/nginx/conf.d/templates/listen_plain.template > /etc/nginx/conf.d/listen_plain.active &&
envsubst < /etc/nginx/conf.d/templates/listen_ssl.template > /etc/nginx/conf.d/listen_ssl.active && envsubst < /etc/nginx/conf.d/templates/listen_ssl.template > /etc/nginx/conf.d/listen_ssl.active &&
envsubst < /etc/nginx/conf.d/templates/server_name.template > /etc/nginx/conf.d/server_name.active && envsubst < /etc/nginx/conf.d/templates/server_name.template > /etc/nginx/conf.d/server_name.active &&