-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
49 lines (49 loc) · 983 Bytes
/
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
version: '3'
services:
scrader_server:
image: scrader_server
ports:
- "8000:8000"
environment:
- SERVICE_PORTS=8000
networks:
- web
deploy:
replicas: 2
update_config:
parallelism: 1
delay: 10s
volumes:
- .:/code
depends_on:
- db
db:
image: mongo:3.0.2
ports:
- "8080:27017"
volumes:
- ./dbdata:/data/db
- ./mongod.conf:/etc/mongod.conf
networks:
- web
command: mongod --auth
proxy:
image: dockercloud/haproxy
depends_on:
- db
- scrader_server
environment:
- BALANCE=roundrobin
- BACKEND_PORT=8000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 8090:80
networks:
- web
deploy:
placement:
constraints: [node.role == manager]
networks:
web:
driver: overlay