Sergio Slobodrian | 36cd85f | 2017-08-24 11:01:11 -0400 | [diff] [blame] | 1 | version: "3" |
| 2 | services: |
| 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 | - "/var/log/voltha:/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 | - "/var/log/voltha:/fluentd/log" |
| 40 | |
| 41 | networks: |
| 42 | voltha-net: |
| 43 | external: |
| 44 | name: voltha_net |
| 45 | |