-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
40 lines (37 loc) · 1.13 KB
/
docker-compose.yaml
File metadata and controls
40 lines (37 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
services:
tracing-collector:
image: jaegertracing/all-in-one:latest
ports:
- "16686:16686"
- "4317:4317"
hyperledadb:
image: postgis/postgis:17-3.5
environment:
POSTGRES_DB: "hyperleda"
POSTGRES_USER: "hyperleda"
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password}
ports:
- "6432:5432"
healthcheck:
test: psql 'host=localhost port=5432 dbname=hyperleda user=hyperleda password=$${POSTGRES_PASSWORD}' -qtA -c 'select 1;' || exit 1
timeout: 5s
interval: 5s
retries: 5
migrate:
build:
dockerfile: postgres/dockerfile
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password}
entrypoint:
/bin/sh -c "cd database/postgres && pgmigrate -c \"postgresql://hyperledadb:5432/hyperleda?user=hyperleda&password=$${POSTGRES_PASSWORD}\" -t latest migrate"
volumes:
- .:/database
depends_on:
hyperledadb:
condition: service_healthy
wait-for-migrate:
image: busybox
depends_on:
migrate:
condition: service_completed_successfully
entrypoint: /bin/sh -c "echo 'Migration completed successfully'"