forked from plynx-team/plynx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
130 lines (123 loc) · 3.58 KB
/
docker-compose-dev.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
128
129
130
version: "3.3"
services:
mongodb:
image: mongo:4.2.8
container_name: "mongodb"
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
volumes:
- ./data/db:/data/db
ports:
- 27017:27017
command: mongod --logpath=/dev/null # --quiet
master:
image: plynxteam/backend
container_name: "master"
depends_on:
- mongodb
- api
- internal-api
links:
- mongodb
- api
- internal-api
volumes:
- ./plynx:/app/plynx
- ./config.yaml:/app/config.yaml
environment:
- PLYNX_MODE=worker -e basic-dag-workflow --internal-endpoint http://internal-api:5005/plynx/api/v0
- PLYNX_CONFIG=/app/config.yaml
command: sh /app/watch.sh
workers:
image: plynxteam/backend
depends_on:
- mongodb
- api
- internal-api
links:
- mongodb
- api
- internal-api
volumes:
- ./data:/data
- ./plynx:/app/plynx
- ./config.yaml:/app/config.yaml
environment:
- PLYNX_MODE=worker -e basic-bash-jinja2-operation -e basic-python-node-operation -e basic-dag-operation -e python-workflow --internal-endpoint http://internal-api:5005/plynx/api/v0
- PLYNX_CONFIG=/app/config.yaml
command: sh /app/watch.sh
api:
image: plynxteam/backend
container_name: "api"
ports:
- "5005:5005"
depends_on:
- mongodb
links:
- mongodb
- worker-server
volumes:
- ./data:/data
- ./plynx:/app/plynx
- ./config.yaml:/app/config.yaml
environment:
- PLYNX_CONFIG=/app/config.yaml
- PLYNX_MODE=api --db-host mongodb
- WORKER_SERVER_URL=http://worker-server:5006/
command: sh /app/watch.sh
worker-server:
image: plynxteam/backend
container_name: "worker-server"
ports:
- "5006:5006"
depends_on:
- mongodb
links:
- mongodb
volumes:
- ./data:/data
- ./plynx:/app/plynx
- ./config.yaml:/app/config.yaml
environment:
- PLYNX_CONFIG=/app/config.yaml
- PLYNX_MODE=worker-server --endpoint-port 5006 --internal-endpoint http://internal-api:5005/plynx/api/v0
command: sh /app/watch.sh
internal-api:
image: plynxteam/backend
container_name: "internal-api"
depends_on:
- mongodb
links:
- mongodb
volumes:
- ./data:/data
- ./config.yaml:/app/config.yaml
environment:
- PLYNX_CONFIG=/app/config.yaml
command: bash -c "echo '[]' > /app/nodes.json && plynx api -vv" # vv for WARNING
test:
image: plynxteam/backend
container_name: "test"
depends_on:
- mongodb
links:
- mongodb
volumes:
- ./data:/data
- ./plynx:/app/plynx
- ./config.yaml:/app/config.yaml
command: /app/run_tests.sh
frontend:
image: plynxteam/ui_dev:latest
container_name: "frontend"
ports:
- "3001:3000"
depends_on:
- api
links:
- api
volumes:
- ./ui:/app
tty: true
command: sh -c "npm install && npm start"