blob: dee18cca114fe49b32dc159e6bf79ecc4a88aa24 [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
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
28networks:
29 voltha-net:
30 external:
31 name: voltha_net