blob: e29b3d9a3799ebccfe6a4fef40bb12a7f822504a [file] [log] [blame]
sgovindacc736782017-05-02 20:06:37 +05301version: '2'
2services:
3
Stephane Barbariecd51f992017-09-07 16:37:02 -04004 #
5 # Single-node consul agent
6 #
sathishg5194e892017-06-30 16:46:26 +05307 consul:
8 image: consul:latest
9 command: agent -server -bootstrap -client 0.0.0.0 -ui
10 ports:
11 - "8300:8300"
12 - "8400:8400"
13 - "8500:8500"
14 - "8600:8600/udp"
15 environment:
16 #SERVICE_53_IGNORE: "yes"
17 SERVICE_8300_IGNORE: "yes"
18 SERVICE_8400_IGNORE: "yes"
19 SERVICE_8500_NAME: "consul-rest"
20 #
21 # Registrator
22 #
23 registrator:
24 image: gliderlabs/registrator:latest
25 command: [
26 "-ip=${DOCKER_HOST_IP}",
27 "-retry-attempts", "100",
28 "-cleanup",
29 # "-internal",
30 "consul://consul:8500"
31 ]
32 links:
33 - consul
34 volumes:
35 - "/var/run/docker.sock:/tmp/docker.sock"
Stephane Barbariecd51f992017-09-07 16:37:02 -040036
37 #
38 # Fluentd log server
39 #
40 fluentd:
41 image: fluent/fluentd
42 ports:
43 - "24224:24224"
44 volumes:
45 - "/tmp/fluentd:/fluentd/log"
46 environment:
47 SERVICE_24224_NAME: "fluentd-intake"
48
sathishg5194e892017-06-30 16:46:26 +053049 #
50 # Voltha server instance(s)
51 #
sgovindacc736782017-05-02 20:06:37 +053052 voltha:
53 image: cord/voltha
54 command: [
55 "/voltha/voltha/main.py",
sathishg5194e892017-06-30 16:46:26 +053056 "-v",
57 "--consul=${DOCKER_HOST_IP}:8500",
Stephane Barbariecd51f992017-09-07 16:37:02 -040058 "--fluentd=fluentd:24224",
sgovindacc736782017-05-02 20:06:37 +053059 "--rest-port=8880",
Stephane Barbariecd51f992017-09-07 16:37:02 -040060 "--grpc-port=50556",
61 "--kafka=@kafka",
62 "--instance-id-is-container-name",
63 "--interface=eth1",
sathishg5194e892017-06-30 16:46:26 +053064 "--backend=consul",
65 "-v"
sgovindacc736782017-05-02 20:06:37 +053066 ]
67 ports:
Stephane Barbariecd51f992017-09-07 16:37:02 -040068 - 8880
69 - 50556
sgovindacc736782017-05-02 20:06:37 +053070 - 18880
Stephane Barbariecd51f992017-09-07 16:37:02 -040071 - "60001:60001"
sathishg5194e892017-06-30 16:46:26 +053072 depends_on:
73 - consul
74 links:
75 - consul
Stephane Barbariecd51f992017-09-07 16:37:02 -040076 - fluentd
77 environment:
78 SERVICE_8880_NAME: "voltha-health"
79 SERVICE_8880_CHECK_HTTP: "/health"
80 SERVICE_8880_CHECK_INTERVAL: "5s"
81 SERVICE_8880_CHECK_TIMEOUT: "1s"
82 SERVICE_18880_NAME: "voltha-sim-rest"
83 SERVICE_HOST_IP: "${DOCKER_HOST_IP}"
sgovindacc736782017-05-02 20:06:37 +053084 volumes:
85 - "/var/run/docker.sock:/tmp/docker.sock"
Stephane Barbariecd51f992017-09-07 16:37:02 -040086 networks:
87 - default
88 - ponmgmt
89
90 envoy:
91 image: voltha/envoy
92 entrypoint:
93 - /usr/local/bin/envoyd
94 - -envoy-cfg-template
95 - "/envoy/voltha-grpc-proxy.template.json"
96 - -envoy-config
97 - "/envoy/voltha-grpc-proxy.json"
98 ports:
99 - "50555:50555"
100 - "8882:8882"
101 - "8443:8443"
102 - "8001:8001"
103 environment:
104 SERVICE_50555_NAME: "voltha-grpc"
105 volumes:
106 - "/var/run/docker.sock:/tmp/docker.sock"
107 networks:
108 - default
109 - ponmgmt
110 links:
111 - voltha:vcore
112 #
113 # Voltha cli container
114 #
115 vcli:
116 image: cord/vcli
117 command: [
118 "/cli/cli/setup.sh",
119 "-L",
120 "-G"
121 ]
122 environment:
123 DOCKER_HOST_IP: "${DOCKER_HOST_IP}"
124 ports:
125 - "5022:22"
126 depends_on:
127 - voltha
128
sgovindacc736782017-05-02 20:06:37 +0530129 #
130 # Chameleon server instance(s)
131 #
132 chameleon:
133 image: cord/chameleon
134 command: [
135 "/chameleon/chameleon/main.py",
Stephane Barbariecd51f992017-09-07 16:37:02 -0400136 "-v",
137 "--consul=consul:8500",
138 "--fluentd=fluentd:24224",
sgovindacc736782017-05-02 20:06:37 +0530139 "--rest-port=8881",
Stephane Barbariecd51f992017-09-07 16:37:02 -0400140 "--grpc-endpoint=@voltha-grpc",
sgovindacc736782017-05-02 20:06:37 +0530141 "--instance-id-is-container-name"
142 ]
143 ports:
Stephane Barbariecd51f992017-09-07 16:37:02 -0400144 - 8881
145 depends_on:
146 - consul
147 - voltha
148 links:
149 - consul
150 - fluentd
151 environment:
152 SERVICE_8881_NAME: "chameleon-rest"
153 ENABLE_TLS: "False"
sgovindacc736782017-05-02 20:06:37 +0530154 volumes:
155 - "/var/run/docker.sock:/tmp/docker.sock"
Stephane Barbariecd51f992017-09-07 16:37:02 -0400156
sgovindacc736782017-05-02 20:06:37 +0530157 #
158 # onos-1
159 #
160 onos1:
sathishg239af452017-07-13 16:27:46 +0530161 image: cord/onos
sgovindacc736782017-05-02 20:06:37 +0530162 container_name: onos1
163 ports:
164 - 6633:6653
165 - 8101:8101
166 - 8181:8181
167 environment:
168 ONOS_APPS: drivers,openflow
169 volumes:
170 - "/var/run/docker.sock:/tmp/docker.sock"
171 restart: unless-stopped
172
173 #
174 # onos-2
175 #
176 onos2:
sathishg239af452017-07-13 16:27:46 +0530177 image: cord/onos
sgovindacc736782017-05-02 20:06:37 +0530178 container_name: onos2
179 ports:
180 - 6644:6653
181 - 8102:8101
182 - 8182:8181
183 environment:
184 ONOS_APPS: drivers,openflow
185 volumes:
186 - "/var/run/docker.sock:/tmp/docker.sock"
187 restart: unless-stopped
188
189 #
190 # onos-3
191 #
192 onos3:
sathishg239af452017-07-13 16:27:46 +0530193 image: cord/onos
sgovindacc736782017-05-02 20:06:37 +0530194 container_name: onos3
195 ports:
196 - 6655:6653
197 - 8103:8101
198 - 8183:8181
199 environment:
200 ONOS_APPS: drivers,openflow
201 volumes:
202 - "/var/run/docker.sock:/tmp/docker.sock"
203 restart: unless-stopped
204 #
205 # ofagent server instance
206 #
207 ofagent:
208 image: cord/ofagent
Stephane Barbariecd51f992017-09-07 16:37:02 -0400209 command: /ofagent/ofagent/main.py -v --consul=${DOCKER_HOST_IP}:8500 --fluentd=fluentd:24224 --controller ${DOCKER_HOST_IP}:6633 ${DOCKER_HOST_IP}:6644 ${DOCKER_HOST_IP}:6655 --grpc-endpoint=@voltha-grpc --instance-id-is-container-name
sgovindacc736782017-05-02 20:06:37 +0530210 depends_on:
Stephane Barbariecd51f992017-09-07 16:37:02 -0400211 - consul
sgovindacc736782017-05-02 20:06:37 +0530212 - voltha
Stephane Barbariecd51f992017-09-07 16:37:02 -0400213 links:
214 - consul
215 - fluentd
sgovindacc736782017-05-02 20:06:37 +0530216 volumes:
217 - "/var/run/docker.sock:/tmp/docker.sock"
sathishg239af452017-07-13 16:27:46 +0530218 restart: unless-stopped
Stephane Barbariecd51f992017-09-07 16:37:02 -0400219
220networks:
221 default:
222 driver: bridge
223 ponmgmt:
224 driver: bridge
225 driver_opts:
226 com.docker.network.bridge.name: "ponmgmt"