blob: c21f37d6d5d6f7a0662739c9530f110bfb458d1d [file] [log] [blame]
sathishgb5d1c182017-07-13 14:20:19 +05301version: "3"
2services:
3
4#
5# Deploying a Fluentd cluster using this file assumes that overlay network 'voltha_net'
6# has already been created. To deploy the fluentd cluster, issue the command:
7#
8# docker stack deploy -c docker-compose-fluentd-cluster.yml fluentd
9#
10# This spins up two Fluentd Forwarders and one each Fluentd Aggregator-Active, Fluentd Aggregator-Standby.
11# The forwards listens for voltha components logs on port 23224 and sends them towards Fluentd Aggregator.
12# Fluentd Aggregator writes them to their host mounted disk
13#
14
15 fluentdactv:
16 image: fluent/fluentd
17 deploy:
18 replicas: 1
19 restart_policy:
20 condition: on-failure
21 networks:
22 - voltha-net
23 ports:
24 - "24224"
25 volumes:
26 - "/tmp/fluentd:/fluentd/log"
27
28 fluentdstby:
29 image: fluent/fluentd
30 deploy:
31 replicas: 1
32 restart_policy:
33 condition: on-failure
34 networks:
35 - voltha-net
36 ports:
37 - "24224"
38 volumes:
39 - "/tmp/fluentd:/fluentd/log"
40
41 fluentd:
42 image: cord/fluentd
43 deploy:
44 mode: replicated
45 replicas: 2
46 restart_policy:
47 condition: on-failure
48 environment:
49 SERVICE_24224_NAME: "fluentd-intake"
50 networks:
51 - voltha-net
52 ports:
53 - "24224:24224"
54
55
56networks:
57 voltha-net:
58 external:
59 name: voltha_net
60