sostituito promtail con alloy

This commit is contained in:
2025-11-08 20:03:42 +01:00
parent ea928f3532
commit 8dfcef5eb2
4 changed files with 149 additions and 21 deletions

View File

@@ -15,7 +15,7 @@ services:
networks:
- app-network
labels:
logging: "promtail"
logging: "alloy"
orchestrator-5-elab:
build: .
container_name: orchestrator-5-elab
@@ -32,7 +32,7 @@ services:
networks:
- app-network
labels:
logging: "promtail"
logging: "alloy"
orchestrator-6-send:
build: .
container_name: orchestrator-6-send
@@ -49,7 +49,7 @@ services:
networks:
- app-network
labels:
logging: "promtail"
logging: "alloy"
ftp-server-2:
build: .
container_name: ftp-server-2
@@ -76,7 +76,7 @@ services:
expose:
- "21"
labels:
logging: "promtail"
logging: "alloy"
sftp-server-2:
build: .
container_name: sftp-server-2
@@ -101,7 +101,7 @@ services:
ports:
- "22:22"
labels:
logging: "promtail"
logging: "alloy"
haproxy:
image: haproxy:2.8-alpine
@@ -115,7 +115,7 @@ services:
- "21:21"
- "8404:8404"
labels:
logging: "promtail"
logging: "alloy"
keepalived:
image: alpine:latest
container_name: keepalived
@@ -128,17 +128,24 @@ services:
volumes:
- ./keepalived-backup.conf:/etc/keepalived/keepalived.conf:ro
command: sh -c "apk add --no-cache keepalived && keepalived -n -l -f /etc/keepalived/keepalived.conf"
promtail:
image: grafana/promtail:2.9.3
container_name: promtail
alloy:
image: grafana/alloy:latest
container_name: alloy
restart: unless-stopped
environment:
TZ: Europe/Rome
volumes:
- ./promtail-config.yml:/etc/promtail/config.yml:ro
- ./alloy-config.alloy:/etc/alloy/config.alloy:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
command:
- run
- --server.http.listen-addr=0.0.0.0:12345
- --storage.path=/var/lib/alloy/data
- /etc/alloy/config.alloy
ports:
- "12345:12345" # Alloy UI
networks:
- app-network
networks: