-
Notifications
You must be signed in to change notification settings - Fork 1
/
fig.yml.tpl
89 lines (83 loc) · 1.74 KB
/
fig.yml.tpl
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
zk:
image: ${REGISTRY}mesos
command: /usr/share/zookeeper/bin/zkServer.sh start-foreground
name: zk
master:
image: ${REGISTRY}mesos-master
ports:
- "5050:5050"
- "8080:8080"
- "9001:9001"
links:
- "zk:zookeeper"
hostname: $HOSTNAME
name: mesos-master
slave:
privileged: true
image: ${REGISTRY}mesos-slave
links:
- "zk:zookeeper"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "/var/lib/docker:/var/lib/docker"
- "/usr/local/bin/docker:/usr/local/bin/docker"
- "/sys:/sys"
- "/tmp/mesos:/tmp/mesos"
ports:
- "5051:5051"
- "9002:9001"
hostname: $HOSTNAME
name: mesos-slave
consul:
environment:
MASTER_IP: $IP
MASTER_HOST: $HOSTNAME
DC: $DC
CONSUL_BOOTSTRAP: \"$BOOTSTRAP\"
CONSUL_MODE: \"$MODE\"
image: ${REGISTRY}consul:latest
ports:
- "8300:8300"
- "8301:8301"
- "8301:8301/udp"
- "8302:8302"
- "8302:8302/udp"
- "8400:8400"
- "8500:8500"
- "8600:8600"
- "8600:8600/udp"
- "9003:9001"
hostname: $HOSTNAME-consul
name: consul
haproxy:
environment:
MASTER_IP: $IP
DC: $DC
image: ${REGISTRY}haproxy
ports:
- "80:80"
- "81:81"
- "9004:9001"
hostname: $HOSTNAME-haproxy
name: haproxy
openvpn:
privileged: true
image: ${REGISTRY}openvpn
volumes:
- "/etc/openvpn:/etc/openvpn"
- "/etc/nslcd.conf:/etc/nslcd.conf"
- "/etc/ssl/certs/:/etc/ssl/certs/"
- "/etc/nsswitch.conf:/etc/nsswitch.conf"
ports:
- "1194:1194"
- "1194:1194/udp"
hostname: $HOSTNAME-openvpn
name: openvpn
net: host
registrator:
image: ${REGISTRY}registrator
name: registrator
hostname: $HOSTNAME
volumes:
- "/var/run/docker.sock:/tmp/docker.sock"
command: consul://$IP:8500