mirror of
https://github.com/Haxxnet/Compose-Examples
synced 2025-02-12 03:18:15 +00:00
Update docker-compose.yml
obtain docker guid programmatically instead of using a hardcoded 998 value that may not be the same on every server
This commit is contained in:
parent
3ea15d168f
commit
751053d83f
|
@ -49,7 +49,7 @@ services:
|
||||||
telegraf:
|
telegraf:
|
||||||
image: telegraf:latest
|
image: telegraf:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
user: telegraf:998 # see: https://www.influxdata.com/blog/docker-run-telegraf-as-non-root/
|
user: telegraf:$(stat -c '%g' /var/run/docker.sock) # see: https://www.influxdata.com/blog/docker-run-telegraf-as-non-root/
|
||||||
container_name: telegraf
|
container_name: telegraf
|
||||||
hostname: telegraf
|
hostname: telegraf
|
||||||
dns:
|
dns:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user