blob: d06aea381bb4c01e6d10b978458490d85f1abf40 [file] [log] [blame]
Zsolt Harasztif2da1d02016-09-13 23:21:35 -07001version: '2'
2services:
3 #
4 # Single-node consul agent
5 #
6 consul:
7 image: consul:latest
8 command: agent -server -bootstrap -client 0.0.0.0 -ui
9 ports:
10 - "8300:8300"
11 - "8400:8400"
12 - "8500:8500"
13 - "8600:53/udp"
Zsolt Haraszti3d552922016-09-14 22:26:34 -070014 environment:
15 SERVICE_53_IGNORE: "yes"
16 SERVICE_8300_IGNORE: "yes"
17 SERVICE_8400_IGNORE: "yes"
18 SERVICE_8500_NAME: "consul-rest"
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070019 #
20 # Registrator
21 #
22 registrator:
23 image: gliderlabs/registrator:latest
Zsolt Haraszti3d552922016-09-14 22:26:34 -070024 command: -ip=10.0.2.15 -retry-attempts 100 -internal consul://consul:8500
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070025 links:
26 - consul
27 volumes:
28 - "/var/run/docker.sock:/tmp/docker.sock"
29 #
30 # Fluentd log server
31 #
32 fluentd:
33 image: fluent/fluentd
34 ports:
35 - "24224:24224"
36 volumes:
37 - "/tmp/fluentd:/fluentd/log"
38 #
39 # Single-node voltha
40 #
41 voltha:
42 image: cord/voltha
Zsolt Haraszti3d552922016-09-14 22:26:34 -070043 command: [
44 "/voltha/main.py",
45 "-v",
46 "--consul=consul:8500",
47 "--fluentd=fluentd:24224",
48 "--rest-port=8880"
49 ]
50 ports:
51 - 8880
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070052 depends_on:
53 - consul
54 links:
55 - consul
56 - fluentd
Zsolt Haraszti3d552922016-09-14 22:26:34 -070057 environment:
58 SERVICE_8880_NAME: "voltha-rest"
59 SERVICE_8880_CHECK_HTTP: "/health"
60 SERVICE_8880_CHECK_INTERVAL: "5s"
61 SERVICE_8880_CHECK_TIMEOUT: "1s"
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070062 #
63 # Test container to see services available
64 #
65 test:
66 image: busybox
67 command: tail -F /dev/null
68 depends_on:
69 - consul
70 - voltha
71 links:
72 - consul
73 - registrator
74 - fluentd
75 - voltha