mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-10 17:48:25 +08:00
3ad47f17ec
* - moved all vars to config - compose override - use the config in compose, caddy - aligned local / remote setup - proper docker cleanup - support for a relative installation path * - config handling - error handling / env cleanups - reduced compose files - misc * fixed debugs * fixed UI_IMAGE_TAG / IMAGE_TAG
53 lines
1.3 KiB
YAML
53 lines
1.3 KiB
YAML
version: "3.4"
|
|
|
|
services:
|
|
|
|
prometheus:
|
|
container_name: prometheus
|
|
image: gravitl/netmaker-prometheus:latest
|
|
env_file: ./netmaker.env
|
|
environment:
|
|
# config-dependant vars
|
|
- NETMAKER_METRICS_TARGET=netmaker-exporter.${NM_DOMAIN}
|
|
restart: always
|
|
volumes:
|
|
- prometheus_data:/prometheus
|
|
depends_on:
|
|
- netmaker
|
|
|
|
grafana:
|
|
container_name: grafana
|
|
image: gravitl/netmaker-grafana:latest
|
|
env_file: ./netmaker.env
|
|
environment:
|
|
# config-dependant vars
|
|
# TODO unify with netmaker-exporter
|
|
- PROMETHEUS_HOST=prometheus.${NM_DOMAIN}
|
|
- NETMAKER_METRICS_TARGET=netmaker-exporter.${NM_DOMAIN}
|
|
volumes:
|
|
- grafana_data:/var/lib/grafana
|
|
restart: always
|
|
links:
|
|
- prometheus
|
|
depends_on:
|
|
- prometheus
|
|
- netmaker
|
|
|
|
netmaker-exporter:
|
|
container_name: netmaker-exporter
|
|
image: gravitl/netmaker-exporter:latest
|
|
env_file: ./netmaker.env
|
|
environment:
|
|
# config-dependant vars
|
|
# TODO unify with grafana
|
|
- PROMETHEUS_HOST=https://prometheus.${NM_DOMAIN}
|
|
# The domain/host IP indicating the mq broker address
|
|
- BROKER_ENDPOINT=wss://broker.${NM_DOMAIN}
|
|
- API_PORT=${EXPORTER_API_PORT}
|
|
restart: always
|
|
depends_on:
|
|
- netmaker
|
|
|
|
volumes:
|
|
prometheus_data: { }
|
|
grafana_data: { }
|