blob: 9418296fb684d3e5dfa3531ebb0515fdd00c4017 [file] [log] [blame]
Zack Williams41513bf2018-07-07 20:08:35 -07001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
David K. Bainbridge215e0242017-09-05 23:18:24 -070014version: '3'
15services:
16 cluster_manager:
17 image: unum:latest
18 networks:
19 - control_net
20 deploy:
21 replicas: 1
22 placement:
23 constraints:
24 - node.role == manager
25 environment:
26 PERIOD: "10s"
27 LOG_LEVEL: "debug"
28 LOG_FORMAT: "text"
29 ORCHESTRATION: "swarm://"
30 LABELS: "org.onosproject.cluster:true"
31 NETWORK: "org.onosproject.cluster:true"
32 volumes:
33 - /var/run/docker.sock:/var/run/docker.sock
34
35 controller:
David K. Bainbridge841959f2017-11-14 11:06:30 -080036 image: onosproject/onos:1.10.9
David K. Bainbridge215e0242017-09-05 23:18:24 -070037 depends_on:
38 - cluster_manager
39 networks:
40 - control_net
41 ports:
42 - 8101:8101
43 deploy:
44 replicas: 3
45 labels:
46 org.onosproject.cluster: "true"
47 environment:
48 EXTRA_JAVA_OPTS: "-Donos.cluster.metadata.uri=http://cluster_manager:5411/config/"
49
50networks:
51 control_net:
52 driver: overlay
53 labels:
54 org.onosproject.cluster: "true"