blob: 75a62963af2a5e442dba34db9e3f7e177c119952 [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"
David K. Bainbridgee45c1942017-10-12 07:49:14 -070015 logging:
16 driver: "json-file"
17 options:
18 max-size: "10m"
19 max-file: 3
Stephane Barbarie2940dac2017-08-18 14:15:17 -040020 ports:
21 - "1812:1812/udp"
22 - "1813:1813"
23 - "18120:18120"
24 volumes:
25 - /cord/incubator/voltha/compose/data/clients.conf:/etc/raddb/clients.conf
26 - /cord/incubator/voltha/compose/data/users:/etc/raddb/users
27 networks:
28 - net
29 - voltha-net
30
31 onos:
32 deploy:
33 # Single instance for now since a cluster
34 # needs to be configured through onos
35 replicas: 1
36 image: "cord/onos"
David K. Bainbridgee45c1942017-10-12 07:49:14 -070037 logging:
38 driver: "json-file"
39 options:
40 max-size: "10m"
41 max-file: 3
Stephane Barbarie2940dac2017-08-18 14:15:17 -040042 ports:
43 - 8101:8101 # ssh
44 - 6653:6653 # OF
45 - 8181:8181 # UI
46 environment:
47 ONOS_APPS: 'drivers,openflow-base'
48 networks:
49 - net
50 - voltha-net
51
52networks:
53 net:
54 driver: overlay
55 driver_opts:
56 encrypted: "true"
57 ipam:
58 driver: default
59 config:
60 - subnet: 172.25.0.0/24
61
62 voltha-net:
63 external:
64 name: voltha_net