blob: 3f7fb0f45e3c027c75d7af82916c3806ef5d30f4 [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"
Zsolt Harasztie060a7d2016-09-16 11:08:24 -070013 - "8600:8600/udp"
Zsolt Haraszti3d552922016-09-14 22:26:34 -070014 environment:
Zsolt Harasztie060a7d2016-09-16 11:08:24 -070015 #SERVICE_53_IGNORE: "yes"
Zsolt Haraszti3d552922016-09-14 22:26:34 -070016 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 Harasztie060a7d2016-09-16 11:08:24 -070024 command: [
25 "-ip=${DOCKER_HOST_IP}",
26 "-retry-attempts", "100",
27 # "-internal",
28 "consul://consul:8500"
29 ]
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070030 links:
31 - consul
32 volumes:
33 - "/var/run/docker.sock:/tmp/docker.sock"
34 #
35 # Fluentd log server
36 #
37 fluentd:
38 image: fluent/fluentd
39 ports:
40 - "24224:24224"
41 volumes:
42 - "/tmp/fluentd:/fluentd/log"
Zsolt Harasztie060a7d2016-09-16 11:08:24 -070043 environment:
44 SERVICE_24224_NAME: "fluentd-intake"
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070045 #
46 # Single-node voltha
47 #
48 voltha:
49 image: cord/voltha
Zsolt Haraszti3d552922016-09-14 22:26:34 -070050 command: [
51 "/voltha/main.py",
52 "-v",
53 "--consul=consul:8500",
54 "--fluentd=fluentd:24224",
Zsolt Harasztie060a7d2016-09-16 11:08:24 -070055 "--rest-port=8880",
56 "--instance-id-is-container-name",
57 "-v"
Zsolt Haraszti3d552922016-09-14 22:26:34 -070058 ]
59 ports:
60 - 8880
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070061 depends_on:
62 - consul
63 links:
64 - consul
65 - fluentd
Zsolt Haraszti3d552922016-09-14 22:26:34 -070066 environment:
67 SERVICE_8880_NAME: "voltha-rest"
68 SERVICE_8880_CHECK_HTTP: "/health"
69 SERVICE_8880_CHECK_INTERVAL: "5s"
70 SERVICE_8880_CHECK_TIMEOUT: "1s"
Zsolt Harasztie060a7d2016-09-16 11:08:24 -070071 IMAGE_NAME: "{{DCOKER_IMAGE_NAME}}"
72 volumes:
73 - "/var/run/docker.sock:/tmp/docker.sock"
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070074 #
75 # Test container to see services available
76 #
Zsolt Harasztie060a7d2016-09-16 11:08:24 -070077# test:
78# image: busybox
79# command: tail -F /dev/null
80# depends_on:
81# - consul
82# - voltha
83# links:
84# - consul
85# - registrator
86# - fluentd
87# - voltha