-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
140 lines (128 loc) · 2.92 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
services:
atomix-1:
image: atomix/atomix:3.1.5
container_name: atomix-1
networks:
- onos-cluster
volumes:
- ./atomix-conf/atomix-1.conf:/opt/atomix/conf/atomix.conf
restart: always
atomix-2:
image: atomix/atomix:3.1.5
container_name: atomix-2
networks:
- onos-cluster
volumes:
- ./atomix-conf/atomix-2.conf:/opt/atomix/conf/atomix.conf
restart: always
atomix-3:
image: atomix/atomix:3.1.5
container_name: atomix-3
networks:
- onos-cluster
volumes:
- ./atomix-conf/atomix-3.conf:/opt/atomix/conf/atomix.conf
restart: always
onos-1:
image: onosproject/onos
container_name: onos-1
networks:
- onos-cluster
volumes:
- ./cluster-conf/cluster-1.json:/root/onos/config/cluster.json
ports:
- "6653:6653"
restart: always
onos-2:
image: onosproject/onos
container_name: onos-2
networks:
- onos-cluster
volumes:
- ./cluster-conf/cluster-2.json:/root/onos/config/cluster.json
ports:
- "6654:6653"
restart: always
onos-3:
image: onosproject/onos
container_name: onos-3
networks:
- onos-cluster
volumes:
- ./cluster-conf/cluster-3.json:/root/onos/config/cluster.json
ports:
- "6655:6653"
restart: always
onos-mgt:
image: mnhost
container_name: onos-mgt
networks:
- onos-cluster
depends_on:
- onos-1
- onos-2
- onos-3
environment:
- ONOS_NODES=onos-1,onos-2,onos-3
volumes:
- ./install_onos_apps.sh:/opt/install_onos_apps.sh
command: /bin/bash /opt/install_onos_apps.sh
onos-gui:
image: haproxytech/haproxy-alpine
container_name: onos-gui
depends_on:
- onos-1
- onos-2
- onos-3
volumes:
- ./web-gui-proxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
ports:
- "8181:8181"
- "8404:8404"
networks:
- onos-cluster
exporter:
image: python:slim
container_name: exporter
depends_on:
- onos-gui
restart: always
networks:
- onos-cluster
ports:
- "9091:9091"
volumes:
- ./exporter.py:/app/exporter.py
command: >
/bin/sh -c " \
pip install prometheus_client requests && \
python /app/exporter.py \
"
grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- "3000:3000"
volumes:
- grafana-data:/var/lib/grafana
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_SECURITY_ADMIN_USER=admin
networks:
- onos-cluster
prometheus:
image: prom/prometheus:latest
container_name: prometheus
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
networks:
- onos-cluster
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
grafana-data:
networks:
onos-cluster:
driver: bridge