New Docker Install with persistent storage, Permission problem

To save everyone some headaches. You need to add both UID (user ID) and GID (group ID).

version: '3'

services:

  stats-app:
    image: grafana/grafana
    user: "$UID:$GID"
    network_mode: host
    ports:
      - 3000:3000
    volumes:
      - ./data/grafana:/var/lib/grafana
8 Likes