Setting up Loki/Grafana in Docker to analyze Nginx logs
To be honest, it's a little confusing how to get started because there are lots of instructions out there and docker compose files floating around that are outdated. Let's follow the office docs at https://grafana.com/docs/loki/latest/setup/install/docker/#install-with-docker-compose.
The docker compose file from the docs as of today is here: https://raw.githubusercontent.com/grafana/loki/v3.4.1/production/docker-compose.yaml. Note that the link is likely subject to change with new versions.