Update docker-compose.yml

This commit is contained in:
2024-02-17 22:12:40 +08:00
parent 9c18c09160
commit 4ce3268acd
2 changed files with 3 additions and 19 deletions

View File

@@ -62,10 +62,10 @@
urls = ["http://influxdb:8086"]
## Token for authentication.
token = "2uY3YEm_n1jw1BLnPV0TL-xdF3xYEZwy85bMdry_fOQhOWoVc99jrwEf5N2PkeQec0ELCt8xMpgVc0EyXCCp2A=="
token = "vsxub8-6UDCodQjKeNf090CtR-kvmUNZbuHI35ZG-MM4r1i4FIHMG2-3Ilwf_tTsTcnGwFyafj8llNx0F6FgFw=="
## Organization is the name of the organization you wish to write to; must exist.
organization = "awin"
organization = "Awin"
## Destination bucket to write into.
bucket = "main"

View File

@@ -16,8 +16,6 @@ services:
- ./data/grafana/grafana.ini:/etc/grafana/grafana.ini
environment:
- GF_INSTALL_PLUGINS=grafana-clock-panel,grafana-simple-json-datasource
# - GF_SECURITY_ADMIN_USER=admin
# - GF_SECURITY_ADMIN_PASSWORD=adminpass
influxdb:
image: influxdb
@@ -25,17 +23,10 @@ services:
- "8082:8086"
volumes:
- ./data/influxdb/data:/var/lib/influxdb2
# environment:
# - INFLUXDB_DB=main
# - DOCKER_INFLUXDB_INIT_MODE=setup
# - DOCKER_INFLUXDB_INIT_USERNAME=admin
# - DOCKER_INFLUXDB_INIT_PASSWORD=adminpass
# - DOCKER_INFLUXDB_INIT_ORG=awin
# - DOCKER_INFLUXDB_INIT_BUCKET=main
telegraf:
image: telegraf
user: telegraf:992
user: telegraf:992 # Get 992 by `stat -c '%g' /var/run/docker.sock`, depend on system
depends_on:
- influxdb
links:
@@ -47,10 +38,3 @@ services:
- HOST_PROC=/proc
- HOST_SYS=/sys
- HOST_ETC=/etc
# - HOST_ETC=/hostfs/etc
# - HOST_PROC=/hostfs/proc
# - HOST_SYS=/hostfs/sys
# - HOST_VAR=/hostfs/var
# - HOST_RUN=/hostfs/run
# - HOST_MOUNT_PREFIX=/hostfs