mirror of
https://github.com/Haxxnet/Compose-Examples
synced 2025-01-30 21:23:49 +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:
|
||||
image: telegraf:latest
|
||||
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
|
||||
hostname: telegraf
|
||||
dns:
|
||||
|
|
Loading…
Reference in New Issue
Block a user