Postgres Health Checks
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f237856f98
commit
dc5390f390
@ -15,12 +15,18 @@ services:
|
|||||||
- pg_data:/var/lib/postgresql/data
|
- pg_data:/var/lib/postgresql/data
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "pg_isready"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
|
||||||
keycloak:
|
keycloak:
|
||||||
image: quay.io/keycloak/keycloak:19.0.0
|
image: quay.io/keycloak/keycloak:19.0.0
|
||||||
command: start
|
command: start
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
postgres:
|
||||||
|
condition: service_healthy
|
||||||
environment:
|
environment:
|
||||||
- "KC_DB=postgres"
|
- "KC_DB=postgres"
|
||||||
- "KC_DB_URL_HOST=postgres"
|
- "KC_DB_URL_HOST=postgres"
|
||||||
|
@ -32,7 +32,8 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "7779:22"
|
- "7779:22"
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
db:
|
||||||
|
condition: service_healthy
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: postgres:14
|
image: postgres:14
|
||||||
@ -45,6 +46,11 @@ services:
|
|||||||
- backend
|
- backend
|
||||||
volumes:
|
volumes:
|
||||||
- pg_data:/var/lib/postgresql/data
|
- pg_data:/var/lib/postgresql/data
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "pg_isready"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
|
||||||
drone:
|
drone:
|
||||||
image: drone/drone:2
|
image: drone/drone:2
|
||||||
|
@ -12,6 +12,11 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "pg_isready"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
|
||||||
app:
|
app:
|
||||||
# Make sure to use the latest release from https://hedgedoc.org/latest-release
|
# Make sure to use the latest release from https://hedgedoc.org/latest-release
|
||||||
@ -48,7 +53,8 @@ services:
|
|||||||
- "traefik.http.services.hedgedoc.loadbalancer.server.port=3000"
|
- "traefik.http.services.hedgedoc.loadbalancer.server.port=3000"
|
||||||
- "com.centurylinklabs.watchtower.scope=update"
|
- "com.centurylinklabs.watchtower.scope=update"
|
||||||
depends_on:
|
depends_on:
|
||||||
- database
|
database:
|
||||||
|
condition: service_healthy
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
- gateway
|
- gateway
|
||||||
|
Loading…
Reference in New Issue
Block a user