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