-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
127 lines (121 loc) · 2.8 KB
/
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
services:
datastore-postgresql:
image: postgres:11
container_name: datastore-postgresql
environment:
POSTGRES_USER: "postgres_user"
POSTGRES_PASSWORD: "postgres_password"
POSTGRES_DB: "postgres_db"
networks:
- datastore-network
datastore-code:
container_name: datastore-code
restart: always
build:
context: .
dockerfile: Containerfile.dagster
image: datastore
security_opt:
- "label:disable"
entrypoint:
- dagster
- api
- grpc
- -h
- "0.0.0.0"
- -p
- "4000"
- -m
- src.datastore
environment:
DAGSTER_POSTGRES_USER: "postgres_user"
DAGSTER_POSTGRES_PASSWORD: "postgres_password"
DAGSTER_POSTGRES_DB: "postgres_db"
DAGSTER_CURRENT_IMAGE: "datastore"
volumes:
- ./src:/opt/dagster/app/src
- ./config:/opt/dagster/app/config
- ./data:/opt/dagster/app/data
networks:
- datastore-network
datastore-server:
container_name: datastore-server
build:
context: .
dockerfile: Containerfile.dagster
entrypoint:
- dagster-webserver
- -h
- "0.0.0.0"
- -p
- "3000"
expose:
- "3000"
ports:
- 3000:3000
security_opt:
- "label:disable"
environment:
DAGSTER_POSTGRES_USER: "postgres_user"
DAGSTER_POSTGRES_PASSWORD: "postgres_password"
DAGSTER_POSTGRES_DB: "postgres_db"
volumes:
- ./src:/opt/dagster/app/src
- ./config:/opt/dagster/app/config
- ./data:/opt/dagster/app/data
networks:
- datastore-network
datastore-daemon:
container_name: datastore-daemon
restart: on-failure
build:
context: .
dockerfile: Containerfile.dagster
entrypoint:
- dagster-daemon
- run
security_opt:
- "label:disable"
environment:
DAGSTER_POSTGRES_USER: "postgres_user"
DAGSTER_POSTGRES_PASSWORD: "postgres_password"
DAGSTER_POSTGRES_DB: "postgres_db"
volumes:
- ./src:/opt/dagster/app/src
- ./config:/opt/dagster/app/config
- ./data:/opt/dagster/app/data
networks:
- datastore-network
depends_on:
- datastore-postgresql
- datastore-code
frontend-fastapi:
container_name: frontend-fastapi
restart: on-failure
build:
context: .
dockerfile: Containerfile.fastapi
expose:
- "8000"
ports:
- 8000:8000
networks:
- frontend-network
frontend-node:
container_name: frontend-node
restart: on-failure
build: ./frontend
dockerfile: Dockerfile
expose:
- "8001"
ports:
- 8001:8001
networks:
- frontend-network
networks:
datastore-network:
driver: bridge
name: datastore-network
frontend-network:
driver: bridge
name: frontend-network