docker-bits/lsio/syslog-ng/docker-compose.yaml
2022-04-02 00:45:58 +00:00

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