blob: ad233138dd7ff88887f55997c16accc395921048 [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"
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070070 #
Zsolt Haraszti86be6f12016-09-27 09:56:49 -070071 # Voltha server instance(s)
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070072 #
73 voltha:
74 image: cord/voltha
Zsolt Haraszti3d552922016-09-14 22:26:34 -070075 command: [
76 "/voltha/main.py",
77 "-v",
khenb95fe9a2016-10-05 11:15:25 -070078 "--consul=${DOCKER_HOST_IP}:8500",
Zsolt Haraszti3d552922016-09-14 22:26:34 -070079 "--fluentd=fluentd:24224",
Zsolt Harasztie060a7d2016-09-16 11:08:24 -070080 "--rest-port=8880",
Zsolt Haraszti45363352016-09-27 10:32:18 -070081 "--grpc-port=50555",
khenb95fe9a2016-10-05 11:15:25 -070082 "--kafka=@kafka",
Zsolt Harasztie060a7d2016-09-16 11:08:24 -070083 "--instance-id-is-container-name",
84 "-v"
Zsolt Haraszti3d552922016-09-14 22:26:34 -070085 ]
86 ports:
87 - 8880
Zsolt Haraszti45363352016-09-27 10:32:18 -070088 - 50555
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070089 depends_on:
90 - consul
91 links:
92 - consul
93 - fluentd
Zsolt Haraszti3d552922016-09-14 22:26:34 -070094 environment:
Zsolt Haraszti45363352016-09-27 10:32:18 -070095 SERVICE_8880_NAME: "voltha-health"
Zsolt Haraszti3d552922016-09-14 22:26:34 -070096 SERVICE_8880_CHECK_HTTP: "/health"
97 SERVICE_8880_CHECK_INTERVAL: "5s"
98 SERVICE_8880_CHECK_TIMEOUT: "1s"
Zsolt Haraszti45363352016-09-27 10:32:18 -070099 SERVICE_50555_NAME: "voltha-grpc"
alshabibc67ee3a2016-10-25 23:24:03 -0700100 SERVICE_50555_TAGS: "chameleon,ofagent"
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700101 volumes:
102 - "/var/run/docker.sock:/tmp/docker.sock"
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700103 #
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700104 # Chameleon server instance(s)
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700105 #
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700106 chameleon:
107 image: cord/chameleon
108 command: [
109 "/chameleon/main.py",
110 "-v",
Zsolt Haraszti15044082016-10-05 00:18:57 -0700111 "--consul=consul:8500",
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700112 "--fluentd=fluentd:24224",
113 "--rest-port=8881",
Zsolt Haraszti15044082016-10-05 00:18:57 -0700114 "--grpc-endpoint=@voltha-grpc",
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700115 "--instance-id-is-container-name",
116 "-v"
117 ]
118 ports:
119 - 8881
120 depends_on:
121 - consul
Zsolt Haraszti034db372016-10-03 22:26:41 -0700122 - voltha
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700123 links:
124 - consul
125 - fluentd
126 environment:
127 SERVICE_8881_NAME: "chameleon-rest"
128 volumes:
129 - "/var/run/docker.sock:/tmp/docker.sock"
Khen Nursimulu68b9be32016-10-25 11:57:04 -0400130 #
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 Nursimuluf309e2c2016-10-25 14:36:21 -0400140 "--controller=${DOCKER_HOST_IP}:6633",
Khen Nursimulu68b9be32016-10-25 11:57:04 -0400141 "--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"