blob: 091ea79d9829466737038d40aab0d922e61c768e [file] [log] [blame]
Richard Jankowskie8eba492017-07-04 16:00:21 -04001#
2# This Docker stackfile deploys a netconf swarm, one container per node.
3#
4# Netconf depends on the following being present:
5# - the 'voltha_net' overlay network
6# - the Voltha service
7#
8# To deploy the stack, issue the command:
9#
10# docker stack deploy -c docker-compose-netconf-swarm.yml netconf
11#
12
13version: "3"
14services:
15 netconf:
David K. Bainbridge3d5b22d2018-01-22 12:57:52 -080016 image: "${REGISTRY}${REPOSITORY}voltha-netconf:${TAG:-latest}"
David K. Bainbridge4e920b72017-10-12 07:49:14 -070017 logging:
18 driver: "json-file"
19 options:
20 max-size: "10m"
21 max-file: 3
Richard Jankowskie8eba492017-07-04 16:00:21 -040022 deploy:
23 mode: global
24 environment:
25 SERVICE_1830_NAME: "netconf-server"
26 entrypoint:
27 - /netconf/netconf/main.py
28 - -v
Jonathan Hartd67db4a2018-02-12 17:15:35 -080029 - --consul=vconsul:8500
Richard Jankowskie8eba492017-07-04 16:00:21 -040030 - --fluentd=fluentd:24224
31 - --grpc-endpoint=voltha:50555
32 - --instance-id-is-container-name
33 networks:
34 - voltha-net
35 ports:
36 - "830:1830"
37 volumes:
38 - /var/run/docker.sock:/tmp/docker.sock
39
40networks:
41 voltha-net:
42 external:
43 name: voltha_net
44