blob: 03ede6087e41b299b0e40ac46771b80f0a8a3bcf [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
sathishgb5d1c182017-07-13 14:20:19 +053015 fluentd:
David K. Bainbridge737b74f2018-01-22 12:57:52 -080016 image: "${REGISTRY}${REPOSITORY}voltha-fluentd:${TAG:-latest}"
David K. Bainbridge4e920b72017-10-12 07:49:14 -070017 logging:
18 driver: "json-file"
19 options:
20 max-size: "10m"
21 max-file: 3
sathishgb5d1c182017-07-13 14:20:19 +053022 deploy:
23 mode: replicated
24 replicas: 2
25 restart_policy:
26 condition: on-failure
27 environment:
28 SERVICE_24224_NAME: "fluentd-intake"
Sergio Slobodrian8725ea82017-08-27 23:47:41 -040029 FLUENTD_CONF: fluent.conf
sathishgb5d1c182017-07-13 14:20:19 +053030 networks:
31 - voltha-net
32 ports:
Sergio Slobodrian8725ea82017-08-27 23:47:41 -040033 - "24224"
sathishgb5d1c182017-07-13 14:20:19 +053034
35
36networks:
37 voltha-net:
38 external:
39 name: voltha_net
40