Not able to create Grafana and Influxdb container

Hello,
I am new in this forum and I haven’t found an anwers to my problem.

I have a Raspi 4 computer with docker compose installed and Portainer. I installed Mosquitto and Pihole without any problem and it is running now for several weeks.

Now I want to install Influxdb, Telegraf and Grafana and failed. I am able to create a container (manually with docker compose or with Portainer) but only for some seconds an IP address and the published ports are shown, the they disappear and it is not possible to run Grafana or InfluxDB on the web interface.

I also tried to install it on a QNAP NAS with docker, where I have running Nextcloud.

This is my siple yml-file:

services:
grafana:
container_name: grafana
image: grafana/grafana-oss
restart: always
ports:
- 3000:3000
volumes:
- /opt/docker/grafana03/data:/var/lib/grafana

Installing Grafana via docker without options is not a problem.

Use 3 backticks before and after code/config to make it readable and preserve spacing.

What are Docker service/container logs telling you?

Is that what you want to know?

Raspi4-8@Raspi4-8:~ $ docker logs grafana
GF_PATHS_DATA=‘/var/lib/grafana’ is not writable.
You may have issues with file permissions, more information here: /docs/grafana/latest/setup-grafana/installation/docker/
mkdir: can’t create directory ‘/var/lib/grafana/plugins’: Permission denied
GF_PATHS_DATA=‘/var/lib/grafana’ is not writable.

[spoiler]>```services:
grafana:
container_name: grafana
image: grafana/grafana-oss
restart: always
ports:

  • 3000:3000
    volumes:
  • /opt/docker/grafana03/data:/var/lib/grafana```
    [/spoiler]`

**

So you got file permission issues. Have you read and worked your way through the linked documentation?

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.