Skip to content

Commit c6c4472

Browse files
committed
restore some changes to spec/docker-compose.yml from 542c698
these were skipped during rebase so manually applied here: - add depends_on openvoxserver to several services - add health check to postgres service
1 parent ae83c3d commit c6c4472

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

spec/docker-compose.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ services:
55
container_name: ubuntu_node
66
ports:
77
- "20022:22"
8+
depends_on:
9+
openvoxserver:
10+
condition: service_healthy
811

912
puppet_7_node:
1013
build:
@@ -14,6 +17,9 @@ services:
1417
container_name: puppet_7_node
1518
ports:
1619
- "20025:22"
20+
depends_on:
21+
openvoxserver:
22+
condition: service_healthy
1723

1824
postgres:
1925
image: docker.io/postgres:17-alpine
@@ -25,6 +31,11 @@ services:
2531
volumes:
2632
- ./fixtures/puppetdb/custom_source:/docker-entrypoint-initdb.d
2733
restart: always
34+
healthcheck:
35+
test: ["CMD-SHELL", "sh -c 'pg_isready -U openvoxdb -d openvoxdb'"]
36+
interval: 10s
37+
timeout: 3s
38+
retries: 3
2839

2940
openvoxdb:
3041
image: ghcr.io/openvoxproject/openvoxdb:latest
@@ -34,6 +45,9 @@ services:
3445
restart: always
3546
ports:
3647
- "18081:8081"
48+
depends_on:
49+
openvoxserver:
50+
condition: service_healthy
3751

3852
openvoxserver:
3953
image: ghcr.io/openvoxproject/openvoxserver:latest

0 commit comments

Comments
 (0)