-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
37 lines (34 loc) · 1011 Bytes
/
docker-compose.yml
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
version: '3.8'
networks:
grafana:
influxdb:
services:
influxdb:
image: influxdb:2.0-alpine
networks:
- grafana
- influxdb
ports:
- "8086:8086"
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=bert
- DOCKER_INFLUXDB_INIT_PASSWORD=password1
- DOCKER_INFLUXDB_INIT_ORG=k6io
- DOCKER_INFLUXDB_INIT_BUCKET=demo
# NOTE: This is an Admin token, it's not suggested to use this configuration in production.
# Instead, use a Token with restricted privileges.
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=EEKpryGZk8pVDXmIuy484BKUxM5jOEDv7YNoeNZUbsNbpbPbP6kK_qY9Zsyw7zNnlZ7pHG16FYzNaqwLMBUz8g==
grafana:
image: grafana/grafana:8.2.6
networks:
- grafana
- influxdb
ports:
- "3000:3000"
environment:
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_BASIC_ENABLED=false
volumes:
- ./grafana:/etc/grafana/provisioning/