mirror of
https://github.com/9technologygroup/patchmon.net.git
synced 2025-10-27 10:03:45 +00:00
chore(docker): tweak db healthcheck
Make the stack faster to start.
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user