blob: 7342114742cc9c58c4b812d6544f53d67a623f49 [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:
12 image: cord/ofagent
David K. Bainbridgee45c1942017-10-12 07:49:14 -070013 logging:
14 driver: "json-file"
15 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
23 - --consul=consul:8500
24 - --fluentd=fluentd:24224
25 - --controller=onos:6653
26 - --grpc-endpoint=vcore:50556
27 - --instance-id-is-container-name
28 volumes:
29 - /var/run/docker.sock:/tmp/docker.sock
30 networks:
31 - voltha-net
32
33networks:
34 voltha-net:
35 external:
36 name: voltha_net