modify telegraf to use dynamic docker group

This commit is contained in:
2026-05-30 21:10:50 +00:00
parent d291b938c6
commit ecea8c3df1
+1 -1
View File
@@ -4,7 +4,7 @@ services:
container_name: telegraf
restart: unless-stopped
privileged: true
user: telegraf:985 # make telegraf run with docker group (985) to access docker socket
user: telegraf:${PGID} # make telegraf run with docker group (985) to access docker socket
hostname: ${HOSTNAME} # picks up the hostname of komodo-periphery
volumes:
- ${PWD}/telegraf.conf:/etc/telegraf/telegraf.conf:ro