sathishg | b5d1c18 | 2017-07-13 14:20:19 +0530 | [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 | |
sathishg | b5d1c18 | 2017-07-13 14:20:19 +0530 | [diff] [blame] | 15 | fluentd: |
| 16 | image: cord/fluentd |
| 17 | deploy: |
| 18 | mode: replicated |
| 19 | replicas: 2 |
| 20 | restart_policy: |
| 21 | condition: on-failure |
| 22 | environment: |
| 23 | SERVICE_24224_NAME: "fluentd-intake" |
Sergio Slobodrian | 8725ea8 | 2017-08-27 23:47:41 -0400 | [diff] [blame] | 24 | FLUENTD_CONF: fluent.conf |
sathishg | b5d1c18 | 2017-07-13 14:20:19 +0530 | [diff] [blame] | 25 | networks: |
| 26 | - voltha-net |
| 27 | ports: |
Sergio Slobodrian | 8725ea8 | 2017-08-27 23:47:41 -0400 | [diff] [blame] | 28 | - "24224" |
sathishg | b5d1c18 | 2017-07-13 14:20:19 +0530 | [diff] [blame] | 29 | |
| 30 | |
| 31 | networks: |
| 32 | voltha-net: |
| 33 | external: |
| 34 | name: voltha_net |
| 35 | |