blob: 20d20ca82e4760f8e62e8d64de763149398afd3a [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 #
sgovindacc736782017-05-02 20:06:37 +0530130 # onos-1
131 #
132 onos1:
sathishg239af452017-07-13 16:27:46 +0530133 image: cord/onos
sgovindacc736782017-05-02 20:06:37 +0530134 container_name: onos1
135 ports:
136 - 6633:6653
137 - 8101:8101
138 - 8181:8181
139 environment:
140 ONOS_APPS: drivers,openflow
141 volumes:
142 - "/var/run/docker.sock:/tmp/docker.sock"
143 restart: unless-stopped
144
145 #
146 # onos-2
147 #
148 onos2:
sathishg239af452017-07-13 16:27:46 +0530149 image: cord/onos
sgovindacc736782017-05-02 20:06:37 +0530150 container_name: onos2
151 ports:
152 - 6644:6653
153 - 8102:8101
154 - 8182:8181
155 environment:
156 ONOS_APPS: drivers,openflow
157 volumes:
158 - "/var/run/docker.sock:/tmp/docker.sock"
159 restart: unless-stopped
160
161 #
162 # onos-3
163 #
164 onos3:
sathishg239af452017-07-13 16:27:46 +0530165 image: cord/onos
sgovindacc736782017-05-02 20:06:37 +0530166 container_name: onos3
167 ports:
168 - 6655:6653
169 - 8103:8101
170 - 8183:8181
171 environment:
172 ONOS_APPS: drivers,openflow
173 volumes:
174 - "/var/run/docker.sock:/tmp/docker.sock"
175 restart: unless-stopped
176 #
177 # ofagent server instance
178 #
179 ofagent:
180 image: cord/ofagent
Girishf6eeaea2017-11-13 10:53:57 +0530181 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 --enable-tls --key-file=/ofagent/pki/voltha.key --cert-file=/ofagent/pki/voltha.crt
sgovindacc736782017-05-02 20:06:37 +0530182 depends_on:
Stephane Barbariecd51f992017-09-07 16:37:02 -0400183 - consul
sgovindacc736782017-05-02 20:06:37 +0530184 - voltha
Stephane Barbariecd51f992017-09-07 16:37:02 -0400185 links:
186 - consul
187 - fluentd
sgovindacc736782017-05-02 20:06:37 +0530188 volumes:
189 - "/var/run/docker.sock:/tmp/docker.sock"
sathishg239af452017-07-13 16:27:46 +0530190 restart: unless-stopped
Stephane Barbariecd51f992017-09-07 16:37:02 -0400191
192networks:
193 default:
194 driver: bridge
195 ponmgmt:
196 driver: bridge
197 driver_opts:
198 com.docker.network.bridge.name: "ponmgmt"