Источники

Установка средствами Docker-compose

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
---
version: "3"
services:

  grafana:
    image: grafana/grafana:latest
    container_name: grafana
    user: 1024:1024
    environment:
      - PUID=1024
      - PGID=1024
      - GF_SERVER_DOMAIN=example.com
      - TZ=Europe/Moscow
    volumes:
      - /dconf/grafana/data:/var/lib/grafana
    ports:
      - 1024:1024
      - 3000:3000
    restart: unless-stopped
1
2
docker compose pull
docker compose up -d

CLI Установка

1
2
3
4
5
6
7
8
9
docker run -d \
  --name="grafana" \
  -u 1024:1024 \
  -p 3000:3000 \
  -v /dconf/grafana/data:/var/lib/grafana \
  -e "GF_SERVER_DOMAIN=example.com" \
  -e TZ=Europe/Moscow \
  --restart unless-stopped \
grafana/grafana:latest

Удаление

1
2
3
docker stop grafana ;\
docker rm grafana ;\
docker rmi grafana/grafana