Stephane Barbarie | 2940dac | 2017-08-18 14:15:17 -0400 | [diff] [blame] | 1 | # |
| 2 | # This Docker stackfile deploys a ofagent container on all swarm instances. |
| 3 | # |
| 4 | # The stackfile assumes that overlay network 'voltha_net' has already been |
| 5 | # created. To deploy the stack, issue the command: |
| 6 | # |
| 7 | # docker stack deploy -c docker-compose-ofagent-swarm.yml ofagent |
| 8 | # |
| 9 | version: "3.2" |
| 10 | services: |
| 11 | ofagent: |
| 12 | image: cord/ofagent |
| 13 | deploy: |
| 14 | replicas: 3 |
| 15 | entrypoint: |
| 16 | - /ofagent/ofagent/main.py |
| 17 | - -v |
| 18 | - --consul=consul:8500 |
| 19 | - --fluentd=fluentd:24224 |
| 20 | - --controller=onos:6653 |
| 21 | - --grpc-endpoint=vcore:50556 |
| 22 | - --instance-id-is-container-name |
| 23 | volumes: |
| 24 | - /var/run/docker.sock:/tmp/docker.sock |
| 25 | networks: |
| 26 | - voltha-net |
| 27 | |
| 28 | networks: |
| 29 | voltha-net: |
| 30 | external: |
| 31 | name: voltha_net |