This commit is contained in:
parent
e6977298f4
commit
5069b7fc29
@ -13,4 +13,6 @@ ENV TARGET_PROTO="tcp"
|
|||||||
ENV TARGET_PORT="514"
|
ENV TARGET_PORT="514"
|
||||||
ENV DEBUG="0"
|
ENV DEBUG="0"
|
||||||
|
|
||||||
|
VOLUME [ "/extraconfig" ]
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/sh", "/run.sh"]
|
ENTRYPOINT ["/bin/sh", "/run.sh"]
|
@ -21,6 +21,10 @@ Variable | Default | Description
|
|||||||
TARGET_PORT | 514 | target server syslog port
|
TARGET_PORT | 514 | target server syslog port
|
||||||
DEBUG | 0 | if != 0, every received log line is shown on stdout
|
DEBUG | 0 | if != 0, every received log line is shown on stdout
|
||||||
|
|
||||||
|
## extra config files
|
||||||
|
|
||||||
|
You can add some custom config file, by mounting the `/extraconfig` directory. Any file ending in `.conf` placed here will be added to rsyslog configuration.
|
||||||
|
|
||||||
## run
|
## run
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
6
run.sh
6
run.sh
@ -54,4 +54,10 @@ action(type="omfwd" protocol="tcp" target="${TARGET_HOST}" port="${TARGET_PORT}"
|
|||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# extra config
|
||||||
|
mkdir -p /extraconfig
|
||||||
|
cat >>/etc/rsyslog.conf <<EOF
|
||||||
|
$IncludeConfig /etc/rsyslog.d/*.conf
|
||||||
|
EOF
|
||||||
|
|
||||||
/usr/sbin/rsyslogd -nf /etc/rsyslog.conf
|
/usr/sbin/rsyslogd -nf /etc/rsyslog.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user