blob: c016dd1298d0574c911326bb20a8397925a827b8 [file] [log] [blame]
David K. Bainbridge215e0242017-09-05 23:18:24 -07001version: '3'
2services:
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:
23 image: cord/onos:latest
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
37networks:
38 control_net:
39 driver: overlay
40 labels:
41 org.onosproject.cluster: "true"