version: '3.4' services: nats: image: 'nats:latest' container_name: nats ports: - 4222:4222 command: - "--debug" networks: - catalog loki: image: 'grafana/loki' container_name: loki labels: - "traefik.enable=true" - "traefik.http.routers.loki.entrypoints=web" - "traefik.http.routers.loki.rule=PathPrefix(`/tools/loki`)" - "traefik.http.services.loki.loadbalancer.server.port=3100" - "traefik.http.middlewares.loki-stripprefix.stripprefix.prefixes=/tools/loki" - "traefik.http.routers.loki.middlewares=loki-stripprefix" - "traefik.http.middlewares.loki.forwardauth.address=http://oc-auth:8080/oc/forward" ports : - "3100:3100" networks: - catalog grafana: image: 'grafana/grafana' container_name: grafana ports: - '3000:3000' labels: - "traefik.enable=true" - "traefik.http.routers.grafana.entrypoints=web" - "traefik.http.routers.grafana.rule=PathPrefix(`/tools/grafana`)" - "traefik.http.services.grafana.loadbalancer.server.port=3000" - "traefik.http.middlewares.grafana-stripprefix.stripprefix.prefixes=/tools/grafana" - "traefik.http.routers.grafana.middlewares=grafana-stripprefix" - "traefik.http.middlewares.grafana.forwardauth.address=http://oc-auth:8080/oc/forward" networks: - catalog volumes: - ./conf/grafana_data_source.yml:/etc/grafana/provisioning/datasources/datasource.yml environment: - GF_SECURITY_ADMIN_PASSWORD=pfnirt # Change this to anything but admin to not have a password change page at startup - GF_SECURITY_ADMIN_USER=admin - GF_SECURITY_DISABLE_INITIAL_ADMIN_PASSWORD_CHANGE=true networks: catalog: external: true