[add grafana]
This commit is contained in:
30
swarm.yml
30
swarm.yml
@@ -297,13 +297,12 @@
|
|||||||
- "traefik.http.routers.auth.rule=Host(`auth.jingoh.private`)"
|
- "traefik.http.routers.auth.rule=Host(`auth.jingoh.private`)"
|
||||||
- "traefik.http.routers.auth.entrypoints=websecure"
|
- "traefik.http.routers.auth.entrypoints=websecure"
|
||||||
- "traefik.http.routers.auth.tls=true"
|
- "traefik.http.routers.auth.tls=true"
|
||||||
- "traefik.http.routers.auth.middlewares=privatevpn"
|
- "traefik.http.routers.auth.middlewares=privatevpn,forward-auth"
|
||||||
- "traefik.http.routers.auth.service=auth@swarm"
|
- "traefik.http.routers.auth.service=auth@swarm"
|
||||||
- "traefik.http.services.auth.loadbalancer.server.port=4181"
|
- "traefik.http.services.auth.loadbalancer.server.port=4181"
|
||||||
- "traefik.http.middlewares.forward-auth.forwardauth.address=http://forward-auth:4181"
|
- "traefik.http.middlewares.forward-auth.forwardauth.address=http://forward-auth:4181"
|
||||||
- "traefik.http.middlewares.forward-auth.forwardauth.trustForwardHeader=true"
|
- "traefik.http.middlewares.forward-auth.forwardauth.trustForwardHeader=true"
|
||||||
- "traefik.http.middlewares.forward-auth.forwardauth.authResponseHeaders=X-Forwarded-User"
|
- "traefik.http.middlewares.forward-auth.forwardauth.authResponseHeaders=X-Forwarded-User"
|
||||||
- "traefik.http.routers.auth.middlewares=forward-auth"
|
|
||||||
placement:
|
placement:
|
||||||
constraints:
|
constraints:
|
||||||
- node.role == manager
|
- node.role == manager
|
||||||
@@ -327,6 +326,28 @@
|
|||||||
- "traefik.enable=false"
|
- "traefik.enable=false"
|
||||||
networks:
|
networks:
|
||||||
- public
|
- public
|
||||||
|
grafana:
|
||||||
|
image: grafana/grafana:latest
|
||||||
|
container_name: grafana
|
||||||
|
security_opt:
|
||||||
|
- no-new-privileges:true
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- public
|
||||||
|
volumes:
|
||||||
|
- grafana-lib:/var/lib/grafana
|
||||||
|
environment:
|
||||||
|
GF_INSTALL_PLUGINS: "grafana-clock-panel,grafana-simple-json-datasource,grafana-worldmap-panel,grafana-piechart-panel"
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
# HTTP Routers
|
||||||
|
- "traefik.http.routers.grafana-rtr.entrypoints=websecure"
|
||||||
|
- "traefik.http.routers.grafana-rtr.rule=Host(`grafana2.jingoh.private`)"
|
||||||
|
# Middlewares
|
||||||
|
- "traefik.http.routers.grafana-rtr.middlewares=privatevpn,forward-auth"
|
||||||
|
# HTTP Services
|
||||||
|
- "traefik.http.routers.grafana-rtr.service=grafana-svc"
|
||||||
|
- "traefik.http.services.grafana-svc.loadbalancer.server.port=3000"
|
||||||
networks:
|
networks:
|
||||||
public:
|
public:
|
||||||
external: true
|
external: true
|
||||||
@@ -334,13 +355,10 @@
|
|||||||
external: true
|
external: true
|
||||||
attachable: true
|
attachable: true
|
||||||
volumes:
|
volumes:
|
||||||
db-data:
|
grafana-lib:
|
||||||
influx-data:
|
|
||||||
configs:
|
configs:
|
||||||
traefik-dynamic-configuration:
|
traefik-dynamic-configuration:
|
||||||
external: true
|
external: true
|
||||||
traefik-forward-auth:
|
|
||||||
external: true
|
|
||||||
secrets:
|
secrets:
|
||||||
wildcard-jingoh-private.crt:
|
wildcard-jingoh-private.crt:
|
||||||
external: true
|
external: true
|
||||||
|
|||||||
Reference in New Issue
Block a user