blob: 140688ee80c944f8f1ce080fcdde32c13723d298 [file] [log] [blame]
alshabib35448722016-12-02 17:22:18 -08001version: '2'
2services:
3 #
4 # Single-node zookeeper service
5 #
6 zookeeper:
7 image: wurstmeister/zookeeper
8 ports:
9 - 2181
10 environment:
11 SERVICE_2181_NAME: "zookeeper"
12 #
13 # Single-node kafka service
14 #
15 kafka:
16 image: wurstmeister/kafka
17 ports:
18 - 9092
19 environment:
20 KAFKA_ADVERTISED_HOST_NAME: ${DOCKER_HOST_IP}
21 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
22 KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true'
23 KAFKA_HEAP_OPTS: "-Xmx256M -Xms128M"
24 SERVICE_9092_NAME: "kafka"
25 depends_on:
26 - consul
27 volumes:
28 - /var/run/docker.sock:/var/run/docker.sock
29 #
30 # 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"
39 - "8600:8600/udp"
40 environment:
41 #SERVICE_53_IGNORE: "yes"
42 SERVICE_8300_IGNORE: "yes"
43 SERVICE_8400_IGNORE: "yes"
44 SERVICE_8500_NAME: "consul-rest"
45 #
46 # Registrator
47 #
48 registrator:
49 image: gliderlabs/registrator:latest
50 command: [
51 "-ip=${DOCKER_HOST_IP}",
52 "-retry-attempts", "100",
53 # "-internal",
54 "consul://consul:8500"
55 ]
56 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"
69 environment:
70 SERVICE_24224_NAME: "fluentd-intake"
71
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
81 #
82 # Voltha server instance(s)
83 #
84 voltha:
85 image: cord/voltha
86 command: [
87 "/voltha/voltha/main.py",
88 "-v",
89 "--consul=${DOCKER_HOST_IP}:8500",
90 "--fluentd=fluentd:24224",
91 "--rest-port=8880",
92 "--grpc-port=50555",
93 "--kafka=@kafka",
94 "--instance-id-is-container-name",
95 "-v"
96 ]
97 ports:
98 - 8880
99 - 50555
100 depends_on:
101 - consul
102 - podder
103 links:
104 - consul
105 - fluentd
106 environment:
107 SERVICE_8880_NAME: "voltha-health"
108 SERVICE_8880_CHECK_HTTP: "/health"
109 SERVICE_8880_CHECK_INTERVAL: "5s"
110 SERVICE_8880_CHECK_TIMEOUT: "1s"
111 SERVICE_50555_NAME: "voltha-grpc"
112 volumes:
113 - "/var/run/docker.sock:/tmp/docker.sock"
114