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 | # |
sathishg | 5194e89 | 2017-06-30 16:46:26 +0530 | [diff] [blame] | 7 | consul: |
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", |
| 30 | "consul://consul:8500" |
| 31 | ] |
| 32 | links: |
| 33 | - consul |
| 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 | 1246305 | 2018-01-19 09:26:09 -0800 | [diff] [blame^] | 41 | image: "${REGISTRY}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 | 1246305 | 2018-01-19 09:26:09 -0800 | [diff] [blame^] | 53 | image: "${REGISTRY}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: |
| 73 | - consul |
| 74 | links: |
| 75 | - consul |
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 | 1246305 | 2018-01-19 09:26:09 -0800 | [diff] [blame^] | 91 | image: "${REGISTRY}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" |
| 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 | # |
David K. Bainbridge | 1246305 | 2018-01-19 09:26:09 -0800 | [diff] [blame^] | 115 | cli: |
| 116 | image: "${REGISTRY}voltha/cli:${TAG:-latest}" |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 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 | |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 129 | # |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 130 | # onos-1 |
| 131 | # |
| 132 | onos1: |
David K. Bainbridge | 1246305 | 2018-01-19 09:26:09 -0800 | [diff] [blame^] | 133 | image: "${REGISTRY}voltha/onos:${TAG:-latest}" |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 134 | 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: |
David K. Bainbridge | 1246305 | 2018-01-19 09:26:09 -0800 | [diff] [blame^] | 149 | image: "${REGISTRY}voltha/onos:${TAG:-latest}" |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 150 | 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: |
David K. Bainbridge | 1246305 | 2018-01-19 09:26:09 -0800 | [diff] [blame^] | 165 | image: "${REGISTRY}voltha/onos:${TAG:-latest}" |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 166 | 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: |
David K. Bainbridge | 1246305 | 2018-01-19 09:26:09 -0800 | [diff] [blame^] | 180 | image: "${REGISTRY}voltha/ofagent:${TAG:-latest}" |
Girish | f6eeaea | 2017-11-13 10:53:57 +0530 | [diff] [blame] | 181 | 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] | 182 | depends_on: |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 183 | - consul |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 184 | - voltha |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 185 | links: |
| 186 | - consul |
| 187 | - fluentd |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 188 | volumes: |
| 189 | - "/var/run/docker.sock:/tmp/docker.sock" |
sathishg | 239af45 | 2017-07-13 16:27:46 +0530 | [diff] [blame] | 190 | restart: unless-stopped |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 191 | |
| 192 | networks: |
| 193 | default: |
| 194 | driver: bridge |
| 195 | ponmgmt: |
| 196 | driver: bridge |
| 197 | driver_opts: |
| 198 | com.docker.network.bridge.name: "ponmgmt" |