Log grafana to /var/log/containers with journald/syslog

Use the docker compose journald logging driver to log grafana logs to
/var/log/containers. This simplifies log collection for CI jobs
(previously they were only available via `docker logs`) and should make
it easier to inspect logs in production.

Change-Id: Icdaadc6ed8d1355673cf36861d28e693bfe734a1
This commit is contained in:
Clark Boylan 2025-01-24 10:51:18 -08:00
parent cf05201b70
commit 711f49b7c3

View File

@ -19,3 +19,7 @@ services:
volumes:
- /etc/grafana/secrets:/etc/grafana/secrets:ro
- /etc/grafana/home:/etc/grafana/home:ro
logging:
driver: journald
options:
tag: "docker-grafana"