blob: 5e46f54c3117f0589a0d48c03ecab950c3a88598 [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:
sathishg11fe23b2017-08-07 23:11:17 +053026 - "/var/log/voltha:/fluentd/log"
sathishgb5d1c182017-07-13 14:20:19 +053027
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:
sathishg11fe23b2017-08-07 23:11:17 +053039 - "/var/log/voltha:/fluentd/log"
sathishgb5d1c182017-07-13 14:20:19 +053040
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