blob: 8026e54b27e2b18e593d1bba00a0792e94fe4784 [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'
23 SERVICE_9092_NAME: "kafka"
24 depends_on:
25 - consul
26 volumes:
27 - /var/run/docker.sock:/var/run/docker.sock
28 #
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070029 # 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 Harasztie060a7d2016-09-16 11:08:24 -070038 - "8600:8600/udp"
Zsolt Haraszti3d552922016-09-14 22:26:34 -070039 environment:
Zsolt Harasztie060a7d2016-09-16 11:08:24 -070040 #SERVICE_53_IGNORE: "yes"
Zsolt Haraszti3d552922016-09-14 22:26:34 -070041 SERVICE_8300_IGNORE: "yes"
42 SERVICE_8400_IGNORE: "yes"
43 SERVICE_8500_NAME: "consul-rest"
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070044 #
45 # Registrator
46 #
47 registrator:
48 image: gliderlabs/registrator:latest
Zsolt Harasztie060a7d2016-09-16 11:08:24 -070049 command: [
50 "-ip=${DOCKER_HOST_IP}",
51 "-retry-attempts", "100",
52 # "-internal",
53 "consul://consul:8500"
54 ]
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070055 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 Harasztie060a7d2016-09-16 11:08:24 -070068 environment:
69 SERVICE_24224_NAME: "fluentd-intake"
alshabib7941d402016-11-08 00:11:20 +010070
71 #
72 # Podder service instance
73 #
74 podder:
75 image: cord/podder
76 volumes:
77 - "/var/run/docker.sock:/tmp/docker.sock"
78 restart: unless-stopped
79
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070080 #
Zsolt Haraszti86be6f12016-09-27 09:56:49 -070081 # Voltha server instance(s)
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070082 #
83 voltha:
84 image: cord/voltha
Zsolt Haraszti3d552922016-09-14 22:26:34 -070085 command: [
Zsolt Haraszti1edb8282016-11-08 10:57:19 -080086 "/voltha/voltha/main.py",
Zsolt Haraszti3d552922016-09-14 22:26:34 -070087 "-v",
khenb95fe9a2016-10-05 11:15:25 -070088 "--consul=${DOCKER_HOST_IP}:8500",
Zsolt Haraszti3d552922016-09-14 22:26:34 -070089 "--fluentd=fluentd:24224",
Zsolt Harasztie060a7d2016-09-16 11:08:24 -070090 "--rest-port=8880",
Zsolt Haraszti45363352016-09-27 10:32:18 -070091 "--grpc-port=50555",
khenb95fe9a2016-10-05 11:15:25 -070092 "--kafka=@kafka",
Zsolt Harasztie060a7d2016-09-16 11:08:24 -070093 "--instance-id-is-container-name",
94 "-v"
Zsolt Haraszti3d552922016-09-14 22:26:34 -070095 ]
96 ports:
97 - 8880
Zsolt Haraszti45363352016-09-27 10:32:18 -070098 - 50555
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070099 depends_on:
100 - consul
101 links:
102 - consul
103 - fluentd
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700104 environment:
Zsolt Haraszti45363352016-09-27 10:32:18 -0700105 SERVICE_8880_NAME: "voltha-health"
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700106 SERVICE_8880_CHECK_HTTP: "/health"
107 SERVICE_8880_CHECK_INTERVAL: "5s"
108 SERVICE_8880_CHECK_TIMEOUT: "1s"
Zsolt Haraszti45363352016-09-27 10:32:18 -0700109 SERVICE_50555_NAME: "voltha-grpc"
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700110 volumes:
111 - "/var/run/docker.sock:/tmp/docker.sock"
alshabib7941d402016-11-08 00:11:20 +0100112
113#############################################
114# Item below this line will soon be removed.#
115#############################################
116
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700117 #
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700118 # Chameleon server instance(s)
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700119 #
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700120 chameleon:
121 image: cord/chameleon
122 command: [
Zsolt Haraszti1edb8282016-11-08 10:57:19 -0800123 "/chameleon/chameleon/main.py",
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700124 "-v",
Zsolt Haraszti15044082016-10-05 00:18:57 -0700125 "--consul=consul:8500",
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700126 "--fluentd=fluentd:24224",
127 "--rest-port=8881",
Zsolt Haraszti15044082016-10-05 00:18:57 -0700128 "--grpc-endpoint=@voltha-grpc",
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700129 "--instance-id-is-container-name",
130 "-v"
131 ]
132 ports:
133 - 8881
134 depends_on:
135 - consul
Zsolt Haraszti034db372016-10-03 22:26:41 -0700136 - voltha
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700137 links:
138 - consul
139 - fluentd
140 environment:
141 SERVICE_8881_NAME: "chameleon-rest"
142 volumes:
143 - "/var/run/docker.sock:/tmp/docker.sock"
Khen Nursimulu68b9be32016-10-25 11:57:04 -0400144 #
145 # ofagent server instance
146 #
147 ofagent:
148 image: cord/ofagent
149 command: [
Zsolt Haraszti1edb8282016-11-08 10:57:19 -0800150 "/ofagent/ofagent/main.py",
Khen Nursimulu68b9be32016-10-25 11:57:04 -0400151 "-v",
152 "--consul=${DOCKER_HOST_IP}:8500",
153 "--fluentd=fluentd:24224",
Khen Nursimuluf309e2c2016-10-25 14:36:21 -0400154 "--controller=${DOCKER_HOST_IP}:6633",
Khen Nursimulu68b9be32016-10-25 11:57:04 -0400155 "--grpc-endpoint=@voltha-grpc",
156 "--instance-id-is-container-name",
157 "-v"
158 ]
159 depends_on:
160 - consul
161 - voltha
162 links:
163 - consul
164 - fluentd
165 volumes:
166 - "/var/run/docker.sock:/tmp/docker.sock"