-
Notifications
You must be signed in to change notification settings - Fork 37
/
docker-compose.yml
64 lines (64 loc) · 1.89 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
52
53
54
55
56
57
58
59
60
61
62
63
64
services:
oltp:
image: postgres
environment:
POSTGRES_DB: 'sales_oltp'
POSTGRES_USER: $POSTGRES_USER
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
ports:
- 54320:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -d sales_oltp --username $POSTGRES_USER"]
interval: 30s
timeout: 60s
retries: 5
start_period: 45s
generator:
build:
context: .
dockerfile: ./generator/Dockerfile
args:
POSTGRES_USER: $POSTGRES_USER
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
volumes:
- ./shared:/shared
depends_on:
oltp:
condition: service_healthy
dagster-dbt:
build:
context: .
dockerfile: ./dagster-dbt/Dockerfile
restart: always
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
DAGSTER_HOME: /dagster-dbt/postcard_company_dm
volumes:
- ./shared:/shared
- ./dagster-dbt/postcard_company_dm:/dagster-dbt/postcard_company_dm
ports:
- "3000:3000"
command: dagster-webserver -h 0.0.0.0
depends_on:
generator:
condition: service_completed_successfully
superset:
build:
context: .
dockerfile: ./superset/Dockerfile
args:
POSTGRES_USER: $POSTGRES_USER
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
SUPERSET_ADMIN: $SUPERSET_ADMIN
SUPERSET_PASSWORD: $SUPERSET_PASSWORD
SUPERSET_SECRET_KEY: ${SUPERSET_SECRET_KEY}
environment:
SUPERSET_SECRET_KEY: ${SUPERSET_SECRET_KEY}
ports:
- "8088:8088"
command: gunicorn --bind "0.0.0.0:8088" --access-logfile '-' --error-logfile '-' --workers 1 --worker-class gthread --threads 20 --timeout 60 --limit-request-line 0 --limit-request-field_size 0 "superset.app:create_app()"
volumes:
- ./shared/db:/app/superset_home/db
depends_on:
- dagster-dbt