Last Update: 8/10/2024
This is a quick construction – but it servers a purpose. Really this is fairly simple.
Please note the yaml file. docker-compose.yaml
Please note the volumes. In this construction we are preserving the /var/log/messages onto the host machine. This may not be your cup of tea – and I am only drawing your attention to it because this is a demonstration construction
version: '3'
services:
syslogng:
image: balabit/syslog-ng:latest
restart: always
command: -F --no-caps
volumes:
- syslogng-data:/usr/bin
- /var/log/messages:/var/log/messages
ports:
- 514:514/udp
- 514:514
volumes:
syslogng-data: