-
Notifications
You must be signed in to change notification settings - Fork 188
/
docker-compose.yml
57 lines (51 loc) · 1.34 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
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=$DOCKER_IP -bootstrap-expect=1 -client=$DOCKER_IP
consul-agent:
container_name: consul
image: consul
network_mode: host
environment:
- 'CONSUL_LOCAL_CONFIG={"leave_on_terminate": true}'
command: agent -bind=$DOCKER_IP -retry-join=$CONSUL_SERVER_IP -client=$DOCKER_IP
registrator:
container_name: registrator
image: gliderlabs/registrator
volumes:
- /var/run/docker.sock:/tmp/docker.sock
command: -ip $DOCKER_IP consul://$CONSUL_IP:8500
proxy:
container_name: docker-flow-proxy
image: dockerflow/docker-flow-proxy
environment:
CONSUL_ADDRESS: $CONSUL_IP:8500
PROXY_INSTANCE_NAME: docker-flow
volumes:
- ./test_configs/:/consul_templates/
ports:
- 80:80
- 443:443
- 8080:8080
app:
build: .
container_name: docker-flow-proxy
image: dockerflow/docker-flow-proxy
environment:
CONSUL_ADDRESS: $CONSUL_IP:8500
ports:
- 80:80
- 8080:8080