-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yaml
More file actions
102 lines (94 loc) · 3.22 KB
/
compose.yaml
File metadata and controls
102 lines (94 loc) · 3.22 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
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
services:
cloud_sql_proxy:
image: gcr.io/cloud-sql-connectors/cloud-sql-proxy:2.15.2
command:
- waterdatainitiative-271000:us-west3:nmwdiproduction
- --address=0.0.0.0
networks:
- dagster_network
# This service runs the gRPC server that loads your user code, in both dagster-webserver
# and dagster-daemon. By setting DAGSTER_CURRENT_IMAGE to its own image, we tell the
# run launcher to use this same image when launching runs in a new container as well.
# Multiple containers like this can be deployed separately - each just needs to run on
# its own port, and have its own entry in the workspace.yaml file that's loaded by the
# webserver.
aquaduct_pipelines:
build:
context: .
dockerfile: ./pipelines/Dockerfile
container_name: aquaduct_pipelines
image: aquaduct_pipelines_image
pull_policy: never
restart: always
networks:
- dagster_network
environment:
DAGSTER_CURRENT_IMAGE: 'aquaduct_pipelines_image'
DAGSTER_POSTGRES_USER: ${PG_USER}
DAGSTER_POSTGRES_PASSWORD: ${PG_PASSWORD}
DAGSTER_POSTGRES_DB: 'dagster'
# This service runs dagster-webserver, which loads your user code from the user code container.
# Since our instance uses the QueuedRunCoordinator, any runs submitted from the webserver will be put on
# a queue and later dequeued and launched by dagster-daemon.
dagster_webserver:
build:
context: .
dockerfile: ./Dockerfile_dagster
entrypoint:
- dagster-webserver
- -h
- '0.0.0.0'
- -p
- '3000'
- -w
- workspace.yaml
container_name: dagster_webserver
expose:
- '3000'
ports:
- '3000:3000'
volumes: # Make docker client accessible so we can terminate containers from the webserver
- /var/run/docker.sock:/var/run/docker.sock
- /tmp/io_manager_storage:/tmp/io_manager_storage
networks:
- dagster_network
environment:
DAGSTER_POSTGRES_USER: ${PG_USER}
DAGSTER_POSTGRES_PASSWORD: ${PG_PASSWORD}
DAGSTER_POSTGRES_DB: 'dagster'
DAGSTER_POSTGRES_HOSTNAME: cloud_sql_proxy
depends_on:
cloud_sql_proxy:
condition: service_started
aquaduct_pipelines:
condition: service_started
# 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:
build:
context: .
dockerfile: ./Dockerfile_dagster
entrypoint:
- dagster-daemon
- run
container_name: dagster_daemon
restart: on-failure
volumes: # Make docker client accessible so we can launch containers using host docker
- /var/run/docker.sock:/var/run/docker.sock
- /tmp/io_manager_storage:/tmp/io_manager_storage
networks:
- dagster_network
environment:
DAGSTER_POSTGRES_USER: ${PG_USER}
DAGSTER_POSTGRES_PASSWORD: ${PG_PASSWORD}
DAGSTER_POSTGRES_DB: 'dagster'
DAGSTER_POSTGRES_HOSTNAME: cloud_sql_proxy
depends_on:
cloud_sql_proxy:
condition: service_started
aquaduct_pipelines:
condition: service_started
networks:
dagster_network:
driver: bridge
name: dagster_network