Zack Williams | 41513bf | 2018-07-07 20:08:35 -0700 | [diff] [blame] | 1 | # 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 Jankowski | e8eba49 | 2017-07-04 16:00:21 -0400 | [diff] [blame] | 14 | # |
| 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 | |
| 26 | version: "3" |
| 27 | services: |
| 28 | netconf: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 29 | image: "${REGISTRY}${REPOSITORY}voltha-netconf:${TAG:-latest}" |
David K. Bainbridge | 4e920b7 | 2017-10-12 07:49:14 -0700 | [diff] [blame] | 30 | logging: |
| 31 | driver: "json-file" |
| 32 | options: |
| 33 | max-size: "10m" |
| 34 | max-file: 3 |
Richard Jankowski | e8eba49 | 2017-07-04 16:00:21 -0400 | [diff] [blame] | 35 | deploy: |
| 36 | mode: global |
| 37 | environment: |
| 38 | SERVICE_1830_NAME: "netconf-server" |
| 39 | entrypoint: |
| 40 | - /netconf/netconf/main.py |
| 41 | - -v |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 42 | - --consul=vconsul:8500 |
Richard Jankowski | e8eba49 | 2017-07-04 16:00:21 -0400 | [diff] [blame] | 43 | - --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 | |
| 52 | networks: |
| 53 | voltha-net: |
| 54 | external: |
| 55 | name: voltha_net |
| 56 | |