This commit is contained in:
Alex
2025-08-25 16:35:09 +02:00
parent d3861e73fb
commit bf5c5a998e

View File

@@ -6,19 +6,17 @@ terraform {
} }
} }
resource "podman_container" "syslog_ng" { resource "podman" "syslog_ng" {
name = "syslog-ng" name = "syslog-ng"
image = "lscr.io/linuxserver/syslog-ng:latest" image = "lscr.io/linuxserver/syslog-ng:latest"
restart = "unless-stopped" restart = "unless-stopped"
# Environment variables
env = { env = {
PUID = "1000" PUID = "1000"
PGID = "1000" PGID = "1000"
TZ = "Etc/UTC" TZ = "Etc/UTC"
} }
# Port mappings
ports { ports {
host_port = 514 host_port = 514
container_port = 5514 container_port = 5514
@@ -37,7 +35,6 @@ resource "podman_container" "syslog_ng" {
protocol = "tcp" protocol = "tcp"
} }
# Volume mounts
volumes { volumes {
host_path = "/srv/syslog/config" host_path = "/srv/syslog/config"
container_path = "/config" container_path = "/config"