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: |
| 16 | image: cord/netconf:latest |
| 17 | deploy: |
| 18 | mode: global |
| 19 | environment: |
| 20 | SERVICE_1830_NAME: "netconf-server" |
| 21 | entrypoint: |
| 22 | - /netconf/netconf/main.py |
| 23 | - -v |
| 24 | - --consul=consul:8500 |
| 25 | - --fluentd=fluentd:24224 |
| 26 | - --grpc-endpoint=voltha:50555 |
| 27 | - --instance-id-is-container-name |
| 28 | networks: |
| 29 | - voltha-net |
| 30 | ports: |
| 31 | - "830:1830" |
| 32 | volumes: |
| 33 | - /var/run/docker.sock:/tmp/docker.sock |
| 34 | |
| 35 | networks: |
| 36 | voltha-net: |
| 37 | external: |
| 38 | name: voltha_net |
| 39 | |