sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 1 | version: '2' |
| 2 | services: |
| 3 | |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 4 | # |
| 5 | # Single-node consul agent |
| 6 | # |
Jonathan Hart | d67db4a | 2018-02-12 17:15:35 -0800 | [diff] [blame^] | 7 | vconsul: |
David K. Bainbridge | 1246305 | 2018-01-19 09:26:09 -0800 | [diff] [blame] | 8 | image: "${REGISTRY}consul:${CONSUL_TAG:-0.9.2}" |
sathishg | 5194e89 | 2017-06-30 16:46:26 +0530 | [diff] [blame] | 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: |
David K. Bainbridge | 1246305 | 2018-01-19 09:26:09 -0800 | [diff] [blame] | 24 | image: "${REGISTRY}gliderlabs/registrator:${REGISTRATOR_TAG:-latest}" |
sathishg | 5194e89 | 2017-06-30 16:46:26 +0530 | [diff] [blame] | 25 | command: [ |
| 26 | "-ip=${DOCKER_HOST_IP}", |
| 27 | "-retry-attempts", "100", |
| 28 | "-cleanup", |
| 29 | # "-internal", |
Jonathan Hart | d67db4a | 2018-02-12 17:15:35 -0800 | [diff] [blame^] | 30 | "consul://vconsul:8500" |
sathishg | 5194e89 | 2017-06-30 16:46:26 +0530 | [diff] [blame] | 31 | ] |
| 32 | links: |
Jonathan Hart | d67db4a | 2018-02-12 17:15:35 -0800 | [diff] [blame^] | 33 | - vconsul |
sathishg | 5194e89 | 2017-06-30 16:46:26 +0530 | [diff] [blame] | 34 | volumes: |
| 35 | - "/var/run/docker.sock:/tmp/docker.sock" |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 36 | |
| 37 | # |
| 38 | # Fluentd log server |
| 39 | # |
| 40 | fluentd: |
David K. Bainbridge | 3d5b22d | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 41 | image: "${REGISTRY}${REPOSITORY}voltha-fluentd:${TAG:-latest}" |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 42 | ports: |
| 43 | - "24224:24224" |
| 44 | volumes: |
| 45 | - "/tmp/fluentd:/fluentd/log" |
| 46 | environment: |
| 47 | SERVICE_24224_NAME: "fluentd-intake" |
| 48 | |
sathishg | 5194e89 | 2017-06-30 16:46:26 +0530 | [diff] [blame] | 49 | # |
| 50 | # Voltha server instance(s) |
| 51 | # |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 52 | voltha: |
David K. Bainbridge | 3d5b22d | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 53 | image: "${REGISTRY}${REPOSITORY}voltha-voltha:${TAG:-latest}" |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 54 | command: [ |
| 55 | "/voltha/voltha/main.py", |
sathishg | 5194e89 | 2017-06-30 16:46:26 +0530 | [diff] [blame] | 56 | "-v", |
| 57 | "--consul=${DOCKER_HOST_IP}:8500", |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 58 | "--fluentd=fluentd:24224", |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 59 | "--rest-port=8880", |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 60 | "--grpc-port=50556", |
| 61 | "--kafka=@kafka", |
| 62 | "--instance-id-is-container-name", |
| 63 | "--interface=eth1", |
sathishg | 5194e89 | 2017-06-30 16:46:26 +0530 | [diff] [blame] | 64 | "--backend=consul", |
| 65 | "-v" |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 66 | ] |
| 67 | ports: |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 68 | - 8880 |
| 69 | - 50556 |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 70 | - 18880 |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 71 | - "60001:60001" |
sathishg | 5194e89 | 2017-06-30 16:46:26 +0530 | [diff] [blame] | 72 | depends_on: |
Jonathan Hart | d67db4a | 2018-02-12 17:15:35 -0800 | [diff] [blame^] | 73 | - vconsul |
sathishg | 5194e89 | 2017-06-30 16:46:26 +0530 | [diff] [blame] | 74 | links: |
Jonathan Hart | d67db4a | 2018-02-12 17:15:35 -0800 | [diff] [blame^] | 75 | - vconsul |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 76 | - 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}" |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 84 | volumes: |
| 85 | - "/var/run/docker.sock:/tmp/docker.sock" |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 86 | networks: |
| 87 | - default |
| 88 | - ponmgmt |
| 89 | |
| 90 | envoy: |
David K. Bainbridge | 3d5b22d | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 91 | image: "${REGISTRY}${REPOSITORY}voltha-envoy:${TAG:-latest}" |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 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" |
Jonathan Hart | d67db4a | 2018-02-12 17:15:35 -0800 | [diff] [blame^] | 98 | - -consul-svc-nme |
| 99 | - "vconsul" |
| 100 | - -kv-svc-name |
| 101 | - "vconsul" |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 102 | 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. Bainbridge | 1246305 | 2018-01-19 09:26:09 -0800 | [diff] [blame] | 119 | cli: |
David K. Bainbridge | 3d5b22d | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 120 | image: "${REGISTRY}${REPOSITORY}voltha-cli:${TAG:-latest}" |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 121 | 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 | |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 133 | # |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 134 | # onos-1 |
| 135 | # |
| 136 | onos1: |
David K. Bainbridge | 3d5b22d | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 137 | image: "${REGISTRY}${REPOSITORY}voltha-onos:${TAG:-latest}" |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 138 | 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. Bainbridge | 3d5b22d | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 153 | image: "${REGISTRY}${REPOSITORY}voltha-onos:${TAG:-latest}" |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 154 | 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. Bainbridge | 3d5b22d | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 169 | image: "${REGISTRY}${REPOSITORY}voltha-onos:${TAG:-latest}" |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 170 | 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. Bainbridge | 3d5b22d | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 184 | image: "${REGISTRY}${REPOSITORY}voltha-ofagent:${TAG:-latest}" |
Girish | f6eeaea | 2017-11-13 10:53:57 +0530 | [diff] [blame] | 185 | 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 |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 186 | depends_on: |
Jonathan Hart | d67db4a | 2018-02-12 17:15:35 -0800 | [diff] [blame^] | 187 | - vconsul |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 188 | - voltha |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 189 | links: |
Jonathan Hart | d67db4a | 2018-02-12 17:15:35 -0800 | [diff] [blame^] | 190 | - vconsul |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 191 | - fluentd |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 192 | volumes: |
| 193 | - "/var/run/docker.sock:/tmp/docker.sock" |
sathishg | 239af45 | 2017-07-13 16:27:46 +0530 | [diff] [blame] | 194 | restart: unless-stopped |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 195 | |
| 196 | networks: |
| 197 | default: |
| 198 | driver: bridge |
| 199 | ponmgmt: |
| 200 | driver: bridge |
| 201 | driver_opts: |
| 202 | com.docker.network.bridge.name: "ponmgmt" |