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/:/etc/prometheus/
94 - '--config.file=/etc/prometheus/prometheus.yml'
95 - '--web.enable-lifecycle'
104 image: google/cadvisor:${PROMETHEUS_CADVISOR_TAG:-latest}
106 - "${OSM_PROM_CADVISOR_PORTS:-8080:8080}"
109 - /var/run:/var/run:ro
111 - /var/lib/docker/:/var/lib/docker:ro
112 - /dev/disk/:/dev/disk:ro
116 image: ${DOCKER_USER:-opensourcemano}/keystone:${TAG:-7}
124 - "${OSM_KEYSTONE_PORTS:-5000:5000}"
131 image: ${DOCKER_USER:-opensourcemano}/nbi:${TAG:-7}
135 - osm_packages:/app/storage
137 OSMNBI_DATABASE_HOST: mongo
138 OSMNBI_MESSAGE_HOST: kafka
142 - "${OSM_NBI_PORTS:-9999:9999}"
152 image: ${DOCKER_USER:-opensourcemano}/lcm:${TAG:-7}
156 - osm_packages:/app/storage
159 OSMLCM_DATABASE_HOST: mongo
160 OSMLCM_MESSAGE_HOST: kafka
179 - ro_db:/var/lib/mysql
190 image: ${DOCKER_USER:-opensourcemano}/ro:${TAG:-7}
202 - "${OSM_RO_PORTS:-9090:9090}"
209 image: ${DOCKER_USER:-opensourcemano}/mon:${TAG:-7}
213 - mon_db:/app/database
215 OSMMON_MESSAGE_HOST: kafka
216 OSMMON_MESSAGE_PORT: 9092
220 - "${OSM_MON_PORTS:-8662:8662}"
229 image: ${DOCKER_USER:-opensourcemano}/pol:${TAG:-7}
233 - pol_db:/app/database
235 OSMPOL_MESSAGE_HOST: kafka
236 OSMPOL_MESSAGE_PORT: 9092
248 image: ${DOCKER_USER:-opensourcemano}/light-ui:${TAG:-7}
258 - "${OSM_UI_PORTS:-80:80}"
265 image: grafana/grafana
267 - ./files/dashboards-osm.yml:/etc/grafana/provisioning/dashboards/dashboards-osm.yml
268 - ./files/osm-sample-dashboard.json:/etc/grafana/provisioning/dashboards/osm-sample-dashboard.json
269 - ./files/osm-system-dashboard.json:/etc/grafana/provisioning/dashboards/osm-system-dashboard.json
270 - ./files/datasource-prometheus.yml:/etc/grafana/provisioning/datasources/datasource-prometheus.yml
273 - "${OSM_GRAFANA_PORTS:-3000:3000}"