Added grafana to compose and conf for easier setup

This commit is contained in:
pb 2024-08-13 11:11:47 +02:00
parent 41f93a292c
commit c710469881
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,8 @@
datasources:
- name: Loki
type: loki
access: proxy
url: http://loki:3100
isDefault: true
jsonData:
httpMethod: POST

View File

@ -17,6 +17,19 @@ services:
- "3100:3100" - "3100:3100"
networks: networks:
- scheduler - scheduler
grafana:
image: 'grafana/grafana'
container_name: grafana
ports:
- '3000:3000'
networks:
- scheduler
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: networks:
scheduler: scheduler: