This commit is contained in:
Michael Grote 2024-09-23 20:59:25 +02:00
parent a367667c3a
commit 83bfefd494
2 changed files with 35 additions and 3 deletions

View file

@ -5,19 +5,38 @@ services:
container_name: loki container_name: loki
restart: always restart: always
volumes: volumes:
- data:/loki - loki:/loki
- ./loki-config.yml:/etc/loki-config.yml - ./loki-config.yml:/etc/loki-config.yml
command: command:
- '-config.file=/etc/loki-config.yml' - '-config.file=/etc/loki-config.yml'
ports: ports:
- "3100:3100" - "3100:3100"
networks:
- internal
# labels:
# org.label-schema.group: "monitoring"
grafana:
image: grafana/grafana:9.4.3
container_name: grafana
restart: always
env_file: .env
volumes:
- grafana:/var/lib/grafana
expose:
- "3101"
networks:
- internal
# labels: # labels:
# org.label-schema.group: "monitoring" # org.label-schema.group: "monitoring"
######## Networks ######## ######## Networks ########
networks: networks:
loki: postfix:
external: true
internal:
######## Volumes ######## ######## Volumes ########
volumes: volumes:
data: loki:
grafana:

View file

@ -0,0 +1,13 @@
# GENERAL
TZ=Europe/Berlin
# GRAFANA
GF_SECURITY_ADMIN_USER=admin # TODO
GF_SECURITY_ADMIN_PASSWORD=admin # TODO
GF_USERS_ALLOW_SIGN_UP=false
# GRAFANA EMAIL
GF_SMTP_ENABLED=true
GF_SMTP_HOST=postfix
GF_SMTP_USER=grafana@mgrote.net
GF_SMTP_PASSWORD=""