-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
37 lines (37 loc) · 971 Bytes
/
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
consul:
image: progrium/consul
container_name: consul
restart: always
ports:
- "8400:8400"
- "8500:8500"
- "8600:53/udp"
command: -server -bootstrap
registrator:
image: gliderlabs/registrator
container_name: registrator
restart: always
net: host
volumes:
- /var/run/docker.sock:/tmp/docker.sock
command: consul://<consul_ip>:8500
interlock:
image: ehazlett/interlock
container_name: interlock
restart: always
command: --swarm-url tcp://<node_ip>:4000 --plugin haproxy start
ports:
- "80:80"
swarm-agent:
image: swarm
container_name: swarm-agent
command: join --advertise=<node_ip>:2375 consul://<consul_ip>:8500/nodes
swarm-manager:
image: swarm
container_name: swarm-manager
labels:
- "SERVICE_4000_NAME=swarm-manager"
- "SERVICE_4000_CHECK_HTTP=http://$SERVICE_IP:4000"
command: manage -H :4000 --replication --advertise <node_ip>:4000 consul://<consul_ip>:8500/nodes
ports:
- "4000:4000"