blob: 140c8c4eeee35bb2d304821c4da29614635cd060 [file] [log] [blame]
#
# This Docker stackfile deploys a netconf swarm, one container per node.
#
# Netconf depends on the following being present:
# - the 'voltha_net' overlay network
# - the Voltha service
#
# To deploy the stack, issue the command:
#
# docker stack deploy -c docker-compose-netconf-swarm.yml netconf
#
version: "3"
services:
netconf:
image: "${REGISTRY}${REPOSITORY}voltha-netconf:${TAG:-latest}"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: 3
deploy:
mode: global
environment:
SERVICE_1830_NAME: "netconf-server"
entrypoint:
- /netconf/netconf/main.py
- -v
- --consul=consul:8500
- --fluentd=fluentd:24224
- --grpc-endpoint=voltha:50555
- --instance-id-is-container-name
networks:
- voltha-net
ports:
- "830:1830"
volumes:
- /var/run/docker.sock:/tmp/docker.sock
networks:
voltha-net:
external:
name: voltha_net