blob: 0d4568af399192aaba41222d7a1267da055db998 [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 #
Jonathan Hart87314cd2018-02-12 17:15:35 -08007 vconsul:
Richard Jankowski9ac4bbd2018-03-21 11:31:02 -04008 image: "${REGISTRY}consul:0.9.2"
sathishg5194e892017-06-30 16:46:26 +05309 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:
Richard Jankowski9ac4bbd2018-03-21 11:31:02 -040024 image: "${REGISTRY}gliderlabs/registrator:latest"
sathishg5194e892017-06-30 16:46:26 +053025 command: [
26 "-ip=${DOCKER_HOST_IP}",
27 "-retry-attempts", "100",
28 "-cleanup",
29 # "-internal",
Jonathan Hart87314cd2018-02-12 17:15:35 -080030 "consul://vconsul:8500"
sathishg5194e892017-06-30 16:46:26 +053031 ]
32 links:
Jonathan Hart87314cd2018-02-12 17:15:35 -080033 - vconsul
sathishg5194e892017-06-30 16:46:26 +053034 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:
Richard Jankowski9ac4bbd2018-03-21 11:31:02 -040041 image: "${REGISTRY}${REPOSITORY}fluent/fluentd:v0.12.42"
Stephane Barbariecd51f992017-09-07 16:37:02 -040042 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:
Richard Jankowski9ac4bbd2018-03-21 11:31:02 -040053 image: "${REGISTRY}${REPOSITORY}voltha-voltha${TAG}"
sgovindacc736782017-05-02 20:06:37 +053054 command: [
55 "/voltha/voltha/main.py",
sathishg5194e892017-06-30 16:46:26 +053056 "-v",
57 "--consul=${DOCKER_HOST_IP}:8500",
sgovindacc736782017-05-02 20:06:37 +053058 "--rest-port=8880",
Stephane Barbariecd51f992017-09-07 16:37:02 -040059 "--grpc-port=50556",
60 "--kafka=@kafka",
61 "--instance-id-is-container-name",
62 "--interface=eth1",
sathishg5194e892017-06-30 16:46:26 +053063 "--backend=consul",
64 "-v"
sgovindacc736782017-05-02 20:06:37 +053065 ]
66 ports:
Stephane Barbariecd51f992017-09-07 16:37:02 -040067 - 8880
68 - 50556
sgovindacc736782017-05-02 20:06:37 +053069 - 18880
Stephane Barbariecd51f992017-09-07 16:37:02 -040070 - "60001:60001"
sathishg5194e892017-06-30 16:46:26 +053071 depends_on:
Jonathan Hart87314cd2018-02-12 17:15:35 -080072 - vconsul
sathishg5194e892017-06-30 16:46:26 +053073 links:
Jonathan Hart87314cd2018-02-12 17:15:35 -080074 - vconsul
Stephane Barbariecd51f992017-09-07 16:37:02 -040075 environment:
76 SERVICE_8880_NAME: "voltha-health"
77 SERVICE_8880_CHECK_HTTP: "/health"
78 SERVICE_8880_CHECK_INTERVAL: "5s"
79 SERVICE_8880_CHECK_TIMEOUT: "1s"
80 SERVICE_18880_NAME: "voltha-sim-rest"
81 SERVICE_HOST_IP: "${DOCKER_HOST_IP}"
sgovindacc736782017-05-02 20:06:37 +053082 volumes:
83 - "/var/run/docker.sock:/tmp/docker.sock"
Stephane Barbariecd51f992017-09-07 16:37:02 -040084 networks:
85 - default
86 - ponmgmt
87
88 envoy:
Richard Jankowski9ac4bbd2018-03-21 11:31:02 -040089 image: "${REGISTRY}${REPOSITORY}voltha-envoy${TAG}"
Stephane Barbariecd51f992017-09-07 16:37:02 -040090 entrypoint:
91 - /usr/local/bin/envoyd
92 - -envoy-cfg-template
93 - "/envoy/voltha-grpc-proxy.template.json"
94 - -envoy-config
95 - "/envoy/voltha-grpc-proxy.json"
Jonathan Hart87314cd2018-02-12 17:15:35 -080096 - -consul-svc-nme
97 - "vconsul"
98 - -kv-svc-name
99 - "vconsul"
Stephane Barbariecd51f992017-09-07 16:37:02 -0400100 ports:
101 - "50555:50555"
102 - "8882:8882"
103 - "8443:8443"
104 - "8001:8001"
105 environment:
106 SERVICE_50555_NAME: "voltha-grpc"
107 volumes:
108 - "/var/run/docker.sock:/tmp/docker.sock"
109 networks:
110 - default
111 - ponmgmt
112 links:
113 - voltha:vcore
114 #
115 # Voltha cli container
116 #
David K. Bainbridgebba65ff2018-01-19 09:26:09 -0800117 cli:
Richard Jankowski9ac4bbd2018-03-21 11:31:02 -0400118 image: "${REGISTRY}${REPOSITORY}voltha-cli${TAG}"
Stephane Barbariecd51f992017-09-07 16:37:02 -0400119 command: [
120 "/cli/cli/setup.sh",
121 "-L",
122 "-G"
123 ]
124 environment:
125 DOCKER_HOST_IP: "${DOCKER_HOST_IP}"
126 ports:
127 - "5022:22"
128 depends_on:
129 - voltha
130
sgovindacc736782017-05-02 20:06:37 +0530131 #
sgovindacc736782017-05-02 20:06:37 +0530132 # onos-1
133 #
134 onos1:
Richard Jankowski9ac4bbd2018-03-21 11:31:02 -0400135 image: "${REGISTRY}${REPOSITORY}voltha-onos${TAG}"
sgovindacc736782017-05-02 20:06:37 +0530136 container_name: onos1
137 ports:
138 - 6633:6653
139 - 8101:8101
140 - 8181:8181
141 environment:
142 ONOS_APPS: drivers,openflow
143 volumes:
144 - "/var/run/docker.sock:/tmp/docker.sock"
145 restart: unless-stopped
146
147 #
148 # onos-2
149 #
150 onos2:
Richard Jankowski9ac4bbd2018-03-21 11:31:02 -0400151 image: "${REGISTRY}${REPOSITORY}voltha-onos${TAG}"
sgovindacc736782017-05-02 20:06:37 +0530152 container_name: onos2
153 ports:
154 - 6644:6653
155 - 8102:8101
156 - 8182:8181
157 environment:
158 ONOS_APPS: drivers,openflow
159 volumes:
160 - "/var/run/docker.sock:/tmp/docker.sock"
161 restart: unless-stopped
162
163 #
164 # onos-3
165 #
166 onos3:
Richard Jankowski9ac4bbd2018-03-21 11:31:02 -0400167 image: "${REGISTRY}${REPOSITORY}voltha-onos${TAG}"
sgovindacc736782017-05-02 20:06:37 +0530168 container_name: onos3
169 ports:
170 - 6655:6653
171 - 8103:8101
172 - 8183:8181
173 environment:
174 ONOS_APPS: drivers,openflow
175 volumes:
176 - "/var/run/docker.sock:/tmp/docker.sock"
177 restart: unless-stopped
178 #
179 # ofagent server instance
180 #
181 ofagent:
Richard Jankowski9ac4bbd2018-03-21 11:31:02 -0400182 image: "${REGISTRY}${REPOSITORY}voltha-ofagent${TAG}"
khenaidoo50b286d2018-03-02 17:44:30 -0500183 command: /ofagent/ofagent/main.py -v --consul=${DOCKER_HOST_IP}:8500 --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 +0530184 depends_on:
Jonathan Hart87314cd2018-02-12 17:15:35 -0800185 - vconsul
sgovindacc736782017-05-02 20:06:37 +0530186 - voltha
Stephane Barbariecd51f992017-09-07 16:37:02 -0400187 links:
Jonathan Hart87314cd2018-02-12 17:15:35 -0800188 - vconsul
sgovindacc736782017-05-02 20:06:37 +0530189 volumes:
190 - "/var/run/docker.sock:/tmp/docker.sock"
sathishg239af452017-07-13 16:27:46 +0530191 restart: unless-stopped
Stephane Barbariecd51f992017-09-07 16:37:02 -0400192
193networks:
194 default:
195 driver: bridge
196 ponmgmt:
197 driver: bridge
198 driver_opts:
199 com.docker.network.bridge.name: "ponmgmt"