mirror of
https://github.com/technorabilia/docker-bits
synced 2024-11-16 12:13:26 +00:00
18 lines
820 B
Bash
18 lines
820 B
Bash
# [syslog-ng](https://www.syslog-ng.com/products/open-source-log-management/)
|
|
# allows you to flexibly collect, parse, classify, rewrite and correlate logs
|
|
# from across your infrastructure and store or route them to log analysis tools.
|
|
|
|
source ./.env
|
|
docker run -d \
|
|
--name=syslog-ng \
|
|
-e PUID=${PUID:-1024} `# for UserID` \
|
|
-e PGID=${PGID:-100} `# for GroupID` \
|
|
-e TZ=${TZ:-Europe/Amsterdam} `# Specify a timezone to use for example Europe/Amsterdam` \
|
|
-p 514:5514/udp `# Syslog UDP` \
|
|
-p 601:6601/tcp `# Syslog TCP` \
|
|
-p 6514:6514/tcp `# Syslog TLS` \
|
|
-v ${BASEDIR:-/volume1/docker}/syslog-ng/config:/config `# Stores config and application files` \
|
|
-v /var/log:/var/log `# optional` `# Stores logs collected by the syslog-ng service` \
|
|
--restart unless-stopped \
|
|
ghcr.io/linuxserver/syslog-ng
|