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 |
David K. Bainbridge | 4e920b7 | 2017-10-12 07:49:14 -0700 | [diff] [blame] | 13 | logging: |
Kyle Farnsworth | 9938d29 | 2017-11-02 15:21:21 -0500 | [diff] [blame] | 14 | driver: "json-file" |
David K. Bainbridge | 4e920b7 | 2017-10-12 07:49:14 -0700 | [diff] [blame] | 15 | options: |
| 16 | max-size: "10m" |
| 17 | max-file: 3 |
Stephane Barbarie | 2940dac | 2017-08-18 14:15:17 -0400 | [diff] [blame] | 18 | deploy: |
| 19 | replicas: 3 |
| 20 | entrypoint: |
| 21 | - /ofagent/ofagent/main.py |
| 22 | - -v |
| 23 | - --consul=consul:8500 |
| 24 | - --fluentd=fluentd:24224 |
| 25 | - --controller=onos:6653 |
| 26 | - --grpc-endpoint=vcore:50556 |
| 27 | - --instance-id-is-container-name |
Girish | f6eeaea | 2017-11-13 10:53:57 +0530 | [diff] [blame] | 28 | - --enable-tls |
| 29 | - --key-file=/ofagent/pki/voltha.key |
| 30 | - --cert-file=/ofagent/pki/voltha.crt |
Stephane Barbarie | 2940dac | 2017-08-18 14:15:17 -0400 | [diff] [blame] | 31 | volumes: |
| 32 | - /var/run/docker.sock:/tmp/docker.sock |
| 33 | networks: |
| 34 | - voltha-net |
| 35 | |
| 36 | networks: |
| 37 | voltha-net: |
| 38 | external: |
| 39 | name: voltha_net |