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 ruok | nc -w 2 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 KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://:9092
65 KAFKA_LISTENERS: PLAINTEXT://:9092
66 KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
67 KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
69 - /var/run/docker.sock:/var/run/docker.sock
71 test: echo ruok | nc -w 2 zookeeper 2181
91 image: prom/prometheus:${PROMETHEUS_TAG:-latest}
94 - "${OSM_PROM_PORTS:-9091:9090}"
96 - ./prometheus/:/etc/prometheus/
99 - '--config.file=/etc/prometheus/prometheus.yml'
100 - '--web.enable-lifecycle'
109 image: google/cadvisor:${PROMETHEUS_CADVISOR_TAG:-latest}
111 - "${OSM_PROM_CADVISOR_PORTS:-8080:8080}"
114 - /var/run:/var/run:ro
116 - /var/lib/docker/:/var/lib/docker:ro
117 - /dev/disk/:/dev/disk:ro
121 image: ${DOCKER_USER:-opensourcemano}/keystone:${TAG:-9}
129 - "${OSM_KEYSTONE_PORTS:-5000:5000}"
136 image: ${DOCKER_USER:-opensourcemano}/nbi:${TAG:-9}
140 - osm_packages:/app/storage
142 OSMNBI_DATABASE_HOST: mongo
143 OSMNBI_MESSAGE_HOST: kafka
147 - "${OSM_NBI_PORTS:-9999:9999}"
157 image: ${DOCKER_USER:-opensourcemano}/lcm:${TAG:-9}
161 - osm_packages:/app/storage
164 OSMLCM_RO_PORT: "9090"
165 OSMLCM_DATABASE_HOST: mongo
166 OSMLCM_MESSAGE_HOST: kafka
185 - ro_db:/var/lib/mysql
196 image: ${DOCKER_USER:-opensourcemano}/ro:${TAG:-9}
201 OSMRO_DATABASE_HOST: mongo
202 OSMRO_MESSAGE_HOST: kafka
209 - "${OSM_RO_PORTS:-9090:9090}"
216 image: ${DOCKER_USER:-opensourcemano}/mon:${TAG:-9}
220 - mon_db:/app/database
222 OSMMON_MESSAGE_HOST: kafka
223 OSMMON_MESSAGE_PORT: 9092
227 - "${OSM_MON_PORTS:-8662:8662}"
236 image: ${DOCKER_USER:-opensourcemano}/pol:${TAG:-9}
240 - pol_db:/app/database
242 OSMPOL_MESSAGE_HOST: kafka
243 OSMPOL_MESSAGE_PORT: 9092
255 image: grafana/grafana
257 - ./grafana/dashboards-osm.yml:/etc/grafana/provisioning/dashboards/dashboards-osm.yml
258 - ./grafana/osm-sample-dashboard.json:/etc/grafana/provisioning/dashboards/osm-sample-dashboard.json
259 - ./grafana/osm-system-dashboard.json:/etc/grafana/provisioning/dashboards/osm-system-dashboard.json
260 - ./grafana/datasource-prometheus.yml:/etc/grafana/provisioning/datasources/datasource-prometheus.yml
263 - "${OSM_GRAFANA_PORTS:-3000:3000}"