blob: 8e766f519934e4f449f1088b1e26191af41d4d1a [file] [log] [blame]
Stephane Barbarie2940dac2017-08-18 14:15:17 -04001#
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#
9version: "3.2"
10services:
11 ofagent:
David K. Bainbridge737b74f2018-01-22 12:57:52 -080012 image: "${REGISTRY}${REPOSITORY}voltha-ofagent:${TAG:-latest}"
David K. Bainbridge4e920b72017-10-12 07:49:14 -070013 logging:
Kyle Farnsworth9938d292017-11-02 15:21:21 -050014 driver: "json-file"
David K. Bainbridge4e920b72017-10-12 07:49:14 -070015 options:
16 max-size: "10m"
17 max-file: 3
Stephane Barbarie2940dac2017-08-18 14:15:17 -040018 deploy:
19 replicas: 3
20 entrypoint:
21 - /ofagent/ofagent/main.py
22 - -v
Jonathan Hart87314cd2018-02-12 17:15:35 -080023 - --consul=vconsul:8500
Stephane Barbarie2940dac2017-08-18 14:15:17 -040024 - --controller=onos:6653
25 - --grpc-endpoint=vcore:50556
26 - --instance-id-is-container-name
Girishf6eeaea2017-11-13 10:53:57 +053027 - --enable-tls
28 - --key-file=/ofagent/pki/voltha.key
29 - --cert-file=/ofagent/pki/voltha.crt
Stephane Barbarie2940dac2017-08-18 14:15:17 -040030 volumes:
31 - /var/run/docker.sock:/tmp/docker.sock
32 networks:
33 - voltha-net
34
35networks:
36 voltha-net:
37 external:
38 name: voltha_net