correction healthchecks

This commit is contained in:
Gitouche 2023-08-14 16:45:24 +02:00
parent dc1373e30a
commit 9b48df5527
4 changed files with 22 additions and 17 deletions

View file

@ -16,7 +16,7 @@ services:
test: ["CMD", "curl", "-fSs", "http://localhost:3000/api/healthz"] test: ["CMD", "curl", "-fSs", "http://localhost:3000/api/healthz"]
interval: 60s interval: 60s
timeout: 10s timeout: 10s
retries: 5 retries: 3
start_period: 5s start_period: 5s
depends_on: depends_on:
- db - db
@ -28,9 +28,10 @@ services:
- gitea-pgsql:/var/lib/postgresql/data:Z - gitea-pgsql:/var/lib/postgresql/data:Z
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U gitea"] test: ["CMD-SHELL", "pg_isready -U gitea"]
interval: 5s interval: 60s
timeout: 5s timeout: 10s
retries: 5 retries: 3
start_period: 5s
volumes: volumes:
gitea-data: gitea-data:

View file

@ -22,9 +22,10 @@ services:
- database:/var/lib/postgresql/data - database:/var/lib/postgresql/data
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U hedgedoc"] test: ["CMD-SHELL", "pg_isready -U hedgedoc"]
interval: 5s interval: 60s
timeout: 5s timeout: 10s
retries: 5 retries: 3
start_period: 5s
networks: networks:
backend: backend:
#restart: always #restart: always

View file

@ -7,9 +7,10 @@ services:
- matrixdotorg_synapse-pgsql:/var/lib/postgresql/data/:Z - matrixdotorg_synapse-pgsql:/var/lib/postgresql/data/:Z
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U synapse"] test: ["CMD-SHELL", "pg_isready -U synapse"]
interval: 5s interval: 60s
timeout: 5s timeout: 10s
retries: 5 retries: 3
start_period: 5s
synapse: synapse:
image: "${synapse_image}:${synapse_version}" image: "${synapse_image}:${synapse_version}"
@ -20,10 +21,10 @@ services:
- matrixdotorg_synapse-data:/data:Z - matrixdotorg_synapse-data:/data:Z
healthcheck: healthcheck:
test: ["CMD", "curl", "-fSs", "http://localhost:8008/health"] test: ["CMD", "curl", "-fSs", "http://localhost:8008/health"]
interval: 15s interval: 60s
timeout: 5s timeout: 10s
retries: 3 retries: 3
start_period: 5s start_period: 15s
depends_on: depends_on:
synapse-db: synapse-db:
condition: service_healthy condition: service_healthy

View file

@ -7,9 +7,10 @@ services:
- database:${database_path}:Z - database:${database_path}:Z
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U vaultwarden"] test: ["CMD-SHELL", "pg_isready -U vaultwarden"]
interval: 5s interval: 60s
timeout: 5s timeout: 10s
retries: 5 retries: 3
start_period: 5s
app: app:
container_name: ${container_name} container_name: ${container_name}
@ -22,7 +23,8 @@ services:
test: ["CMD", "/healthcheck.sh"] test: ["CMD", "/healthcheck.sh"]
interval: 60s interval: 60s
timeout: 10s timeout: 10s
retries: 5 retries: 3
start_period: 5s
depends_on: depends_on:
- ${db_container_name} - ${db_container_name}