-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
108 lines (103 loc) · 2.67 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
version: "3.8"
services:
# This service runs the postgres DB used by dagster for run storage, schedule storage,
# and event log storage.
dagster_postgresql:
image: postgres:11
container_name: dagster_postgresql
environment:
POSTGRES_USER: "dagster"
POSTGRES_PASSWORD: "root"
POSTGRES_DB: "dagster_db"
networks:
- dagster_network
# This service runs dagit, which loads the pipelines.
# Since our instance uses the QueuedRunCoordinator, any runs submitted from dagit will be put on
# a queue and later dequeued and launched by dagster-daemon.
dagster_dagit:
image: dagster
entrypoint:
- dagit
- -h
- "0.0.0.0"
- -p
- "3000"
- -w
- workspace.yaml
container_name: dagster_dagit
expose:
- "3000"
ports:
- "3000:3000"
environment:
DAGSTER_POSTGRES_USER: "dagster"
DAGSTER_POSTGRES_PASSWORD: "root"
DAGSTER_POSTGRES_DB: "dagster_db"
volumes:
# Make docker client accessible so we can terminate containers from dagit
- /var/run/docker.sock:/var/run/docker.sock
networks:
- dagster_network
depends_on:
- dagster_postgresql
# This service runs the dagster-daemon process, which is responsible for taking runs
# off of the queue and launching them, as well as creating runs from schedules or sensors.
dagster_daemon:
image: dagster
entrypoint:
- dagster-daemon
- run
container_name: dagster_daemon
restart: on-failure
environment:
DAGSTER_POSTGRES_USER: "dagster"
DAGSTER_POSTGRES_PASSWORD: "root"
DAGSTER_POSTGRES_DB: "dagster_db"
volumes:
# Make docker client accessible so we can launch containers using host docker
- /var/run/docker.sock:/var/run/docker.sock
networks:
- dagster_network
depends_on:
- dagster_postgresql
# Repositories
data_manager:
entrypoint:
- dagster
- api
- grpc
- -h
- "0.0.0.0"
- -p
- "4444"
- --package-name
- data_manager
container_name: data_manager
image: dagster
environment:
DAGSTER_CURRENT_IMAGE: "data_manager_image"
DAGSTER_POSTGRES_USER: "dagster"
DAGSTER_POSTGRES_PASSWORD: "root"
DAGSTER_POSTGRES_DB: "dagster_db"
networks:
- dagster_network
volumes:
- ./data:/app/data
ports:
- "4444:4444"
dash:
build:
context: ./visualization
dockerfile: ./Dockerfile
image: dash
container_name: dash_app
networks:
- dagster_network
volumes:
- ./data:/app/data
ports:
- "80:80"
networks:
dagster_network:
driver: bridge
name: dagster_network