chore(docker): tweak db healthcheck

Make the stack faster to start.
This commit is contained in:
tigattack
2025-09-24 21:36:51 +01:00
parent dc1ad6882c
commit e9402dbf32
2 changed files with 4 additions and 4 deletions

View File

@@ -10,9 +10,9 @@ services:
- ./compose_dev_data/db:/var/lib/postgresql/data - ./compose_dev_data/db:/var/lib/postgresql/data
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U patchmon_user -d patchmon_db"] test: ["CMD-SHELL", "pg_isready -U patchmon_user -d patchmon_db"]
interval: 10s interval: 3s
timeout: 5s timeout: 5s
retries: 5 retries: 7
backend: backend:
build: build:

View File

@@ -10,9 +10,9 @@ services:
- postgres_data:/var/lib/postgresql/data - postgres_data:/var/lib/postgresql/data
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U patchmon_user -d patchmon_db"] test: ["CMD-SHELL", "pg_isready -U patchmon_user -d patchmon_db"]
interval: 10s interval: 3s
timeout: 5s timeout: 5s
retries: 5 retries: 7
backend: backend:
image: ghcr.io/9technologygroup/patchmon-backend:latest image: ghcr.io/9technologygroup/patchmon-backend:latest