Small changes in auth for web prometheus.

master
Tomasz Półgrabia 2024-12-14 02:20:10 +01:00
parent 8ad94180fe
commit 4dc267e11f
4 changed files with 11 additions and 2 deletions

View File

@ -1,10 +1,12 @@
version: '3.7' version: '3.7'
services: services:
prometheus: prometheus:
command: --config.file=/etc/prometheus/prometheus.yml --web.config.file=/etc/prometheus/prometheus.web.yml --storage.tsdb.path=/prometheus
image: 'prom/prometheus' image: 'prom/prometheus'
ports: ports:
- '9090:9090' - '9090:9090'
volumes: volumes:
- 'prometheus-config:/etc/prometheus'
- 'prometheus-data:/prometheus' - 'prometheus-data:/prometheus'
networks: networks:
- net - net
@ -15,7 +17,7 @@ services:
- '3000:3000' - '3000:3000'
volumes: volumes:
- 'grafana-storage:/var/lib/grafana' - 'grafana-storage:/var/lib/grafana'
- 'grafana-provisioning:/etc/grafana/provisioning' - 'grafana_demo1_grafana-provisioning:/etc/grafana/provisioning'
networks: networks:
- net - net
@ -24,7 +26,10 @@ networks:
driver: bridge driver: bridge
volumes: volumes:
grafana-provisioning: grafana_demo1_grafana-provisioning:
external:
true
grafana-storage: grafana-storage:
prometheus-config:
prometheus-data: prometheus-data:

View File

@ -0,0 +1,2 @@
auth_web_users:
admin: "<<bcrypt pass>>"

View File

@ -3,6 +3,7 @@ services:
prometheus: prometheus:
image: 'nginx' image: 'nginx'
volumes: volumes:
- 'prometheus-config:/etc/prometheus'
- 'prometheus-data:/prometheus' - 'prometheus-data:/prometheus'
grafana: grafana:
@ -12,6 +13,7 @@ services:
- 'grafana-provisioning:/etc/grafana/provisioning' - 'grafana-provisioning:/etc/grafana/provisioning'
volumes: volumes:
prometheus-config:
grafana-provisioning: grafana-provisioning:
grafana-storage: grafana-storage:
prometheus-data: prometheus-data: