This commit is contained in:
Rescla
2025-10-17 17:15:06 +02:00
parent 49c37db596
commit e4f652b6e2
4 changed files with 10 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ resource "docker_container" "fail2ban" {
restart = "always" restart = "always"
capabilities { capabilities {
add = ["NET_ADMIN", "NET_RAW"] add = ["CAP_NET_ADMIN", "CAP_NET_RAW"]
} }
env = [ env = [

View File

@@ -12,7 +12,12 @@ resource "docker_container" "goaccess" {
name = "goaccess" name = "goaccess"
restart = "always" restart = "always"
entrypoint = ["zcat -f /srv/logs/nginx/access.log.*.gz | /usr/bin/goaccess"] command = [
"srv/logs/nginx/access.log",
"-a",
"--real-time-html",
"-p /srv/config/goaccess.conf"
]
env = [ env = [
"TZ=Europe/Amsterdam", "TZ=Europe/Amsterdam",
@@ -35,7 +40,7 @@ resource "docker_container" "goaccess" {
networks_advanced { networks_advanced {
name = docker_network.container-public.name name = docker_network.container-public.name
ipv4_address = "192.168.3.48" ipv4_address = "192.168.3.49"
} }
lifecycle { lifecycle {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long