mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(docker): reduce health check interval to 2s
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
1fede8d2a3
commit
3a43e2b98c
1 changed files with 12 additions and 12 deletions
|
@ -32,7 +32,7 @@ services:
|
||||||
command: /docker/scripts/run-ca.sh
|
command: /docker/scripts/run-ca.sh
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: "bash /docker/health/run-ca.sh"
|
test: "bash /docker/health/run-ca.sh"
|
||||||
interval: 3s
|
interval: 2s
|
||||||
|
|
||||||
memcached:
|
memcached:
|
||||||
image: aurweb:latest
|
image: aurweb:latest
|
||||||
|
@ -40,7 +40,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
|
interval: 2s
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: aurweb:latest
|
image: aurweb:latest
|
||||||
|
@ -49,7 +49,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
|
interval: 2s
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:16379:6379"
|
- "127.0.0.1:16379:6379"
|
||||||
|
|
||||||
|
@ -67,7 +67,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
|
interval: 2s
|
||||||
|
|
||||||
mariadb_init:
|
mariadb_init:
|
||||||
image: aurweb:latest
|
image: aurweb:latest
|
||||||
|
@ -98,7 +98,7 @@ services:
|
||||||
- mariadb_test_run:/var/run/mysqld # Bind socket in this volume.
|
- mariadb_test_run:/var/run/mysqld # Bind socket in this volume.
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: "bash /docker/health/mariadb.sh"
|
test: "bash /docker/health/mariadb.sh"
|
||||||
interval: 3s
|
interval: 2s
|
||||||
|
|
||||||
git:
|
git:
|
||||||
image: aurweb:latest
|
image: aurweb:latest
|
||||||
|
@ -113,7 +113,7 @@ services:
|
||||||
- "2222:2222"
|
- "2222:2222"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: "bash /docker/health/sshd.sh"
|
test: "bash /docker/health/sshd.sh"
|
||||||
interval: 3s
|
interval: 2s
|
||||||
depends_on:
|
depends_on:
|
||||||
mariadb_init:
|
mariadb_init:
|
||||||
condition: service_started
|
condition: service_started
|
||||||
|
@ -129,7 +129,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
|
interval: 2s
|
||||||
|
|
||||||
cgit-php:
|
cgit-php:
|
||||||
image: aurweb:latest
|
image: aurweb:latest
|
||||||
|
@ -142,7 +142,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
|
interval: 2s
|
||||||
depends_on:
|
depends_on:
|
||||||
git:
|
git:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
@ -162,7 +162,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
|
interval: 2s
|
||||||
depends_on:
|
depends_on:
|
||||||
git:
|
git:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
@ -198,7 +198,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
|
interval: 2s
|
||||||
depends_on:
|
depends_on:
|
||||||
ca:
|
ca:
|
||||||
condition: service_started
|
condition: service_started
|
||||||
|
@ -229,7 +229,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
|
interval: 2s
|
||||||
depends_on:
|
depends_on:
|
||||||
ca:
|
ca:
|
||||||
condition: service_started
|
condition: service_started
|
||||||
|
@ -256,7 +256,7 @@ services:
|
||||||
- "127.0.0.1:8444:8444" # FastAPI
|
- "127.0.0.1:8444:8444" # FastAPI
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: "bash /docker/health/nginx.sh"
|
test: "bash /docker/health/nginx.sh"
|
||||||
interval: 3s
|
interval: 2s
|
||||||
depends_on:
|
depends_on:
|
||||||
cgit-php:
|
cgit-php:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
Loading…
Add table
Reference in a new issue