32 lines
746 B
YAML
32 lines
746 B
YAML
version: "3.9"
|
|
|
|
services:
|
|
smtp:
|
|
image: mailhog/mailhog:v1.0.1
|
|
container_name: mailhog
|
|
ports:
|
|
- "1025:1025" # SMTP (plain)
|
|
- "8025:8025" # Web UI
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-qO-", "http://localhost:8025/api/v2/health"]
|
|
interval: 10s
|
|
timeout: 3s
|
|
retries: 5
|
|
start_period: 5s
|
|
restart: unless-stopped
|
|
|
|
syslog:
|
|
image: balabit/syslog-ng:4.7.1
|
|
container_name: syslog-ng
|
|
ports:
|
|
- "514:514/udp"
|
|
- "514:514/tcp"
|
|
command: ["/usr/sbin/syslog-ng", "-F", "-p", "/var/run/syslogd.pid"]
|
|
healthcheck:
|
|
test: ["CMD", "syslog-ng-ctl", "stats"]
|
|
interval: 10s
|
|
timeout: 3s
|
|
retries: 5
|
|
start_period: 5s
|
|
restart: unless-stopped
|