-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
77 lines (74 loc) · 1.55 KB
/
docker-compose.yaml
File metadata and controls
77 lines (74 loc) · 1.55 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
services:
webserver:
container_name: dagster_webserver
build:
context: .
dockerfile: Dockerfile
entrypoint:
- dagster-webserver
- -h
- "0.0.0.0"
- -p
- "3000"
- -w
- workspace.yaml
ports:
- '3000:3000'
env_file:
- .env
depends_on:
- code_location
develop:
watch:
- path: dagster.yaml
action: rebuild
daemon:
container_name: dagster_daemon
build:
context: .
dockerfile: Dockerfile
entrypoint:
- dagster-daemon
- run
env_file:
- .env
depends_on:
- db
code_location:
container_name: dagster_code_location
build:
context: .
dockerfile: Dockerfile
env_file:
- .env
ports:
- '4000:4000'
develop:
watch:
- path: pyproject.toml
action: rebuild
- path: dagster_pipelines
target: /opt/dagster/app/dagster_pipelines
action: sync
- path: dagster.yaml
action: rebuild
- path: workspace.yaml
action: rebuild
- path: Dockerfile
action: rebuild
volumes:
- ./dagster_pipelines:/opt/dagster/app/dagster_pipelines
- ./dagster_pipelines/db/:/opt/dagster/app/dagster_pipelines/db/
db:
container_name: dagster_db
image: postgres:16.4
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: postgres
ports:
- '5432:5432'
volumes:
- db_data:/var/lib/postgresql/data
volumes:
db_data: