docker-bits/lsio/syslog-ng/docker-compose.yaml
2023-02-26 14:51:38 +00:00

31 lines
984 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, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List).
- 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