blob: dc49c4499d7ae69a44edb1f12942b4c58487052d [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.
Richard Jankowskie8eba492017-07-04 16:00:21 -040014#
15# This Docker stackfile deploys a netconf swarm, one container per node.
16#
17# Netconf depends on the following being present:
18# - the 'voltha_net' overlay network
19# - the Voltha service
20#
21# To deploy the stack, issue the command:
22#
23# docker stack deploy -c docker-compose-netconf-swarm.yml netconf
24#
25
26version: "3"
27services:
28 netconf:
David K. Bainbridge737b74f2018-01-22 12:57:52 -080029 image: "${REGISTRY}${REPOSITORY}voltha-netconf:${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
Richard Jankowskie8eba492017-07-04 16:00:21 -040035 deploy:
36 mode: global
37 environment:
38 SERVICE_1830_NAME: "netconf-server"
39 entrypoint:
40 - /netconf/netconf/main.py
41 - -v
Jonathan Hart87314cd2018-02-12 17:15:35 -080042 - --consul=vconsul:8500
Richard Jankowskie8eba492017-07-04 16:00:21 -040043 - --grpc-endpoint=voltha:50555
44 - --instance-id-is-container-name
45 networks:
46 - voltha-net
47 ports:
48 - "830:1830"
49 volumes:
50 - /var/run/docker.sock:/tmp/docker.sock
51
52networks:
53 voltha-net:
54 external:
55 name: voltha_net
56