-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
91 lines (84 loc) · 1.91 KB
/
docker-compose.yaml
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
services:
docker_postgresql:
image: postgres:11
container_name: docker_postgresql
environment:
POSTGRES_USER: ${POSTGRES_USERNAME}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
env_file:
- .env
networks:
- docker_network
docker_user_code:
build:
context: .
dockerfile: ./Dockerfile_user
container_name: docker_user_code
image: docker_user_code_image
restart: always
environment:
POSTGRES_USER: ${POSTGRES_USERNAME}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
DAGSTER_CURRENT_IMAGE: "docker_user_code_image"
env_file:
- .env
networks:
- docker_network
docker_dagit:
build:
context: .
dockerfile: ./Dockerfile_dagster
entrypoint:
- dagit
- -h
- "0.0.0.0"
- -p
- "3000"
- -w
- workspace.yaml
container_name: docker_dagit
expose:
- "3000"
ports:
- "3000:3000"
environment:
POSTGRES_USER: ${POSTGRES_USERNAME}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
env_file:
- .env
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- docker_network
depends_on:
- docker_user_code
- docker_postgresql
docker_daemon:
build:
context: .
dockerfile: ./Dockerfile_dagster
entrypoint:
- dagster-daemon
- run
container_name: docker_daemon
restart: on-failure
environment:
POSTGRES_USER: ${POSTGRES_USERNAME}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
env_file:
- .env
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- docker_network
depends_on:
- docker_user_code
- docker_postgresql
networks:
docker_network:
driver: bridge
name: docker_network