blob: 570f4b28bde067a0907525f621e219d9b6f72640 [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
David K. Bainbridgebba65ff2018-01-19 09:26:09 -080014 image: "${REGISTRY}marcelmaatkamp/freeradius:${RADIUS_TAG:-latest}"
David K. Bainbridge4e920b72017-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
David K. Bainbridge215e0242017-09-05 23:18:24 -070031 onos_cluster_manager:
David K. Bainbridge737b74f2018-01-22 12:57:52 -080032 image: "${REGISTRY}${REPOSITORY}voltha-unum:${TAG:-latest}"
David K. Bainbridge215e0242017-09-05 23:18:24 -070033 deploy:
34 replicas: 1
35 placement:
36 constraints:
37 - node.role == manager
38 environment:
39 PERIOD: "10s"
40 LOG_LEVEL: "debug"
41 ORCHESTRATION: "swarm://"
42 LABELS: "org.voltha.onos.cluster:true"
43 NETWORK: "org.voltha.onos.cluster:true"
44 networks:
45 - net
46 - voltha-net
47 volumes:
48 - /var/run/docker.sock:/var/run/docker.sock
49
Stephane Barbarie2940dac2017-08-18 14:15:17 -040050 onos:
51 deploy:
David K. Bainbridge215e0242017-09-05 23:18:24 -070052 replicas: 3
53 labels:
54 org.voltha.onos.cluster: "true"
David K. Bainbridge737b74f2018-01-22 12:57:52 -080055 image: "${REGISTRY}${REPOSITORY}voltha-onos:${TAG:-latest}"
David K. Bainbridge4e920b72017-10-12 07:49:14 -070056 logging:
57 driver: "json-file"
58 options:
59 max-size: "10m"
60 max-file: 3
Stephane Barbarie2940dac2017-08-18 14:15:17 -040061 ports:
62 - 8101:8101 # ssh
63 - 6653:6653 # OF
64 - 8181:8181 # UI
65 environment:
David K. Bainbridge215e0242017-09-05 23:18:24 -070066 EXTRA_JAVA_OPTS: "-Donos.cluster.metadata.uri=http://onos_cluster_manager:5411/config/"
Stephane Barbarie2940dac2017-08-18 14:15:17 -040067 networks:
68 - net
69 - voltha-net
Stephane Barbarie2940dac2017-08-18 14:15:17 -040070networks:
71 net:
72 driver: overlay
73 driver_opts:
74 encrypted: "true"
75 ipam:
76 driver: default
77 config:
78 - subnet: 172.25.0.0/24
David K. Bainbridge215e0242017-09-05 23:18:24 -070079 labels:
80 org.voltha.onos.cluster: "true"
Stephane Barbarie2940dac2017-08-18 14:15:17 -040081
82 voltha-net:
83 external:
84 name: voltha_net