-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathdocker-compose-setup.yml
More file actions
38 lines (34 loc) · 878 Bytes
/
docker-compose-setup.yml
File metadata and controls
38 lines (34 loc) · 878 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
version: '2'
services:
consul:
container_name: consul
image: progrium/consul
ports:
- 8500:8500
- 8301:8301
- 8300:8300
command: -server -bootstrap
consul-server:
container_name: consul
image: consul
network_mode: host
environment:
- 'CONSUL_LOCAL_CONFIG={"skip_leave_on_interrupt": true}'
command: agent -server -bind=$HOST_IP -bootstrap-expect=1 -client=$HOST_IP
registrator:
container_name: registrator
image: gliderlabs/registrator
volumes:
- /var/run/docker.sock:/tmp/docker.sock
command: -ip $HOST_IP consul://$CONSUL_IP:8500
proxy:
container_name: docker-flow-proxy
image: vfarcic/docker-flow-proxy
environment:
CONSUL_ADDRESS: $CONSUL_IP:8500
volumes:
- ./test_configs/:/consul_templates/
ports:
- 80:80
- 443:443
- 8080:8080