blob: bf6bd76b481d66d07532e6cf3c57fb0e2053f198 [file] [log] [blame]
#
# This stackfile deploys grafana to a docker swarm.
#
# Grafana depends on:
# - voltha_net (overlay network)
#
# To deploy the stack, issue the command:
#
# docker stack deploy -c docker-compose-grafana-swarm.yml grafana
#
version: "3"
services:
grafana:
image: "${REGISTRY}kamon/grafana_graphite:${TAG:-latest}"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: 3
deploy:
replicas: 1
environment:
GR_SERVER_ROOT_URL: "http://localhost:80/grafana/"
networks:
- voltha-net
ports:
- "8883:80"
- "2003:2003"
- "2004:2004"
- "8126:8126"
- "8125:8125/udp"
networks:
voltha-net:
external:
name: voltha_net