mirror of
https://github.com/11notes/docker-telegraf.git
synced 2025-10-23 00:02:10 +00:00
update 1.28.1
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
# Alpine :: Telegraf
|
||||
   
|
||||
|
||||
Run Telegraf based on Alpine Linux. Small, lightweight, secure and fast 🏔️
|
||||
|
||||
## Run
|
||||
@@ -14,6 +16,8 @@ docker run --name telegraf \
|
||||
| `user` | docker | user docker |
|
||||
| `uid` | 1000 | user id 1000 |
|
||||
| `gid` | 1000 | group id 1000 |
|
||||
| `home` | /telegraf | home directory of user docker |
|
||||
| `config` | /telegraf/etc/telegraf.conf | default configuration |
|
||||
|
||||
# Examples telegraf.conf
|
||||
```shell
|
||||
@@ -46,5 +50,5 @@ docker run --name telegraf \
|
||||
* [Alpine Linux](https://alpinelinux.org/)
|
||||
|
||||
## Tips
|
||||
* Don't bind to ports < 1024 (requires root), use NAT/reverse proxy
|
||||
* [Permanent Stroage](https://github.com/11notes/alpine-docker-netshare) - Module to store permanent container data via NFS/CIFS and more
|
||||
* Only use rootless container runtime (podman, rootless docker)
|
||||
* Don't bind to ports < 1024 (requires root), use NAT/reverse proxy (haproxy, traefik, nginx)
|
@@ -1,6 +1,6 @@
|
||||
# :: Build
|
||||
FROM golang:alpine as build
|
||||
ENV checkout=v1.26.3
|
||||
ENV checkout=v1.28.1
|
||||
|
||||
RUN set -ex; \
|
||||
apk add --update --no-cache \
|
||||
@@ -21,8 +21,8 @@
|
||||
|
||||
# :: update image
|
||||
RUN set -ex; \
|
||||
apk update; \
|
||||
apk upgrade;
|
||||
apk --no-cache upgrade;
|
||||
|
||||
|
||||
# :: prepare image
|
||||
RUN set -ex; \
|
||||
|
Reference in New Issue
Block a user