Stephane Barbarie | 2940dac | 2017-08-18 14:15:17 -0400 | [diff] [blame] | 1 | # |
| 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 | # |
| 9 | version: "3.2" |
| 10 | services: |
| 11 | freeradius: |
| 12 | deploy: |
| 13 | replicas: 1 |
| 14 | image: "marcelmaatkamp/freeradius" |
David K. Bainbridge | 4e920b7 | 2017-10-12 07:49:14 -0700 | [diff] [blame] | 15 | logging: |
| 16 | driver: "json-file" |
| 17 | options: |
| 18 | max-size: "10m" |
| 19 | max-file: 3 |
Stephane Barbarie | 2940dac | 2017-08-18 14:15:17 -0400 | [diff] [blame] | 20 | 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. Bainbridge | 215e024 | 2017-09-05 23:18:24 -0700 | [diff] [blame] | 31 | onos_cluster_manager: |
| 32 | image: "voltha/unum" |
| 33 | 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 Barbarie | 2940dac | 2017-08-18 14:15:17 -0400 | [diff] [blame] | 50 | onos: |
| 51 | deploy: |
David K. Bainbridge | 215e024 | 2017-09-05 23:18:24 -0700 | [diff] [blame] | 52 | replicas: 3 |
| 53 | labels: |
| 54 | org.voltha.onos.cluster: "true" |
Stephane Barbarie | 2940dac | 2017-08-18 14:15:17 -0400 | [diff] [blame] | 55 | image: "cord/onos" |
David K. Bainbridge | 4e920b7 | 2017-10-12 07:49:14 -0700 | [diff] [blame] | 56 | logging: |
| 57 | driver: "json-file" |
| 58 | options: |
| 59 | max-size: "10m" |
| 60 | max-file: 3 |
Stephane Barbarie | 2940dac | 2017-08-18 14:15:17 -0400 | [diff] [blame] | 61 | ports: |
| 62 | - 8101:8101 # ssh |
| 63 | - 6653:6653 # OF |
| 64 | - 8181:8181 # UI |
| 65 | environment: |
David K. Bainbridge | 215e024 | 2017-09-05 23:18:24 -0700 | [diff] [blame] | 66 | EXTRA_JAVA_OPTS: "-Donos.cluster.metadata.uri=http://onos_cluster_manager:5411/config/" |
Stephane Barbarie | 2940dac | 2017-08-18 14:15:17 -0400 | [diff] [blame] | 67 | networks: |
| 68 | - net |
| 69 | - voltha-net |
Stephane Barbarie | 2940dac | 2017-08-18 14:15:17 -0400 | [diff] [blame] | 70 | networks: |
| 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. Bainbridge | 215e024 | 2017-09-05 23:18:24 -0700 | [diff] [blame] | 79 | labels: |
| 80 | org.voltha.onos.cluster: "true" |
Stephane Barbarie | 2940dac | 2017-08-18 14:15:17 -0400 | [diff] [blame] | 81 | |
| 82 | voltha-net: |
| 83 | external: |
| 84 | name: voltha_net |