logging: add promtail + loki + grafana #190

Closed
mg wants to merge 46 commits from loki into master
2 changed files with 35 additions and 3 deletions
Showing only changes of commit 83bfefd494 - Show all commits

View file

@ -5,19 +5,38 @@ services:
container_name: loki
restart: always
volumes:
- data:/loki
- loki:/loki
- ./loki-config.yml:/etc/loki-config.yml
command:
- '-config.file=/etc/loki-config.yml'
ports:
- "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:
# org.label-schema.group: "monitoring"
######## Networks ########
networks:
loki:
postfix:
external: true
internal:
######## 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=""