Skip to content

Commit c48a505

Browse files
committed
build: fix ensure that central migrations complete before the webhook init
1 parent 55f447e commit c48a505

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

compose.webhook.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@
33
# docker compose -f docker-compose.yml -f /path/to/this/repo/compose.webhook.yml up -d
44

55
services:
6+
# Add a healthcheck to the Central API service
7+
service:
8+
healthcheck:
9+
test: nc -z localhost 8383 || exit 1
10+
start_period: 15s
11+
interval: 10s
12+
timeout: 5s
13+
retries: 10
14+
15+
# Override the image used to contain the `pgsql-http` extension
16+
postgres14:
17+
image: "ghcr.io/hotosm/postgres:14-http"
18+
19+
# The main webhook service
620
webhook:
721
image: "ghcr.io/hotosm/central-webhook:0.2.0"
822
environment:
@@ -15,7 +29,6 @@ services:
1529
depends_on:
1630
postgres14:
1731
condition: service_started
32+
service:
33+
condition: service_started
1834
restart: always
19-
20-
postgres14:
21-
image: "ghcr.io/hotosm/postgres:14-http"

0 commit comments

Comments
 (0)