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 | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 7 | vconsul: |
Richard Jankowski | 9ac4bbd | 2018-03-21 11:31:02 -0400 | [diff] [blame] | 8 | image: "${REGISTRY}consul: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: |
Richard Jankowski | 9ac4bbd | 2018-03-21 11:31:02 -0400 | [diff] [blame] | 24 | image: "${REGISTRY}gliderlabs/registrator: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 | 87314cd | 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 | 87314cd | 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: |
Richard Jankowski | 9ac4bbd | 2018-03-21 11:31:02 -0400 | [diff] [blame] | 41 | image: "${REGISTRY}${REPOSITORY}fluent/fluentd:v0.12.42" |
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: |
Richard Jankowski | 9ac4bbd | 2018-03-21 11:31:02 -0400 | [diff] [blame] | 53 | image: "${REGISTRY}${REPOSITORY}voltha-voltha${TAG}" |
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", |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 58 | "--rest-port=8880", |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 59 | "--grpc-port=50556", |
| 60 | "--kafka=@kafka", |
| 61 | "--instance-id-is-container-name", |
| 62 | "--interface=eth1", |
sathishg | 5194e89 | 2017-06-30 16:46:26 +0530 | [diff] [blame] | 63 | "--backend=consul", |
| 64 | "-v" |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 65 | ] |
| 66 | ports: |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 67 | - 8880 |
| 68 | - 50556 |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 69 | - 18880 |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 70 | - "60001:60001" |
sathishg | 5194e89 | 2017-06-30 16:46:26 +0530 | [diff] [blame] | 71 | depends_on: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 72 | - vconsul |
sathishg | 5194e89 | 2017-06-30 16:46:26 +0530 | [diff] [blame] | 73 | links: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 74 | - vconsul |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 75 | 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}" |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 82 | volumes: |
| 83 | - "/var/run/docker.sock:/tmp/docker.sock" |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 84 | networks: |
| 85 | - default |
| 86 | - ponmgmt |
| 87 | |
| 88 | envoy: |
Richard Jankowski | 9ac4bbd | 2018-03-21 11:31:02 -0400 | [diff] [blame] | 89 | image: "${REGISTRY}${REPOSITORY}voltha-envoy${TAG}" |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 90 | 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 Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 96 | - -consul-svc-nme |
| 97 | - "vconsul" |
| 98 | - -kv-svc-name |
| 99 | - "vconsul" |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 100 | 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. Bainbridge | bba65ff | 2018-01-19 09:26:09 -0800 | [diff] [blame] | 117 | cli: |
Richard Jankowski | 9ac4bbd | 2018-03-21 11:31:02 -0400 | [diff] [blame] | 118 | image: "${REGISTRY}${REPOSITORY}voltha-cli${TAG}" |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 119 | 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 | |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 131 | # |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 132 | # onos-1 |
| 133 | # |
| 134 | onos1: |
Richard Jankowski | 9ac4bbd | 2018-03-21 11:31:02 -0400 | [diff] [blame] | 135 | image: "${REGISTRY}${REPOSITORY}voltha-onos${TAG}" |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 136 | 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 Jankowski | 9ac4bbd | 2018-03-21 11:31:02 -0400 | [diff] [blame] | 151 | image: "${REGISTRY}${REPOSITORY}voltha-onos${TAG}" |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 152 | 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 Jankowski | 9ac4bbd | 2018-03-21 11:31:02 -0400 | [diff] [blame] | 167 | image: "${REGISTRY}${REPOSITORY}voltha-onos${TAG}" |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 168 | 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 Jankowski | 9ac4bbd | 2018-03-21 11:31:02 -0400 | [diff] [blame] | 182 | image: "${REGISTRY}${REPOSITORY}voltha-ofagent${TAG}" |
khenaidoo | 50b286d | 2018-03-02 17:44:30 -0500 | [diff] [blame] | 183 | 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 |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 184 | depends_on: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 185 | - vconsul |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 186 | - voltha |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 187 | links: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 188 | - vconsul |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 189 | volumes: |
| 190 | - "/var/run/docker.sock:/tmp/docker.sock" |
sathishg | 239af45 | 2017-07-13 16:27:46 +0530 | [diff] [blame] | 191 | restart: unless-stopped |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 192 | |
| 193 | networks: |
| 194 | default: |
| 195 | driver: bridge |
| 196 | ponmgmt: |
| 197 | driver: bridge |
| 198 | driver_opts: |
| 199 | com.docker.network.bridge.name: "ponmgmt" |