-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
46 lines (43 loc) · 991 Bytes
/
docker-compose-dev.yml
File metadata and controls
46 lines (43 loc) · 991 Bytes
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
version: "3.4"
services:
manager:
image: emwjacobson/mchoster_manager:latest
environment:
STACK_NAME: 'mchoster'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./manager:/manager
ports:
- "8000:8000"
command: gunicorn -b 0.0.0.0:8000 --reload app:app
deploy:
placement:
constraints:
- "node.role==manager"
web:
image: emwjacobson/mchoster_web:latest
environment:
- DEBUG=True
- SERVER_IP=the.servers.ip
- SECRET_KEY=ChangeThisToALongRandomStringInProduction
- ALLOWED_HOSTS=*
ports:
- 8888:8000
volumes:
- ./web:/app
depends_on:
- manager
deploy:
placement:
constraints:
- "node.role==manager"
viz:
image: dockersamples/visualizer
ports:
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
deploy:
placement:
constraints:
- "node.role==manager"