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: |
| 8 | image: consul:latest |
| 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: |
| 24 | image: gliderlabs/registrator:latest |
| 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: |
| 41 | image: fluent/fluentd |
| 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: |
| 53 | image: cord/voltha |
| 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: |
| 91 | image: voltha/envoy |
| 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 | # |
| 115 | vcli: |
| 116 | image: cord/vcli |
| 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 | # |
| 130 | # Chameleon server instance(s) |
| 131 | # |
| 132 | chameleon: |
| 133 | image: cord/chameleon |
| 134 | command: [ |
| 135 | "/chameleon/chameleon/main.py", |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 136 | "-v", |
| 137 | "--consul=consul:8500", |
| 138 | "--fluentd=fluentd:24224", |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 139 | "--rest-port=8881", |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 140 | "--grpc-endpoint=@voltha-grpc", |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 141 | "--instance-id-is-container-name" |
| 142 | ] |
| 143 | ports: |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 144 | - 8881 |
| 145 | depends_on: |
| 146 | - consul |
| 147 | - voltha |
| 148 | links: |
| 149 | - consul |
| 150 | - fluentd |
| 151 | environment: |
| 152 | SERVICE_8881_NAME: "chameleon-rest" |
| 153 | ENABLE_TLS: "False" |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 154 | volumes: |
| 155 | - "/var/run/docker.sock:/tmp/docker.sock" |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 156 | |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 157 | # |
| 158 | # onos-1 |
| 159 | # |
| 160 | onos1: |
sathishg | 239af45 | 2017-07-13 16:27:46 +0530 | [diff] [blame] | 161 | image: cord/onos |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 162 | container_name: onos1 |
| 163 | ports: |
| 164 | - 6633:6653 |
| 165 | - 8101:8101 |
| 166 | - 8181:8181 |
| 167 | environment: |
| 168 | ONOS_APPS: drivers,openflow |
| 169 | volumes: |
| 170 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 171 | restart: unless-stopped |
| 172 | |
| 173 | # |
| 174 | # onos-2 |
| 175 | # |
| 176 | onos2: |
sathishg | 239af45 | 2017-07-13 16:27:46 +0530 | [diff] [blame] | 177 | image: cord/onos |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 178 | container_name: onos2 |
| 179 | ports: |
| 180 | - 6644:6653 |
| 181 | - 8102:8101 |
| 182 | - 8182:8181 |
| 183 | environment: |
| 184 | ONOS_APPS: drivers,openflow |
| 185 | volumes: |
| 186 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 187 | restart: unless-stopped |
| 188 | |
| 189 | # |
| 190 | # onos-3 |
| 191 | # |
| 192 | onos3: |
sathishg | 239af45 | 2017-07-13 16:27:46 +0530 | [diff] [blame] | 193 | image: cord/onos |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 194 | container_name: onos3 |
| 195 | ports: |
| 196 | - 6655:6653 |
| 197 | - 8103:8101 |
| 198 | - 8183:8181 |
| 199 | environment: |
| 200 | ONOS_APPS: drivers,openflow |
| 201 | volumes: |
| 202 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 203 | restart: unless-stopped |
| 204 | # |
| 205 | # ofagent server instance |
| 206 | # |
| 207 | ofagent: |
| 208 | image: cord/ofagent |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 209 | 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 |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 210 | depends_on: |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 211 | - consul |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 212 | - voltha |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 213 | links: |
| 214 | - consul |
| 215 | - fluentd |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 216 | volumes: |
| 217 | - "/var/run/docker.sock:/tmp/docker.sock" |
sathishg | 239af45 | 2017-07-13 16:27:46 +0530 | [diff] [blame] | 218 | restart: unless-stopped |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 219 | |
| 220 | networks: |
| 221 | default: |
| 222 | driver: bridge |
| 223 | ponmgmt: |
| 224 | driver: bridge |
| 225 | driver_opts: |
| 226 | com.docker.network.bridge.name: "ponmgmt" |