2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-31 10:07:24 +01:00

add rsyslog

This commit is contained in:
kev
2016-10-29 16:12:00 +08:00
parent 05e0406a74
commit fcd4b35ea5
4 changed files with 59 additions and 0 deletions

25
rsyslog/Dockerfile Normal file
View File

@@ -0,0 +1,25 @@
#
# Dockerfile for rsyslog
#
FROM alpine
MAINTAINER kev <noreply@easypi.info>
RUN set -xe \
&& apk add --no-cache rsyslog \
&& sed -i '/imklog/s/^/#/' /etc/rsyslog.conf \
&& { \
echo '###Syslog Server####'; \
echo 'module(load="imtcp")'; \
echo 'module(load="imudp")'; \
echo 'input(type="imtcp" port="514")'; \
echo 'input(type="imudp" port="514")'; \
} >> /etc/rsyslog.conf
VOLUME /var/log
EXPOSE 514/tcp \
514/udp
ENTRYPOINT ["rsyslogd", "-n"]