services: grafana: profiles: ["monitoring","all","grafana"] image: grafana/grafana:latest container_name: grafana restart: unless-stopped environment: - GF_SERVER_ROOT_URL=https://grafana.lan.ddnsgeek.com/ volumes: - ${PROJECT_ROOT}/monitoring/grafana/data:/var/lib/grafana networks: # - traefik_reverse_proxy # - prometheus_edge - traefik - monitor labels: - "traefik.http.routers.grafana.rule=Host(`grafana.lan.ddnsgeek.com`)" - "traefik.enable=true" - "traefik.http.routers.grafana.entrypoints=websecure" - "traefik.http.routers.grafana.tls.certresolver=myresolver" - "io.portainer.accesscontrol.public" - "traefik.http.services.grafana.loadbalancer.server.port=3000" - "traefik.docker.network=core_traefik" healthcheck: test: ["CMD", "wget", "--spider", "-q", "http://localhost:3000/api/health"] interval: 30s timeout: 10s retries: 3 start_period: 30s # tempo: # image: grafana/tempo:latest # container_name: tempo # command: # - "-config.file=/etc/tempo/config.yaml" # volumes: # - ./tempo/config.yaml:/etc/tempo/config.yaml # - ./tempo/data:/var/lib/tempo # ports: # - "4317:4317" # OTLP gRPC endpoint for Traefik # - "3200:3200" # optional: HTTP endpoint # networks: # - prometheus_edge #networks: # traefik_reverse_proxy: # external: true # prometheus_edge: # external: true