blob: f35375f0e83bf8013a6b887c886c5d1640997007 [file] [log] [blame]
# Copyright 2017-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# This stackfile deploys dashd and shovel services to a docker swarm.
#
# Each of these services depends on:
# - vconsul (service)
# - kafka (service)
# - grafana (service)
# - voltha_net (overlay network)
#
# To deploy the stack, issue the command:
#
# docker stack deploy -c docker-compose-stats-swarm.yml stats
#
version: "3"
services:
dashd:
image: "${REGISTRY}${REPOSITORY}voltha-dashd:${TAG:-latest}"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: 3
deploy:
replicas: 1
entrypoint:
- /dashd/dashd/main.py
- --kafka=kafka
- --consul=vconsul:8500
- --grafana_url=http://admin:admin@grafana:80/api
- --topic=voltha.kpis
- --docker_host=${DOCKER_HOST_IP}
networks:
- voltha-net
shovel:
image: "${REGISTRY}${REPOSITORY}voltha-shovel:${TAG:-latest}"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: 3
deploy:
replicas: 1
entrypoint:
- /shovel/shovel/main.py
- --kafka=kafka
- --consul=vconsul:8500
- --topic=voltha.kpis
- --host=grafana
networks:
- voltha-net
networks:
voltha-net:
external:
name: voltha_net