blob: 54d43edae348a85c9ea562586e2ab6a748b3fc7b [file] [log] [blame]
Stephane Barbarie2940dac2017-08-18 14:15:17 -04001#
2# This Docker stackfile deploys a single onos container and freeradius.
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-onos-swarm.yml onos
8#
9version: "3.2"
10services:
11 freeradius:
12 deploy:
13 replicas: 1
14 image: "marcelmaatkamp/freeradius"
15 ports:
16 - "1812:1812/udp"
17 - "1813:1813"
18 - "18120:18120"
19 volumes:
20 - /cord/incubator/voltha/compose/data/clients.conf:/etc/raddb/clients.conf
21 - /cord/incubator/voltha/compose/data/users:/etc/raddb/users
22 networks:
23 - net
24 - voltha-net
25
26 onos:
27 deploy:
28 # Single instance for now since a cluster
29 # needs to be configured through onos
30 replicas: 1
31 image: "cord/onos"
32 ports:
33 - 8101:8101 # ssh
34 - 6653:6653 # OF
35 - 8181:8181 # UI
36 environment:
37 ONOS_APPS: 'drivers,openflow-base'
38 networks:
39 - net
40 - voltha-net
41
42networks:
43 net:
44 driver: overlay
45 driver_opts:
46 encrypted: "true"
47 ipam:
48 driver: default
49 config:
50 - subnet: 172.25.0.0/24
51
52 voltha-net:
53 external:
54 name: voltha_net