fix(docker): use 3s intervals for all healthchecks

This'll speed up the docker development and deployment
processes significantly.

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-11-03 05:39:28 -07:00
parent 16e6fa2cdd
commit e4a5b7fae9
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -37,6 +37,7 @@ services:
command: /docker/scripts/run-memcached.sh command: /docker/scripts/run-memcached.sh
healthcheck: healthcheck:
test: "bash /docker/health/memcached.sh" test: "bash /docker/health/memcached.sh"
interval: 3s
redis: redis:
image: aurweb:latest image: aurweb:latest
@ -45,6 +46,7 @@ services:
command: /docker/scripts/run-redis.sh command: /docker/scripts/run-redis.sh
healthcheck: healthcheck:
test: "bash /docker/health/redis.sh" test: "bash /docker/health/redis.sh"
interval: 3s
ports: ports:
- "16379:6379" - "16379:6379"
@ -62,6 +64,7 @@ services:
- mariadb_data:/var/lib/mysql - mariadb_data:/var/lib/mysql
healthcheck: healthcheck:
test: "bash /docker/health/mariadb.sh" test: "bash /docker/health/mariadb.sh"
interval: 3s
mariadb_init: mariadb_init:
image: aurweb:latest image: aurweb:latest
@ -85,6 +88,7 @@ services:
- "2222:2222" - "2222:2222"
healthcheck: healthcheck:
test: "bash /docker/health/sshd.sh" test: "bash /docker/health/sshd.sh"
interval: 3s
depends_on: depends_on:
mariadb_init: mariadb_init:
condition: service_started condition: service_started
@ -100,6 +104,7 @@ services:
command: /docker/scripts/run-smartgit.sh command: /docker/scripts/run-smartgit.sh
healthcheck: healthcheck:
test: "bash /docker/health/smartgit.sh" test: "bash /docker/health/smartgit.sh"
interval: 3s
cgit-php: cgit-php:
image: aurweb:latest image: aurweb:latest
@ -111,6 +116,7 @@ services:
command: /docker/scripts/run-cgit.sh 3000 command: /docker/scripts/run-cgit.sh 3000
healthcheck: healthcheck:
test: "bash /docker/health/cgit.sh 3000" test: "bash /docker/health/cgit.sh 3000"
interval: 3s
depends_on: depends_on:
git: git:
condition: service_healthy condition: service_healthy
@ -129,6 +135,7 @@ services:
command: /docker/scripts/run-cgit.sh 3000 command: /docker/scripts/run-cgit.sh 3000
healthcheck: healthcheck:
test: "bash /docker/health/cgit.sh 3000" test: "bash /docker/health/cgit.sh 3000"
interval: 3s
depends_on: depends_on:
git: git:
condition: service_healthy condition: service_healthy
@ -148,6 +155,7 @@ services:
command: /docker/scripts/run-php.sh command: /docker/scripts/run-php.sh
healthcheck: healthcheck:
test: "bash /docker/health/php.sh" test: "bash /docker/health/php.sh"
interval: 3s
depends_on: depends_on:
ca: ca:
condition: service_started condition: service_started
@ -174,6 +182,7 @@ services:
command: /docker/scripts/run-fastapi.sh "${FASTAPI_BACKEND}" command: /docker/scripts/run-fastapi.sh "${FASTAPI_BACKEND}"
healthcheck: healthcheck:
test: "bash /docker/health/fastapi.sh ${FASTAPI_BACKEND}" test: "bash /docker/health/fastapi.sh ${FASTAPI_BACKEND}"
interval: 3s
depends_on: depends_on:
ca: ca:
condition: service_started condition: service_started
@ -198,6 +207,7 @@ services:
- "8444:8444" # FastAPI - "8444:8444" # FastAPI
healthcheck: healthcheck:
test: "bash /docker/health/nginx.sh" test: "bash /docker/health/nginx.sh"
interval: 3s
depends_on: depends_on:
cgit-php: cgit-php:
condition: service_healthy condition: service_healthy