Richard Jankowski | e8eba49 | 2017-07-04 16:00:21 -0400 | [diff] [blame] | 1 | # |
| 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 | |
| 13 | version: "3" |
| 14 | services: |
| 15 | netconf: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 16 | image: "${REGISTRY}${REPOSITORY}voltha-netconf:${TAG:-latest}" |
David K. Bainbridge | 4e920b7 | 2017-10-12 07:49:14 -0700 | [diff] [blame] | 17 | logging: |
| 18 | driver: "json-file" |
| 19 | options: |
| 20 | max-size: "10m" |
| 21 | max-file: 3 |
Richard Jankowski | e8eba49 | 2017-07-04 16:00:21 -0400 | [diff] [blame] | 22 | deploy: |
| 23 | mode: global |
| 24 | environment: |
| 25 | SERVICE_1830_NAME: "netconf-server" |
| 26 | entrypoint: |
| 27 | - /netconf/netconf/main.py |
| 28 | - -v |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 29 | - --consul=vconsul:8500 |
Richard Jankowski | e8eba49 | 2017-07-04 16:00:21 -0400 | [diff] [blame] | 30 | - --grpc-endpoint=voltha:50555 |
| 31 | - --instance-id-is-container-name |
| 32 | networks: |
| 33 | - voltha-net |
| 34 | ports: |
| 35 | - "830:1830" |
| 36 | volumes: |
| 37 | - /var/run/docker.sock:/tmp/docker.sock |
| 38 | |
| 39 | networks: |
| 40 | voltha-net: |
| 41 | external: |
| 42 | name: voltha_net |
| 43 | |