mirror of
https://github.com/technorabilia/docker-bits
synced 2024-11-16 12:13:26 +00:00
31 lines
928 B
YAML
31 lines
928 B
YAML
# [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.
|
|
|
|
---
|
|
version: "2.1"
|
|
services:
|
|
syslog-ng:
|
|
image: ghcr.io/linuxserver/syslog-ng
|
|
container_name: syslog-ng
|
|
environment:
|
|
# for UserID
|
|
- PUID=${PUID:-1024}
|
|
# for GroupID
|
|
- PGID=${PGID:-100}
|
|
# Specify a timezone to use for example Europe/Amsterdam
|
|
- TZ=${TZ:-Europe/Amsterdam}
|
|
volumes:
|
|
# Stores config and application files
|
|
- ${BASEDIR:-/volume1/docker}/syslog-ng/config:/config
|
|
# Stores logs collected by the syslog-ng service
|
|
- /var/log:/var/log # optional
|
|
ports:
|
|
# Syslog UDP
|
|
- 514:5514/udp
|
|
# Syslog TCP
|
|
- 601:6601/tcp
|
|
# Syslog TLS
|
|
- 6514:6514/tcp
|
|
restart: unless-stopped
|