X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=installers%2Fdocker%2Fdocker-compose.yaml;h=950946a19364e12b9106acc653c85805eb678c40;hb=fc82cca2839aa68966cf3a14d25f91cad391c88b;hp=104de48bf52701b32b7b4405e239e1d7d140e615;hpb=152bcad52ecfe925f6adf1b6470631b0cce0168d;p=osm%2Fdevops.git diff --git a/installers/docker/docker-compose.yaml b/installers/docker/docker-compose.yaml index 104de48b..950946a1 100644 --- a/installers/docker/docker-compose.yaml +++ b/installers/docker/docker-compose.yaml @@ -40,10 +40,10 @@ services: networks: - netOSM healthcheck: - test: echo stat | nc localhost 2181 - interval: 10s + test: echo ruok | nc -w 2 localhost 2181 + interval: 20s timeout: 10s - retries: 3 + retries: 5 logging: driver: "json-file" options: @@ -60,10 +60,15 @@ services: KAFKA_ADVERTISED_PORT: 9092 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 KAFKA_LOG_RETENTION_HOURS: 24 + KAFKA_BROKER_ID: 1 + KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://:9092 + KAFKA_LISTENERS: PLAINTEXT://:9092 + KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT + KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 volumes: - /var/run/docker.sock:/var/run/docker.sock healthcheck: - test: zookeeper-shell.sh zookeeper:2181 ls /brokers/ids 2>&1 | grep "Node does not exist" && exit 1 || exit 0 + test: echo ruok | nc -w 2 zookeeper 2181 interval: 20s timeout: 10s retries: 5 @@ -88,8 +93,11 @@ services: ports: - "${OSM_PROM_PORTS:-9091:9090}" volumes: - - ./prometheus.yml:/etc/prometheus/prometheus.yml:ro + - ./prometheus/:/etc/prometheus/ - prom_db:/prometheus + command: + - '--config.file=/etc/prometheus/prometheus.yml' + - '--web.enable-lifecycle' networks: - netOSM logging: @@ -261,10 +269,10 @@ services: grafana: image: grafana/grafana volumes: - - ./files/dashboards-osm.yml:/etc/grafana/provisioning/dashboards/dashboards-osm.yml - - ./files/osm-sample-dashboard.json:/etc/grafana/provisioning/dashboards/osm-sample-dashboard.json - - ./files/osm-system-dashboard.json:/etc/grafana/provisioning/dashboards/osm-system-dashboard.json - - ./files/datasource-prometheus.yml:/etc/grafana/provisioning/datasources/datasource-prometheus.yml + - ./grafana/dashboards-osm.yml:/etc/grafana/provisioning/dashboards/dashboards-osm.yml + - ./grafana/osm-sample-dashboard.json:/etc/grafana/provisioning/dashboards/osm-sample-dashboard.json + - ./grafana/osm-system-dashboard.json:/etc/grafana/provisioning/dashboards/osm-system-dashboard.json + - ./grafana/datasource-prometheus.yml:/etc/grafana/provisioning/datasources/datasource-prometheus.yml hostname: grafana ports: - "${OSM_GRAFANA_PORTS:-3000:3000}"