Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 1 | version: '2' |
| 2 | services: |
| 3 | # |
khen | b95fe9a | 2016-10-05 11:15:25 -0700 | [diff] [blame] | 4 | # Single-node zookeeper service |
| 5 | # |
| 6 | zookeeper: |
| 7 | image: wurstmeister/zookeeper |
| 8 | ports: |
Khen Nursimulu | da11dd7 | 2016-10-05 17:42:36 -0700 | [diff] [blame] | 9 | - 2181 |
khen | b95fe9a | 2016-10-05 11:15:25 -0700 | [diff] [blame] | 10 | environment: |
| 11 | SERVICE_2181_NAME: "zookeeper" |
| 12 | # |
| 13 | # Single-node kafka service |
| 14 | # |
| 15 | kafka: |
Khen Nursimulu | 74c1ef0 | 2016-10-12 21:17:42 -0400 | [diff] [blame] | 16 | image: wurstmeister/kafka |
khen | b95fe9a | 2016-10-05 11:15:25 -0700 | [diff] [blame] | 17 | ports: |
Khen Nursimulu | da11dd7 | 2016-10-05 17:42:36 -0700 | [diff] [blame] | 18 | - 9092 |
khen | b95fe9a | 2016-10-05 11:15:25 -0700 | [diff] [blame] | 19 | environment: |
| 20 | KAFKA_ADVERTISED_HOST_NAME: ${DOCKER_HOST_IP} |
| 21 | KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 |
| 22 | KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true' |
| 23 | SERVICE_9092_NAME: "kafka" |
| 24 | depends_on: |
| 25 | - consul |
| 26 | volumes: |
| 27 | - /var/run/docker.sock:/var/run/docker.sock |
| 28 | # |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 29 | # Single-node consul agent |
| 30 | # |
| 31 | consul: |
| 32 | image: consul:latest |
| 33 | command: agent -server -bootstrap -client 0.0.0.0 -ui |
| 34 | ports: |
| 35 | - "8300:8300" |
| 36 | - "8400:8400" |
| 37 | - "8500:8500" |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 38 | - "8600:8600/udp" |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 39 | environment: |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 40 | #SERVICE_53_IGNORE: "yes" |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 41 | SERVICE_8300_IGNORE: "yes" |
| 42 | SERVICE_8400_IGNORE: "yes" |
| 43 | SERVICE_8500_NAME: "consul-rest" |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 44 | # |
| 45 | # Registrator |
| 46 | # |
| 47 | registrator: |
| 48 | image: gliderlabs/registrator:latest |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 49 | command: [ |
| 50 | "-ip=${DOCKER_HOST_IP}", |
| 51 | "-retry-attempts", "100", |
| 52 | # "-internal", |
| 53 | "consul://consul:8500" |
| 54 | ] |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 55 | links: |
| 56 | - consul |
| 57 | volumes: |
| 58 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 59 | # |
| 60 | # Fluentd log server |
| 61 | # |
| 62 | fluentd: |
| 63 | image: fluent/fluentd |
| 64 | ports: |
| 65 | - "24224:24224" |
| 66 | volumes: |
| 67 | - "/tmp/fluentd:/fluentd/log" |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 68 | environment: |
| 69 | SERVICE_24224_NAME: "fluentd-intake" |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 70 | # |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 71 | # Voltha server instance(s) |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 72 | # |
| 73 | voltha: |
| 74 | image: cord/voltha |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 75 | command: [ |
| 76 | "/voltha/main.py", |
| 77 | "-v", |
khen | b95fe9a | 2016-10-05 11:15:25 -0700 | [diff] [blame] | 78 | "--consul=${DOCKER_HOST_IP}:8500", |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 79 | "--fluentd=fluentd:24224", |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 80 | "--rest-port=8880", |
Zsolt Haraszti | 4536335 | 2016-09-27 10:32:18 -0700 | [diff] [blame] | 81 | "--grpc-port=50555", |
khen | b95fe9a | 2016-10-05 11:15:25 -0700 | [diff] [blame] | 82 | "--kafka=@kafka", |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 83 | "--instance-id-is-container-name", |
| 84 | "-v" |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 85 | ] |
| 86 | ports: |
| 87 | - 8880 |
Zsolt Haraszti | 4536335 | 2016-09-27 10:32:18 -0700 | [diff] [blame] | 88 | - 50555 |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 89 | depends_on: |
| 90 | - consul |
| 91 | links: |
| 92 | - consul |
| 93 | - fluentd |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 94 | environment: |
Zsolt Haraszti | 4536335 | 2016-09-27 10:32:18 -0700 | [diff] [blame] | 95 | SERVICE_8880_NAME: "voltha-health" |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 96 | SERVICE_8880_CHECK_HTTP: "/health" |
| 97 | SERVICE_8880_CHECK_INTERVAL: "5s" |
| 98 | SERVICE_8880_CHECK_TIMEOUT: "1s" |
Zsolt Haraszti | 4536335 | 2016-09-27 10:32:18 -0700 | [diff] [blame] | 99 | SERVICE_50555_NAME: "voltha-grpc" |
alshabib | c67ee3a | 2016-10-25 23:24:03 -0700 | [diff] [blame] | 100 | SERVICE_50555_TAGS: "chameleon,ofagent" |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 101 | volumes: |
| 102 | - "/var/run/docker.sock:/tmp/docker.sock" |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 103 | # |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 104 | # Chameleon server instance(s) |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 105 | # |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 106 | chameleon: |
| 107 | image: cord/chameleon |
| 108 | command: [ |
| 109 | "/chameleon/main.py", |
| 110 | "-v", |
Zsolt Haraszti | 1504408 | 2016-10-05 00:18:57 -0700 | [diff] [blame] | 111 | "--consul=consul:8500", |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 112 | "--fluentd=fluentd:24224", |
| 113 | "--rest-port=8881", |
Zsolt Haraszti | 1504408 | 2016-10-05 00:18:57 -0700 | [diff] [blame] | 114 | "--grpc-endpoint=@voltha-grpc", |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 115 | "--instance-id-is-container-name", |
| 116 | "-v" |
| 117 | ] |
| 118 | ports: |
| 119 | - 8881 |
| 120 | depends_on: |
| 121 | - consul |
Zsolt Haraszti | 034db37 | 2016-10-03 22:26:41 -0700 | [diff] [blame] | 122 | - voltha |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 123 | links: |
| 124 | - consul |
| 125 | - fluentd |
| 126 | environment: |
| 127 | SERVICE_8881_NAME: "chameleon-rest" |
| 128 | volumes: |
| 129 | - "/var/run/docker.sock:/tmp/docker.sock" |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 130 | # |
| 131 | # ofagent server instance |
| 132 | # |
| 133 | ofagent: |
| 134 | image: cord/ofagent |
| 135 | command: [ |
| 136 | "/ofagent/main.py", |
| 137 | "-v", |
| 138 | "--consul=${DOCKER_HOST_IP}:8500", |
| 139 | "--fluentd=fluentd:24224", |
Khen Nursimulu | f309e2c | 2016-10-25 14:36:21 -0400 | [diff] [blame] | 140 | "--controller=${DOCKER_HOST_IP}:6633", |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 141 | "--grpc-endpoint=@voltha-grpc", |
| 142 | "--instance-id-is-container-name", |
| 143 | "-v" |
| 144 | ] |
| 145 | depends_on: |
| 146 | - consul |
| 147 | - voltha |
| 148 | links: |
| 149 | - consul |
| 150 | - fluentd |
| 151 | volumes: |
| 152 | - "/var/run/docker.sock:/tmp/docker.sock" |