-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (40 loc) · 1.07 KB
/
docker-compose.yml
File metadata and controls
42 lines (40 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
version: '3.6'
services:
grafana:
build:
context: ./
dockerfile: Dockerfile
container_name: grafana-development
restart: unless-stopped
environment:
- TZ=Europe/Amsterdam
- GF_DEFAULT_INSTANCE_NAME=${GF_DEFAULT_INSTANCE_NAME}
- GF_SECURITY_ADMIN_USER=${GF_SECURITY_ADMIN_USER}
- GF_SECURITY_ADMIN_PASSWORD=${GF_SECURITY_ADMIN_PASSWORD}
- GF_LOG_MODE=console
- GF_INSTALL_PLUGINS=grafana-clock-panel,grafana-simple-json-datasource
ports:
- 3000:3000
volumes:
- ./data/grafana:/var/lib/grafana
- ./data/plugins:/var/lib/grafana/plugins
- ./data/backup:/var/lib/grafana/backup
networks:
- regenfass
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/api/health"]
interval: 30s
timeout: 10s
retries: 3
deploy:
resources:
limits:
cpus: '1'
memory: 1G
reservations:
cpus: '0.5'
memory: 512M
networks:
regenfass:
name: regenfass
driver: bridge