feat: rework logging and rotation rules

This commit is contained in:
Clément Désiles
2025-11-15 00:18:01 +01:00
parent 1d3af8dc45
commit 667bca796e
8 changed files with 118 additions and 0 deletions
+12
View File
@@ -15,6 +15,18 @@ podman_subnet: ""
# Podman bridge gateway IP (typically .1 of the bridge network)
# Used by services that need to bind to the bridge interface
# OCI Runtime
# crun (default, modern C runtime - fast) or runc (original Go runtime)
podman_runtime: crun
# Container logging configuration
# Log driver: journald (systemd journal) or k8s-file (JSON files)
podman_log_driver: journald
# k8s-file driver settings (only used when podman_log_driver: k8s-file)
podman_log_max_size: 10mb # Max size per log file before rotation
podman_log_max_files: 5 # Max number of rotated log files to keep
# Each network should define: name, subnet, gateway
# podman_external_networks: []
# Example: