4 # Licensed under the Apache License, Version 2.0 (the "License"); you may
5 # not use this file except in compliance with the License. You may obtain
6 # a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 # License for the specific language governing permissions and limitations
17 ########################################################################
31 name: ${OSM_NETWORK:-netosm}
34 # com.docker.network.driver.mtu: "1446"
37 image: wurstmeister/zookeeper:${ZOOKEEPER_TAG:-latest}
43 test: echo stat | nc localhost 2181
53 image: wurstmeister/kafka:${KAFKA_TAG:-latest}
59 KAFKA_ADVERTISED_HOST_NAME: kafka
60 KAFKA_ADVERTISED_PORT: 9092
61 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
62 KAFKA_LOG_RETENTION_HOURS: 24
64 - /var/run/docker.sock:/var/run/docker.sock
66 test: zookeeper-shell.sh zookeeper:2181 ls /brokers/ids 2>&1 | grep "Node does not exist" && exit 1 || exit 0
86 image: prom/prometheus:${PROMETHEUS_TAG:-latest}
89 - "${OSM_PROM_PORTS:-9091:9090}"
91 - ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
101 image: google/cadvisor:${PROMETHEUS_CADVISOR_TAG:-latest}
103 - "${OSM_PROM_CADVISOR_PORTS:-8080:8080}"
106 - /var/run:/var/run:ro
108 - /var/lib/docker/:/var/lib/docker:ro
109 - /dev/disk/:/dev/disk:ro
113 image: ${DOCKER_USER:-opensourcemano}/keystone:${TAG:-8}
121 - "${OSM_KEYSTONE_PORTS:-5000:5000}"
128 image: ${DOCKER_USER:-opensourcemano}/nbi:${TAG:-8}
132 - osm_packages:/app/storage
134 OSMNBI_DATABASE_HOST: mongo
135 OSMNBI_MESSAGE_HOST: kafka
139 - "${OSM_NBI_PORTS:-9999:9999}"
149 image: ${DOCKER_USER:-opensourcemano}/lcm:${TAG:-8}
153 - osm_packages:/app/storage
156 OSMLCM_DATABASE_HOST: mongo
157 OSMLCM_MESSAGE_HOST: kafka
176 - ro_db:/var/lib/mysql
187 image: ${DOCKER_USER:-opensourcemano}/ro:${TAG:-8}
199 - "${OSM_RO_PORTS:-9090:9090}"
206 image: ${DOCKER_USER:-opensourcemano}/mon:${TAG:-8}
210 - mon_db:/app/database
212 OSMMON_MESSAGE_HOST: kafka
213 OSMMON_MESSAGE_PORT: 9092
217 - "${OSM_MON_PORTS:-8662:8662}"
226 image: ${DOCKER_USER:-opensourcemano}/pol:${TAG:-8}
230 - pol_db:/app/database
232 OSMPOL_MESSAGE_HOST: kafka
233 OSMPOL_MESSAGE_PORT: 9092
245 image: ${DOCKER_USER:-opensourcemano}/ng-ui:${TAG:-8}
251 - "${OSM_UI_PORTS:-80:80}"
258 image: grafana/grafana
260 - ./files/dashboards-osm.yml:/etc/grafana/provisioning/dashboards/dashboards-osm.yml
261 - ./files/osm-sample-dashboard.json:/etc/grafana/provisioning/dashboards/osm-sample-dashboard.json
262 - ./files/osm-system-dashboard.json:/etc/grafana/provisioning/dashboards/osm-system-dashboard.json
263 - ./files/datasource-prometheus.yml:/etc/grafana/provisioning/datasources/datasource-prometheus.yml
266 - "${OSM_GRAFANA_PORTS:-3000:3000}"