Using Loki with to handle docker-compose logs

Hi there,

I would like to use Loki to handle my docker-compose logs (for a home server) I understand that I need promtail to send the logs to Loki but I am unsure how to get promtail to read the docker-compose logs?

I have looked at the docker-compose example (https://github.com/grafana/loki/blob/master/production/docker-compose.yaml) but that is more for running Grafana/Loki/Promtail with docker-compose as opposed to using them them to handle docker-compose logs.

Just looking for a pointer in the right direction, I am guessing I have to mount a file into the Promtail container from my host that contains my docker-compose logs, but I am not 100% sure.

Cheers!