blob: 9f82fa45786bb6788bded56a2c4876d623c614b5 [file] [log] [blame]
Sergio Slobodrian36cd85f2017-08-24 11:01:11 -04001version: "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:
Sergio Slobodrian8725ea82017-08-27 23:47:41 -040016 image: cord/fluentd
David K. Bainbridge4e920b72017-10-12 07:49:14 -070017 logging:
18 driver: "json-file"
19 options:
20 max-size: "10m"
21 max-file: 3
Sergio Slobodrian36cd85f2017-08-24 11:01:11 -040022 deploy:
23 replicas: 1
24 restart_policy:
25 condition: on-failure
Sergio Slobodrian8725ea82017-08-27 23:47:41 -040026 environment:
27 FLUENTD_CONF: fluent-agg.conf
Sergio Slobodrian36cd85f2017-08-24 11:01:11 -040028 networks:
29 - voltha-net
30 ports:
31 - "24224"
32 volumes:
Sergio Slobodrian8725ea82017-08-27 23:47:41 -040033 - "/var/log/voltha/logging_volume:/fluentd/log"
Sergio Slobodrian36cd85f2017-08-24 11:01:11 -040034
35 fluentdstby:
Sergio Slobodrian8725ea82017-08-27 23:47:41 -040036 image: cord/fluentd
David K. Bainbridge4e920b72017-10-12 07:49:14 -070037 logging:
38 driver: "json-file"
39 options:
40 max-size: "10m"
41 max-file: 3
Sergio Slobodrian36cd85f2017-08-24 11:01:11 -040042 deploy:
43 replicas: 1
44 restart_policy:
45 condition: on-failure
Sergio Slobodrian8725ea82017-08-27 23:47:41 -040046 environment:
47 FLUENTD_CONF: fluent-agg.conf
Sergio Slobodrian36cd85f2017-08-24 11:01:11 -040048 networks:
49 - voltha-net
50 ports:
51 - "24224"
52 volumes:
Sergio Slobodrian8725ea82017-08-27 23:47:41 -040053 - "/var/log/voltha/logging_volume:/fluentd/log"
Sergio Slobodrian36cd85f2017-08-24 11:01:11 -040054
55networks:
56 voltha-net:
57 external:
58 name: voltha_net
59