Update docker-compose.yml

obtain docker guid programmatically instead of using a hardcoded 998 value that may not be the same on every server
pull/12/head
LRVT 2023-03-01 11:42:05 +01:00 zatwierdzone przez GitHub
rodzic 3ea15d168f
commit 751053d83f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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: