David K. Bainbridge | 215e024 | 2017-09-05 23:18:24 -0700 | [diff] [blame] | 1 | version: '3' |
| 2 | services: |
| 3 | cluster_manager: |
| 4 | image: unum:latest |
| 5 | networks: |
| 6 | - control_net |
| 7 | deploy: |
| 8 | replicas: 1 |
| 9 | placement: |
| 10 | constraints: |
| 11 | - node.role == manager |
| 12 | environment: |
| 13 | PERIOD: "10s" |
| 14 | LOG_LEVEL: "debug" |
| 15 | LOG_FORMAT: "text" |
| 16 | ORCHESTRATION: "swarm://" |
| 17 | LABELS: "org.onosproject.cluster:true" |
| 18 | NETWORK: "org.onosproject.cluster:true" |
| 19 | volumes: |
| 20 | - /var/run/docker.sock:/var/run/docker.sock |
| 21 | |
| 22 | controller: |
David K. Bainbridge | 841959f | 2017-11-14 11:06:30 -0800 | [diff] [blame] | 23 | image: onosproject/onos:1.10.9 |
David K. Bainbridge | 215e024 | 2017-09-05 23:18:24 -0700 | [diff] [blame] | 24 | depends_on: |
| 25 | - cluster_manager |
| 26 | networks: |
| 27 | - control_net |
| 28 | ports: |
| 29 | - 8101:8101 |
| 30 | deploy: |
| 31 | replicas: 3 |
| 32 | labels: |
| 33 | org.onosproject.cluster: "true" |
| 34 | environment: |
| 35 | EXTRA_JAVA_OPTS: "-Donos.cluster.metadata.uri=http://cluster_manager:5411/config/" |
| 36 | |
| 37 | networks: |
| 38 | control_net: |
| 39 | driver: overlay |
| 40 | labels: |
| 41 | org.onosproject.cluster: "true" |