-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
43 lines (43 loc) · 1.09 KB
/
docker-compose.yaml
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
41
42
43
version: '3'
services:
web:
build:
target: kg-integration-image
context: .
ports:
- "5064:5064"
volumes:
- .:/usr/src/app
depends_on:
- db
- web-init
web-init:
build:
target: alembic-image
context: .
environment:
- RDS_HOST=${RDS_HOST:-db}
- RDS_PORT=${RDS_PORT:-5432}
- RDS_PASSWORD=${RDS_PASSWORD:-postgresD3G5D}
volumes:
- .:/usr/src/app
depends_on:
db:
condition: service_healthy
db:
image: 'docker-registry.ebrains.eu/hdc-services-external/postgres:14.1'
user: postgres
ports:
- "5432:5432"
environment:
- POSTGRES_USER=${POSTGRES_USER:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_USER:-postgresD3G5D}
volumes:
- ./postgres-data:/var/lib/postgresql
- ./migrations/scripts/create_kg_integration_db.sql:/docker-entrypoint-initdb.d/01.sql
- ./migrations/scripts/create_kg_integration_schema.sql:/docker-entrypoint-initdb.d/02.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5