blob: 6cd3c484d38ce94a0ddb4fefcb2460428eb372e7 [file] [log] [blame]
Zsolt Harasztif2da1d02016-09-13 23:21:35 -07001version: '2'
2services:
3 #
khenb95fe9a2016-10-05 11:15:25 -07004 # Single-node zookeeper service
5 #
6 zookeeper:
7 image: wurstmeister/zookeeper
8 ports:
Khen Nursimuluda11dd72016-10-05 17:42:36 -07009 - 2181
khenb95fe9a2016-10-05 11:15:25 -070010 environment:
11 SERVICE_2181_NAME: "zookeeper"
12 #
13 # Single-node kafka service
14 #
15 kafka:
Khen Nursimulu74c1ef02016-10-12 21:17:42 -040016 image: wurstmeister/kafka
khenb95fe9a2016-10-05 11:15:25 -070017 ports:
Khen Nursimuluda11dd72016-10-05 17:42:36 -070018 - 9092
khenb95fe9a2016-10-05 11:15:25 -070019 environment:
20 KAFKA_ADVERTISED_HOST_NAME: ${DOCKER_HOST_IP}
21 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
22 KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true'
Khen Nursimulu34e7ebb2016-11-10 13:38:44 -080023 KAFKA_HEAP_OPTS: "-Xmx256M -Xms128M"
khenb95fe9a2016-10-05 11:15:25 -070024 SERVICE_9092_NAME: "kafka"
25 depends_on:
26 - consul
27 volumes:
28 - /var/run/docker.sock:/var/run/docker.sock
29 #
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070030 # Single-node consul agent
31 #
32 consul:
33 image: consul:latest
34 command: agent -server -bootstrap -client 0.0.0.0 -ui
35 ports:
36 - "8300:8300"
37 - "8400:8400"
38 - "8500:8500"
Zsolt Harasztie060a7d2016-09-16 11:08:24 -070039 - "8600:8600/udp"
Zsolt Haraszti3d552922016-09-14 22:26:34 -070040 environment:
Zsolt Harasztie060a7d2016-09-16 11:08:24 -070041 #SERVICE_53_IGNORE: "yes"
Zsolt Haraszti3d552922016-09-14 22:26:34 -070042 SERVICE_8300_IGNORE: "yes"
43 SERVICE_8400_IGNORE: "yes"
44 SERVICE_8500_NAME: "consul-rest"
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070045 #
46 # Registrator
47 #
48 registrator:
49 image: gliderlabs/registrator:latest
Zsolt Harasztie060a7d2016-09-16 11:08:24 -070050 command: [
51 "-ip=${DOCKER_HOST_IP}",
52 "-retry-attempts", "100",
53 # "-internal",
54 "consul://consul:8500"
55 ]
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070056 links:
57 - consul
58 volumes:
59 - "/var/run/docker.sock:/tmp/docker.sock"
Zsolt Harasztiaa4626e2016-12-08 16:53:06 -080060
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070061 #
62 # Fluentd log server
63 #
64 fluentd:
65 image: fluent/fluentd
66 ports:
67 - "24224:24224"
68 volumes:
69 - "/tmp/fluentd:/fluentd/log"
Zsolt Harasztie060a7d2016-09-16 11:08:24 -070070 environment:
71 SERVICE_24224_NAME: "fluentd-intake"
alshabib7941d402016-11-08 00:11:20 +010072
73 #
74 # Podder service instance
75 #
76 podder:
77 image: cord/podder
78 volumes:
79 - "/var/run/docker.sock:/tmp/docker.sock"
80 restart: unless-stopped
81
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070082 #
Zsolt Harasztiaa4626e2016-12-08 16:53:06 -080083 # Graphite-Grafana-statsd service instance
84 # (demo place-holder for external KPI system)
85 #
86 grafana:
87 image: kamon/grafana_graphite
88 ports:
89 - "8882:80"
90 - "2003:2003"
91 - "2004:2004"
92 - "8126:8126"
93 - "8125:8125/udp"
94 environment:
95 SERVICE_80_NAME: "grafana-web-ui"
96 SERVICE_2003_NAME: "carbon-plain-text-intake"
97 SERVICE_2004_NAME: "carbon-pickle-intake"
98 SERVICE_8126_NAME: "statsd-tcp-intake"
99 SERVICE_8125_NAME: "statsd-udp-intake"
100
101 #
102 # Shovel (Kafka-graphite-gateway)
103 #
104 shovel:
105 image: cord/shovel
106 command: [
107 "/shovel/shovel/main.py",
108 "--kafka=@kafka",
109 "--consul=${DOCKER_HOST_IP}:8500",
Zsolt Haraszti1b7c0362016-12-12 09:45:47 -0800110 "--topic=voltha.kpis",
Zsolt Harasztiaa4626e2016-12-08 16:53:06 -0800111 "--host=${DOCKER_HOST_IP}"
112 ]
113 depends_on:
114 - consul
115 - kafka
116 - grafana
117
118 #
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700119 # Voltha server instance(s)
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700120 #
121 voltha:
122 image: cord/voltha
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700123 command: [
Zsolt Haraszti1edb8282016-11-08 10:57:19 -0800124 "/voltha/voltha/main.py",
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700125 "-v",
khenb95fe9a2016-10-05 11:15:25 -0700126 "--consul=${DOCKER_HOST_IP}:8500",
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700127 "--fluentd=fluentd:24224",
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700128 "--rest-port=8880",
Zsolt Haraszti45363352016-09-27 10:32:18 -0700129 "--grpc-port=50555",
khenb95fe9a2016-10-05 11:15:25 -0700130 "--kafka=@kafka",
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700131 "--instance-id-is-container-name",
132 "-v"
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700133 ]
134 ports:
135 - 8880
Zsolt Haraszti45363352016-09-27 10:32:18 -0700136 - 50555
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700137 depends_on:
138 - consul
139 links:
140 - consul
141 - fluentd
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700142 environment:
Zsolt Haraszti45363352016-09-27 10:32:18 -0700143 SERVICE_8880_NAME: "voltha-health"
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700144 SERVICE_8880_CHECK_HTTP: "/health"
145 SERVICE_8880_CHECK_INTERVAL: "5s"
146 SERVICE_8880_CHECK_TIMEOUT: "1s"
Zsolt Haraszti45363352016-09-27 10:32:18 -0700147 SERVICE_50555_NAME: "voltha-grpc"
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700148 volumes:
149 - "/var/run/docker.sock:/tmp/docker.sock"
alshabib7941d402016-11-08 00:11:20 +0100150
151#############################################
152# Item below this line will soon be removed.#
153#############################################
154
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700155 #
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700156 # Chameleon server instance(s)
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700157 #
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700158 chameleon:
159 image: cord/chameleon
160 command: [
Zsolt Haraszti1edb8282016-11-08 10:57:19 -0800161 "/chameleon/chameleon/main.py",
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700162 "-v",
Zsolt Haraszti15044082016-10-05 00:18:57 -0700163 "--consul=consul:8500",
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700164 "--fluentd=fluentd:24224",
165 "--rest-port=8881",
Zsolt Haraszti15044082016-10-05 00:18:57 -0700166 "--grpc-endpoint=@voltha-grpc",
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700167 "--instance-id-is-container-name",
168 "-v"
169 ]
170 ports:
171 - 8881
172 depends_on:
173 - consul
Zsolt Haraszti034db372016-10-03 22:26:41 -0700174 - voltha
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700175 links:
176 - consul
177 - fluentd
178 environment:
179 SERVICE_8881_NAME: "chameleon-rest"
180 volumes:
181 - "/var/run/docker.sock:/tmp/docker.sock"
Khen Nursimulu68b9be32016-10-25 11:57:04 -0400182 #
183 # ofagent server instance
184 #
185 ofagent:
186 image: cord/ofagent
187 command: [
Zsolt Haraszti1edb8282016-11-08 10:57:19 -0800188 "/ofagent/ofagent/main.py",
Khen Nursimulu68b9be32016-10-25 11:57:04 -0400189 "-v",
190 "--consul=${DOCKER_HOST_IP}:8500",
191 "--fluentd=fluentd:24224",
Khen Nursimuluf309e2c2016-10-25 14:36:21 -0400192 "--controller=${DOCKER_HOST_IP}:6633",
Khen Nursimulu68b9be32016-10-25 11:57:04 -0400193 "--grpc-endpoint=@voltha-grpc",
194 "--instance-id-is-container-name",
195 "-v"
196 ]
197 depends_on:
198 - consul
199 - voltha
200 links:
201 - consul
202 - fluentd
203 volumes:
204 - "/var/run/docker.sock:/tmp/docker.sock"