khenaidoo | fe874ae | 2017-07-14 18:07:27 -0400 | [diff] [blame] | 1 | version: '2' |
| 2 | services: |
| 3 | # |
| 4 | # Single-node zookeeper service |
| 5 | # |
| 6 | zookeeper: |
David K. Bainbridge | 4894617 | 2018-01-20 14:33:37 -0800 | [diff] [blame] | 7 | image: "wurstmeister/zookeeper:latest" |
khenaidoo | fe874ae | 2017-07-14 18:07:27 -0400 | [diff] [blame] | 8 | ports: |
| 9 | - 2181 |
| 10 | environment: |
| 11 | SERVICE_2181_NAME: "zookeeper" |
| 12 | # |
| 13 | # Single-node kafka service |
| 14 | # |
| 15 | kafka: |
David K. Bainbridge | 4894617 | 2018-01-20 14:33:37 -0800 | [diff] [blame] | 16 | image: "wurstmeister/kafka:latest" |
khenaidoo | fe874ae | 2017-07-14 18:07:27 -0400 | [diff] [blame] | 17 | ports: |
| 18 | - 9092 |
| 19 | environment: |
| 20 | KAFKA_ADVERTISED_HOST_NAME: ${DOCKER_HOST_IP} |
| 21 | KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 |
| 22 | KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true' |
| 23 | KAFKA_HEAP_OPTS: "-Xmx256M -Xms128M" |
| 24 | SERVICE_9092_NAME: "kafka" |
| 25 | depends_on: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 26 | - vconsul |
khenaidoo | fe874ae | 2017-07-14 18:07:27 -0400 | [diff] [blame] | 27 | volumes: |
| 28 | - /var/run/docker.sock:/var/run/docker.sock |
| 29 | # |
| 30 | # Single-node consul agent |
| 31 | # |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 32 | vconsul: |
David K. Bainbridge | 4894617 | 2018-01-20 14:33:37 -0800 | [diff] [blame] | 33 | image: "consul:0.9.2" |
khenaidoo | fe874ae | 2017-07-14 18:07:27 -0400 | [diff] [blame] | 34 | command: agent -server -bootstrap -client 0.0.0.0 -ui |
| 35 | ports: |
| 36 | - "8300:8300" |
| 37 | - "8400:8400" |
| 38 | - "8500:8500" |
| 39 | - "8600:8600/udp" |
| 40 | environment: |
| 41 | #SERVICE_53_IGNORE: "yes" |
| 42 | SERVICE_8300_IGNORE: "yes" |
| 43 | SERVICE_8400_IGNORE: "yes" |
| 44 | SERVICE_8500_NAME: "consul-rest" |
| 45 | # |
| 46 | # Registrator |
| 47 | # |
| 48 | registrator: |
David K. Bainbridge | 4894617 | 2018-01-20 14:33:37 -0800 | [diff] [blame] | 49 | image: "gliderlabs/registrator:latest" |
khenaidoo | fe874ae | 2017-07-14 18:07:27 -0400 | [diff] [blame] | 50 | command: [ |
| 51 | "-ip=${DOCKER_HOST_IP}", |
| 52 | "-retry-attempts", "100", |
| 53 | "-cleanup", |
| 54 | # "-internal", |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 55 | "consul://vconsul:8500" |
khenaidoo | fe874ae | 2017-07-14 18:07:27 -0400 | [diff] [blame] | 56 | ] |
| 57 | links: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 58 | - vconsul |
khenaidoo | fe874ae | 2017-07-14 18:07:27 -0400 | [diff] [blame] | 59 | volumes: |
| 60 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 61 | |
| 62 | # |
| 63 | # Fluentd log server |
| 64 | # |
| 65 | fluentd: |
David K. Bainbridge | 4894617 | 2018-01-20 14:33:37 -0800 | [diff] [blame] | 66 | image: "fluent/fluentd:latest" |
khenaidoo | fe874ae | 2017-07-14 18:07:27 -0400 | [diff] [blame] | 67 | ports: |
| 68 | - "24224:24224" |
| 69 | volumes: |
| 70 | - "/tmp/fluentd:/fluentd/log" |
| 71 | environment: |
| 72 | SERVICE_24224_NAME: "fluentd-intake" |
| 73 | |
| 74 | # |
| 75 | # Voltha server instance(s) |
| 76 | # |
| 77 | voltha: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 78 | image: "${REGISTRY}${REPOSITORY}voltha-voltha:latest" |
khenaidoo | 50b286d | 2018-03-02 17:44:30 -0500 | [diff] [blame] | 79 | logging: |
| 80 | driver: "json-file" |
| 81 | options: |
| 82 | max-size: "10m" |
| 83 | max-file: "3" |
khenaidoo | fe874ae | 2017-07-14 18:07:27 -0400 | [diff] [blame] | 84 | command: [ |
| 85 | "/voltha/voltha/main.py", |
| 86 | "-v", |
| 87 | "--consul=${DOCKER_HOST_IP}:8500", |
khenaidoo | fe874ae | 2017-07-14 18:07:27 -0400 | [diff] [blame] | 88 | "--rest-port=8880", |
| 89 | "--grpc-port=50555", |
| 90 | "--kafka=@kafka", |
| 91 | "--instance-id-is-container-name", |
| 92 | "--interface=eth1", |
| 93 | "--backend=consul", |
| 94 | "-v" |
| 95 | ] |
| 96 | ports: |
| 97 | - 8880 |
| 98 | - 50555 |
| 99 | - 18880 |
| 100 | depends_on: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 101 | - vconsul |
khenaidoo | fe874ae | 2017-07-14 18:07:27 -0400 | [diff] [blame] | 102 | links: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 103 | - vconsul |
khenaidoo | fe874ae | 2017-07-14 18:07:27 -0400 | [diff] [blame] | 104 | environment: |
| 105 | SERVICE_8880_NAME: "voltha-health" |
| 106 | SERVICE_8880_CHECK_HTTP: "/health" |
| 107 | SERVICE_8880_CHECK_INTERVAL: "5s" |
| 108 | SERVICE_8880_CHECK_TIMEOUT: "1s" |
| 109 | SERVICE_50555_NAME: "voltha-grpc" |
| 110 | SERVICE_18880_NAME: "voltha-sim-rest" |
| 111 | volumes: |
| 112 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 113 | networks: |
| 114 | - default |
| 115 | - ponmgmt |
| 116 | |
| 117 | # |
khenaidoo | fe874ae | 2017-07-14 18:07:27 -0400 | [diff] [blame] | 118 | # ofagent server instance |
| 119 | # |
| 120 | ofagent: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 121 | image: "${REGISTRY}${REPOSITORY}voltha-ofagent:latest" |
khenaidoo | 50b286d | 2018-03-02 17:44:30 -0500 | [diff] [blame] | 122 | logging: |
| 123 | driver: "json-file" |
| 124 | options: |
| 125 | max-size: "10m" |
| 126 | max-file: "3" |
khenaidoo | fe874ae | 2017-07-14 18:07:27 -0400 | [diff] [blame] | 127 | command: [ |
| 128 | "/ofagent/ofagent/main.py", |
| 129 | "-v", |
| 130 | "--consul=${DOCKER_HOST_IP}:8500", |
khenaidoo | fe874ae | 2017-07-14 18:07:27 -0400 | [diff] [blame] | 131 | "--controller=${DOCKER_HOST_IP}:6653", |
| 132 | "--grpc-endpoint=@voltha-grpc", |
| 133 | "--instance-id-is-container-name", |
| 134 | "-v" |
| 135 | ] |
| 136 | depends_on: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 137 | - vconsul |
khenaidoo | fe874ae | 2017-07-14 18:07:27 -0400 | [diff] [blame] | 138 | - voltha |
| 139 | links: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 140 | - vconsul |
khenaidoo | fe874ae | 2017-07-14 18:07:27 -0400 | [diff] [blame] | 141 | volumes: |
| 142 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 143 | restart: unless-stopped |
| 144 | |
| 145 | # |
| 146 | # Netconf server instance(s) |
| 147 | # |
| 148 | netconf: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 149 | image: "${REGISTRY}${REPOSITORY}voltha-netconf:latest" |
khenaidoo | 50b286d | 2018-03-02 17:44:30 -0500 | [diff] [blame] | 150 | logging: |
| 151 | driver: "json-file" |
| 152 | options: |
| 153 | max-size: "10m" |
| 154 | max-file: "3" |
khenaidoo | fe874ae | 2017-07-14 18:07:27 -0400 | [diff] [blame] | 155 | privileged: true |
| 156 | command: [ |
| 157 | "/netconf/netconf/main.py", |
| 158 | "-v", |
| 159 | "--consul=${DOCKER_HOST_IP}:8500", |
khenaidoo | fe874ae | 2017-07-14 18:07:27 -0400 | [diff] [blame] | 160 | "--grpc-endpoint=@voltha-grpc", |
| 161 | "--instance-id-is-container-name", |
| 162 | "-v" |
| 163 | ] |
| 164 | ports: |
| 165 | - "830:1830" |
| 166 | depends_on: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 167 | - vconsul |
khenaidoo | fe874ae | 2017-07-14 18:07:27 -0400 | [diff] [blame] | 168 | - voltha |
| 169 | links: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 170 | - vconsul |
khenaidoo | fe874ae | 2017-07-14 18:07:27 -0400 | [diff] [blame] | 171 | environment: |
| 172 | SERVICE_1830_NAME: "netconf-server" |
| 173 | volumes: |
| 174 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 175 | |
| 176 | networks: |
| 177 | default: |
| 178 | driver: bridge |
| 179 | ponmgmt: |
| 180 | driver: bridge |
| 181 | driver_opts: |
| 182 | com.docker.network.bridge.name: "ponmgmt" |