You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
407 B
17 lines
407 B
version: "3.6"
|
|
|
|
services:
|
|
|
|
telegraf:
|
|
image: telegraf:1.18-alpine
|
|
# image: telegraf:latest #(for amd64)
|
|
container_name: telegraf
|
|
restart: unless-stopped
|
|
# for docker
|
|
hostname: ${HOSTNAME}
|
|
user: "telegraf:${DOCKER_GID}"
|
|
volumes:
|
|
- ./telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
ports:
|
|
- '8125:8125/udp' |