-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (50 loc) · 1.44 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: "3"
services:
telegraf:
image: telegraf:1.19.3
container_name: telegraf
restart: always
volumes:
- ./telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
# TODO Uncomment these lines if you want to configure grpc-tls
# - ./telegraf/ca.crt:/etc/telegraf/ca.crt
# - ./telegraf/telegraf.crt:/etc/telegraf/telegraf.crt
# - ./telegraf/telegraf.key:/etc/telegraf/telegraf.key
depends_on:
- influxdb
links:
- influxdb
ports:
- 57000:57000
# TODO Uncomment this lines if you want to configure grpc-tls
# - 57100:57100
environment:
- INFLUXDB_TOKEN=secure_token_123
influxdb:
image: influxdb
container_name: influxdb
ports:
- 8083:8083
- 8086:8086
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=expert
- DOCKER_INFLUXDB_INIT_PASSWORD=1234QWer!
- DOCKER_INFLUXDB_INIT_ORG=DevNetAcademy
- DOCKER_INFLUXDB_INIT_BUCKET=DevNetExpert
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=secure_token_123
grafana:
image: grafana/grafana
container_name: grafana
restart: always
depends_on:
- influxdb
environment:
- GF_SECURITY_ADMIN_USER=expert
- GF_SECURITY_ADMIN_PASSWORD=1234QWer!
links:
- influxdb
ports:
- 3000:3000
volumes:
- ./grafana/datasources/influxdb.yml:/etc/grafana/provisioning/datasources/influxdb.yml