blob: 5c261f82fc6ed8c254021a05cad64d65e8ca64c1 [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"
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700100 volumes:
101 - "/var/run/docker.sock:/tmp/docker.sock"
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700102 #
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700103 # Chameleon server instance(s)
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700104 #
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700105 chameleon:
106 image: cord/chameleon
107 command: [
108 "/chameleon/main.py",
109 "-v",
Zsolt Haraszti15044082016-10-05 00:18:57 -0700110 "--consul=consul:8500",
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700111 "--fluentd=fluentd:24224",
112 "--rest-port=8881",
Zsolt Haraszti15044082016-10-05 00:18:57 -0700113 "--grpc-endpoint=@voltha-grpc",
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700114 "--instance-id-is-container-name",
115 "-v"
116 ]
117 ports:
118 - 8881
119 depends_on:
120 - consul
Zsolt Haraszti034db372016-10-03 22:26:41 -0700121 - voltha
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700122 links:
123 - consul
124 - fluentd
125 environment:
126 SERVICE_8881_NAME: "chameleon-rest"
127 volumes:
128 - "/var/run/docker.sock:/tmp/docker.sock"