logging: add promtail + loki + grafana #190
2 changed files with 35 additions and 3 deletions
|
@ -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:
|
||||
|
|
13
docker-compose/loki/grafana.env.j2
Normal file
13
docker-compose/loki/grafana.env.j2
Normal 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=""
|
Loading…
Reference in a new issue