-
Notifications
You must be signed in to change notification settings - Fork 272
/
docker-compose.yml
51 lines (51 loc) · 1.09 KB
/
docker-compose.yml
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
44
45
46
47
48
49
50
51
version: "3.8"
services:
postgres:
container_name: postgres
image: postgres
ports:
- 5432:5432
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
- POSTGRES_DB=STRUCTUREDDB
- PGPASSWORD=password
volumes:
- ./postgres/init-db.sql:/docker-entrypoint-initdb.d/init-db.sql
expose:
- 5432
healthcheck:
test:
[
"CMD-SHELL",
"pg_isready -h 0.0.0.0 -p 5432 -U user -d STRUCTUREDDB"
]
interval: 5s
timeout: 5s
retries: 5
pathway:
depends_on:
postgres:
condition: service_healthy
build:
context: .
ports:
- "8080:8080"
environment:
OPENAI_API_KEY: "${OPENAI_API_KEY}"
PATHWAY_REST_CONNECTOR_HOST:
PATHWAY_REST_CONNECTOR_PORT:
PATHWAY_PERSISTENT_STORAGE:
POSTGRESQL_HOST: "postgres"
volumes:
- "./data:/app/data"
streamlit_ui:
depends_on:
- pathway
build:
context: ./ui
ports:
- "8501:8501"
environment:
PATHWAY_HOST: "pathway"
PATHWAY_PORT: "8080"