Use Loki, Promtail, and Grafana outside of Kubernetes

Could anyone please share your customized configs for Promtail outside Kubernetes? Or share the way how to do it?