mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-21 01:27:01 +02:00
fix telegraf
This commit is contained in:
parent
ce858ae072
commit
d4e3087b4b
@ -12,7 +12,7 @@ ENV TELEGRAF_URL https://dl.influxdata.com/telegraf/releases/${TELEGRAF_FILE}
|
||||
RUN set -xe \
|
||||
&& apk add --no-cache --virtual .build-deps ca-certificates curl tar \
|
||||
&& update-ca-certificates \
|
||||
&& curl -sSL ${TELEGRAF_URL} | tar xz --strip 1 -C / \
|
||||
&& curl -sSL ${TELEGRAF_URL} | tar xz --strip 2 -C / \
|
||||
&& apk del .build-deps \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
|
@ -5,4 +5,6 @@ telegraf:
|
||||
- "8094:8094/tcp"
|
||||
volumes:
|
||||
- ./telegraf.conf:/etc/telegraf/telegraf.conf
|
||||
net: host
|
||||
pid: host
|
||||
restart: always
|
||||
|
@ -5,4 +5,6 @@ telegraf:
|
||||
- "8094:8094/tcp"
|
||||
volumes:
|
||||
- ./telegraf.conf:/etc/telegraf/telegraf.conf
|
||||
net: host
|
||||
pid: host
|
||||
restart: always
|
||||
|
Loading…
Reference in New Issue
Block a user