blob: 516196f957f1bb7e280da43f7e2b5d551bcafdb2 [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:
David K. Bainbridgebba65ff2018-01-19 09:26:09 -08008 image: "${REGISTRY}consul:${CONSUL_TAG:-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:
David K. Bainbridgebba65ff2018-01-19 09:26:09 -080024 image: "${REGISTRY}gliderlabs/registrator:${REGISTRATOR_TAG:-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:
David K. Bainbridge737b74f2018-01-22 12:57:52 -080041 image: "${REGISTRY}${REPOSITORY}voltha-fluentd:${TAG:-latest}"
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:
David K. Bainbridge737b74f2018-01-22 12:57:52 -080053 image: "${REGISTRY}${REPOSITORY}voltha-voltha:${TAG:-latest}"
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",
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:
Jonathan Hart87314cd2018-02-12 17:15:35 -080073 - vconsul
sathishg5194e892017-06-30 16:46:26 +053074 links:
Jonathan Hart87314cd2018-02-12 17:15:35 -080075 - vconsul
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:
David K. Bainbridge737b74f2018-01-22 12:57:52 -080091 image: "${REGISTRY}${REPOSITORY}voltha-envoy:${TAG:-latest}"
Stephane Barbariecd51f992017-09-07 16:37:02 -040092 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"
Jonathan Hart87314cd2018-02-12 17:15:35 -080098 - -consul-svc-nme
99 - "vconsul"
100 - -kv-svc-name
101 - "vconsul"
Stephane Barbariecd51f992017-09-07 16:37:02 -0400102 ports:
103 - "50555:50555"
104 - "8882:8882"
105 - "8443:8443"
106 - "8001:8001"
107 environment:
108 SERVICE_50555_NAME: "voltha-grpc"
109 volumes:
110 - "/var/run/docker.sock:/tmp/docker.sock"
111 networks:
112 - default
113 - ponmgmt
114 links:
115 - voltha:vcore
116 #
117 # Voltha cli container
118 #
David K. Bainbridgebba65ff2018-01-19 09:26:09 -0800119 cli:
David K. Bainbridge737b74f2018-01-22 12:57:52 -0800120 image: "${REGISTRY}${REPOSITORY}voltha-cli:${TAG:-latest}"
Stephane Barbariecd51f992017-09-07 16:37:02 -0400121 command: [
122 "/cli/cli/setup.sh",
123 "-L",
124 "-G"
125 ]
126 environment:
127 DOCKER_HOST_IP: "${DOCKER_HOST_IP}"
128 ports:
129 - "5022:22"
130 depends_on:
131 - voltha
132
sgovindacc736782017-05-02 20:06:37 +0530133 #
sgovindacc736782017-05-02 20:06:37 +0530134 # onos-1
135 #
136 onos1:
David K. Bainbridge737b74f2018-01-22 12:57:52 -0800137 image: "${REGISTRY}${REPOSITORY}voltha-onos:${TAG:-latest}"
sgovindacc736782017-05-02 20:06:37 +0530138 container_name: onos1
139 ports:
140 - 6633:6653
141 - 8101:8101
142 - 8181:8181
143 environment:
144 ONOS_APPS: drivers,openflow
145 volumes:
146 - "/var/run/docker.sock:/tmp/docker.sock"
147 restart: unless-stopped
148
149 #
150 # onos-2
151 #
152 onos2:
David K. Bainbridge737b74f2018-01-22 12:57:52 -0800153 image: "${REGISTRY}${REPOSITORY}voltha-onos:${TAG:-latest}"
sgovindacc736782017-05-02 20:06:37 +0530154 container_name: onos2
155 ports:
156 - 6644:6653
157 - 8102:8101
158 - 8182:8181
159 environment:
160 ONOS_APPS: drivers,openflow
161 volumes:
162 - "/var/run/docker.sock:/tmp/docker.sock"
163 restart: unless-stopped
164
165 #
166 # onos-3
167 #
168 onos3:
David K. Bainbridge737b74f2018-01-22 12:57:52 -0800169 image: "${REGISTRY}${REPOSITORY}voltha-onos:${TAG:-latest}"
sgovindacc736782017-05-02 20:06:37 +0530170 container_name: onos3
171 ports:
172 - 6655:6653
173 - 8103:8101
174 - 8183:8181
175 environment:
176 ONOS_APPS: drivers,openflow
177 volumes:
178 - "/var/run/docker.sock:/tmp/docker.sock"
179 restart: unless-stopped
180 #
181 # ofagent server instance
182 #
183 ofagent:
David K. Bainbridge737b74f2018-01-22 12:57:52 -0800184 image: "${REGISTRY}${REPOSITORY}voltha-ofagent:${TAG:-latest}"
Girishf6eeaea2017-11-13 10:53:57 +0530185 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 +0530186 depends_on:
Jonathan Hart87314cd2018-02-12 17:15:35 -0800187 - vconsul
sgovindacc736782017-05-02 20:06:37 +0530188 - voltha
Stephane Barbariecd51f992017-09-07 16:37:02 -0400189 links:
Jonathan Hart87314cd2018-02-12 17:15:35 -0800190 - vconsul
Stephane Barbariecd51f992017-09-07 16:37:02 -0400191 - fluentd
sgovindacc736782017-05-02 20:06:37 +0530192 volumes:
193 - "/var/run/docker.sock:/tmp/docker.sock"
sathishg239af452017-07-13 16:27:46 +0530194 restart: unless-stopped
Stephane Barbariecd51f992017-09-07 16:37:02 -0400195
196networks:
197 default:
198 driver: bridge
199 ponmgmt:
200 driver: bridge
201 driver_opts:
202 com.docker.network.bridge.name: "ponmgmt"