blob: e35d006752a865ff6ea1fd2627f297e2b3be94d9 [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"
60 #
61 # Fluentd log server
62 #
63 fluentd:
64 image: fluent/fluentd
65 ports:
66 - "24224:24224"
67 volumes:
68 - "/tmp/fluentd:/fluentd/log"
Zsolt Harasztie060a7d2016-09-16 11:08:24 -070069 environment:
70 SERVICE_24224_NAME: "fluentd-intake"
alshabib7941d402016-11-08 00:11:20 +010071
72 #
73 # Podder service instance
74 #
75 podder:
76 image: cord/podder
77 volumes:
78 - "/var/run/docker.sock:/tmp/docker.sock"
79 restart: unless-stopped
80
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070081 #
Zsolt Haraszti86be6f12016-09-27 09:56:49 -070082 # Voltha server instance(s)
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070083 #
84 voltha:
85 image: cord/voltha
Zsolt Haraszti3d552922016-09-14 22:26:34 -070086 command: [
Zsolt Haraszti1edb8282016-11-08 10:57:19 -080087 "/voltha/voltha/main.py",
Zsolt Haraszti3d552922016-09-14 22:26:34 -070088 "-v",
khenb95fe9a2016-10-05 11:15:25 -070089 "--consul=${DOCKER_HOST_IP}:8500",
Zsolt Haraszti3d552922016-09-14 22:26:34 -070090 "--fluentd=fluentd:24224",
Zsolt Harasztie060a7d2016-09-16 11:08:24 -070091 "--rest-port=8880",
Zsolt Haraszti45363352016-09-27 10:32:18 -070092 "--grpc-port=50555",
khenb95fe9a2016-10-05 11:15:25 -070093 "--kafka=@kafka",
Zsolt Harasztie060a7d2016-09-16 11:08:24 -070094 "--instance-id-is-container-name",
95 "-v"
Zsolt Haraszti3d552922016-09-14 22:26:34 -070096 ]
97 ports:
98 - 8880
Zsolt Haraszti45363352016-09-27 10:32:18 -070099 - 50555
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700100 depends_on:
101 - consul
102 links:
103 - consul
104 - fluentd
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700105 environment:
Zsolt Haraszti45363352016-09-27 10:32:18 -0700106 SERVICE_8880_NAME: "voltha-health"
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700107 SERVICE_8880_CHECK_HTTP: "/health"
108 SERVICE_8880_CHECK_INTERVAL: "5s"
109 SERVICE_8880_CHECK_TIMEOUT: "1s"
Zsolt Haraszti45363352016-09-27 10:32:18 -0700110 SERVICE_50555_NAME: "voltha-grpc"
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700111 volumes:
112 - "/var/run/docker.sock:/tmp/docker.sock"
alshabib7941d402016-11-08 00:11:20 +0100113
114#############################################
115# Item below this line will soon be removed.#
116#############################################
117
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700118 #
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700119 # Chameleon server instance(s)
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700120 #
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700121 chameleon:
122 image: cord/chameleon
123 command: [
Zsolt Haraszti1edb8282016-11-08 10:57:19 -0800124 "/chameleon/chameleon/main.py",
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700125 "-v",
Zsolt Haraszti15044082016-10-05 00:18:57 -0700126 "--consul=consul:8500",
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700127 "--fluentd=fluentd:24224",
128 "--rest-port=8881",
Zsolt Haraszti15044082016-10-05 00:18:57 -0700129 "--grpc-endpoint=@voltha-grpc",
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700130 "--instance-id-is-container-name",
131 "-v"
132 ]
133 ports:
134 - 8881
135 depends_on:
136 - consul
Zsolt Haraszti034db372016-10-03 22:26:41 -0700137 - voltha
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700138 links:
139 - consul
140 - fluentd
141 environment:
142 SERVICE_8881_NAME: "chameleon-rest"
143 volumes:
144 - "/var/run/docker.sock:/tmp/docker.sock"
Khen Nursimulu68b9be32016-10-25 11:57:04 -0400145 #
146 # ofagent server instance
147 #
148 ofagent:
149 image: cord/ofagent
150 command: [
Zsolt Haraszti1edb8282016-11-08 10:57:19 -0800151 "/ofagent/ofagent/main.py",
Khen Nursimulu68b9be32016-10-25 11:57:04 -0400152 "-v",
153 "--consul=${DOCKER_HOST_IP}:8500",
154 "--fluentd=fluentd:24224",
Khen Nursimuluf309e2c2016-10-25 14:36:21 -0400155 "--controller=${DOCKER_HOST_IP}:6633",
Khen Nursimulu68b9be32016-10-25 11:57:04 -0400156 "--grpc-endpoint=@voltha-grpc",
157 "--instance-id-is-container-name",
158 "-v"
159 ]
160 depends_on:
161 - consul
162 - voltha
163 links:
164 - consul
165 - fluentd
166 volumes:
167 - "/var/run/docker.sock:/tmp/docker.sock"