docker / awesome-compose

Awesome Docker Compose samples
https://docs.docker.com/compose/
Creative Commons Zero v1.0 Universal
34.57k stars 6.64k forks source link

Prometheus-grafana stack never starts #342

Open aj619 opened 1 year ago

aj619 commented 1 year ago

After going to the prometheus-grafana folder and doing docker compose up -d there is a error for the prometheus config

prometheus | ts=2023-03-30T16:54:25.711Z caller=main.go:468 level=error msg="Error loading config (--config.file=/etc/prometheus/prometheus.yml)" file=/etc/prometheus/prometheus.yml err="open /etc/prometheus/prometheus.yml: permission denied" prometheus exited with code 2

Please fix this.

Xiakit commented 1 year ago

I now it has been long, but the following fixed it for me. You just need to find out what id the container uses and then make the id owner of the data directories you configured.

What worked for me was: chown -R 65534:65534 prometheus/