blob: 49e199d2316cde998d758ff1d42408187059703a [file] [log] [blame]
sgovindacc736782017-05-02 20:06:37 +05301version: '2'
2services:
3
sathishg5194e892017-06-30 16:46:26 +05304 consul:
5 image: consul:latest
6 command: agent -server -bootstrap -client 0.0.0.0 -ui
7 ports:
8 - "8300:8300"
9 - "8400:8400"
10 - "8500:8500"
11 - "8600:8600/udp"
12 environment:
13 #SERVICE_53_IGNORE: "yes"
14 SERVICE_8300_IGNORE: "yes"
15 SERVICE_8400_IGNORE: "yes"
16 SERVICE_8500_NAME: "consul-rest"
17 #
18 # Registrator
19 #
20 registrator:
21 image: gliderlabs/registrator:latest
22 command: [
23 "-ip=${DOCKER_HOST_IP}",
24 "-retry-attempts", "100",
25 "-cleanup",
26 # "-internal",
27 "consul://consul:8500"
28 ]
29 links:
30 - consul
31 volumes:
32 - "/var/run/docker.sock:/tmp/docker.sock"
33 #
34 # Voltha server instance(s)
35 #
sgovindacc736782017-05-02 20:06:37 +053036 voltha:
37 image: cord/voltha
38 command: [
39 "/voltha/voltha/main.py",
sathishg5194e892017-06-30 16:46:26 +053040 "-v",
41 "--consul=${DOCKER_HOST_IP}:8500",
sgovindacc736782017-05-02 20:06:37 +053042 "--rest-port=8880",
43 "--grpc-port=50555",
sathishg5194e892017-06-30 16:46:26 +053044 "--backend=consul",
45 "-v"
sgovindacc736782017-05-02 20:06:37 +053046 ]
sathishg5194e892017-06-30 16:46:26 +053047
sgovindacc736782017-05-02 20:06:37 +053048 ports:
49 - 8880:8880
50 - 50055:50555
51 - 18880
sathishg5194e892017-06-30 16:46:26 +053052 depends_on:
53 - consul
54 links:
55 - consul
sgovindacc736782017-05-02 20:06:37 +053056 volumes:
57 - "/var/run/docker.sock:/tmp/docker.sock"
58 #
59 # Chameleon server instance(s)
60 #
61 chameleon:
62 image: cord/chameleon
63 command: [
64 "/chameleon/chameleon/main.py",
65 "--rest-port=8881",
66 "--grpc-endpoint=${DOCKER_HOST_IP}:50055",
67 "--instance-id-is-container-name"
68 ]
69 ports:
70 - 8881:8881
71 volumes:
72 - "/var/run/docker.sock:/tmp/docker.sock"
73 #
74 # onos-1
75 #
76 onos1:
sathishg239af452017-07-13 16:27:46 +053077 image: cord/onos
sgovindacc736782017-05-02 20:06:37 +053078 container_name: onos1
79 ports:
80 - 6633:6653
81 - 8101:8101
82 - 8181:8181
83 environment:
84 ONOS_APPS: drivers,openflow
85 volumes:
86 - "/var/run/docker.sock:/tmp/docker.sock"
87 restart: unless-stopped
88
89 #
90 # onos-2
91 #
92 onos2:
sathishg239af452017-07-13 16:27:46 +053093 image: cord/onos
sgovindacc736782017-05-02 20:06:37 +053094 container_name: onos2
95 ports:
96 - 6644:6653
97 - 8102:8101
98 - 8182:8181
99 environment:
100 ONOS_APPS: drivers,openflow
101 volumes:
102 - "/var/run/docker.sock:/tmp/docker.sock"
103 restart: unless-stopped
104
105 #
106 # onos-3
107 #
108 onos3:
sathishg239af452017-07-13 16:27:46 +0530109 image: cord/onos
sgovindacc736782017-05-02 20:06:37 +0530110 container_name: onos3
111 ports:
112 - 6655:6653
113 - 8103:8101
114 - 8183:8181
115 environment:
116 ONOS_APPS: drivers,openflow
117 volumes:
118 - "/var/run/docker.sock:/tmp/docker.sock"
119 restart: unless-stopped
120 #
121 # ofagent server instance
122 #
123 ofagent:
124 image: cord/ofagent
125 command: /ofagent/ofagent/main.py --grpc-endpoint=${DOCKER_HOST_IP}:50055 --controller ${DOCKER_HOST_IP}:6633 ${DOCKER_HOST_IP}:6644 ${DOCKER_HOST_IP}:6655
126 depends_on:
127 - voltha
128 volumes:
129 - "/var/run/docker.sock:/tmp/docker.sock"
sathishg239af452017-07-13 16:27:46 +0530130 restart: unless-stopped