-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
119 lines (114 loc) · 3.22 KB
/
docker-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
services:
pipelines:
image: chimefrb/pipelines:latest
container_name: pipelines
command: python -m pipelines.server
platform: linux/amd64
ports:
- "8001:8001"
expose:
- 8001
environment:
- SANIC_HOSTNAME=0.0.0.0
- SANIC_PORT=8001
- SANIC_ACCESS_LOG=true
- SANIC_AUTO_RELOAD=true
- SANIC_DEBUG=true
- SANIC_MONGODB_HOSTNAME=mongo
- SANIC_MONGODB_PORT=27017
- SANIC_START_MANAGER_URL=http://managers:8002/v2/start
- SANIC_PAUSE_MANAGER_URL=http://managers:8002/v2/pause
- SANIC_STOP_MANAGER_URL=http://managers:8002/v2/stop
- SANIC_HEALTH_MANAGERS_URL=http://managers:8002/__health__
- SANIC_HEALTH_MANAGERS_CHECK_TIMES=10
- SANIC_HEALTH_MANAGERS_CHECK_INTERVAL_SECONDS=30
- SANIC_LISTENERS_THRESHOLD_SECONDS=120
- SANIC_WORKSPACE_FILEPATH=/etc/workspace.yml
- TZ=Etc/UTC
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./workflow/workspaces/development.yml:/etc/workspace.yml
networks:
- workflow
managers:
image: chimefrb/pipelines:latest
container_name: managers
command: ["/bin/bash", "-c", "python -m managers.server"]
platform: linux/amd64
ports:
- "8002:8002"
environment:
- SANIC_HOSTNAME=0.0.0.0
- SANIC_PORT=8002
- SANIC_ACCESS_LOG=true
- SANIC_AUTO_RELOAD=true
- SANIC_DEBUG=true
- SANIC_MONGODB_HOSTNAME=mongo
- SANIC_MONGODB_PORT=27017
- SANIC_BUCKETS_URL=http://buckets:8004
- SANIC_RESULTS_URL=http://results:8005
- SANIC_UPDATE_INTERVAL_SECONDS=40
- SANIC_SLEEP_INTERVAL_SECONDS=30
- SANIC_PURGE_TIME_SECONDS=3600
- SANIC_DEPLOYER_REDEPLOY_WAIT_TIME=30
- SANIC_DEPLOYER_MAX_REPLICAS=256
- SANIC_WORKSPACE_FILEPATH=/etc/workspace.yml
- TZ=Etc/UTC
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./workflow/workspaces/development.yml:/etc/workspace.yml
networks:
- workflow
buckets:
image: chimefrb/buckets:latest
container_name: buckets
command: [ "/bin/bash", "-c", "python -m buckets.server" ]
expose:
- 8004
ports:
- "8004:8004"
environment:
- SANIC_HOSTNAME=0.0.0.0
- SANIC_PORT=8004
- SANIC_ACCESS_LOG=true
- SANIC_AUTO_RELOAD=true
- SANIC_DEBUG=true
- SANIC_MONGODB_HOSTNAME=mongo
- SANIC_MONGODB_PORT=27017
- SANIC_CORS_ORIGINS=*
- SANIC_WORKSPACE=development
networks:
- workflow
results:
image: chimefrb/results:latest
container_name: results
command: [ "/bin/bash", "-c", "python -m results.server" ]
expose:
- 8005
ports:
- "8005:8005"
environment:
- SANIC_HOSTNAME=0.0.0.0
- SANIC_PORT=8005
- SANIC_ACCESS_LOG=true
- SANIC_AUTO_RELOAD=true
- SANIC_DEBUG=true
- SANIC_MONGODB_HOSTNAME=mongo
- SANIC_MONGODB_PORT=27017
- SANIC_CORS_ORIGINS=*
- SANIC_WORKSPACE=development
networks:
- workflow
mongo:
image: mongo:latest
command: mongod --bind_ip_all
container_name: mongo
ports:
- "27017:27017"
networks:
- workflow
networks:
workflow:
name: workflow
driver: bridge
attachable: true