blob: a48e5ab63ae321d8725b8814f1197c6812989dcf [file] [log] [blame]
Zack Williams41513bf2018-07-07 20:08:35 -07001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
sathishgb5d1c182017-07-13 14:20:19 +053014version: "3"
15services:
16
17#
18# Deploying a Fluentd cluster using this file assumes that overlay network 'voltha_net'
19# has already been created. To deploy the fluentd cluster, issue the command:
20#
21# docker stack deploy -c docker-compose-fluentd-cluster.yml fluentd
22#
23# This spins up two Fluentd Forwarders and one each Fluentd Aggregator-Active, Fluentd Aggregator-Standby.
24# The forwards listens for voltha components logs on port 23224 and sends them towards Fluentd Aggregator.
25# Fluentd Aggregator writes them to their host mounted disk
26#
27
sathishgb5d1c182017-07-13 14:20:19 +053028 fluentd:
David K. Bainbridge737b74f2018-01-22 12:57:52 -080029 image: "${REGISTRY}${REPOSITORY}voltha-fluentd:${TAG:-latest}"
David K. Bainbridge4e920b72017-10-12 07:49:14 -070030 logging:
31 driver: "json-file"
32 options:
33 max-size: "10m"
34 max-file: 3
sathishgb5d1c182017-07-13 14:20:19 +053035 deploy:
36 mode: replicated
37 replicas: 2
38 restart_policy:
39 condition: on-failure
40 environment:
41 SERVICE_24224_NAME: "fluentd-intake"
Sergio Slobodrian8725ea82017-08-27 23:47:41 -040042 FLUENTD_CONF: fluent.conf
sathishgb5d1c182017-07-13 14:20:19 +053043 networks:
44 - voltha-net
45 ports:
Sergio Slobodrian8725ea82017-08-27 23:47:41 -040046 - "24224"
sathishgb5d1c182017-07-13 14:20:19 +053047
48
49networks:
50 voltha-net:
51 external:
52 name: voltha_net
53