aggiunti server sftp

This commit is contained in:
2025-11-02 16:33:16 +01:00
parent d865b7daf2
commit b5d3e764e8
15 changed files with 674 additions and 22 deletions

View File

@@ -58,6 +58,7 @@ services:
environment:
DB_HOST: ${VIP:-192.168.1.210}
FTP_INSTANCE_ID: 2
FTP_MODE: ftp
TZ: Europe/Rome
FTP_PASSIVE_PORT: "40000"
FTP_EXTERNAL_IP: ${VIP:-192.168.1.210}
@@ -74,6 +75,27 @@ services:
- "21"
labels:
logging: "promtail"
sftp-server-2:
build: .
container_name: sftp-server-2
restart: unless-stopped
command: ["python", "-m", "src.ftp_csv_receiver"]
environment:
DB_HOST: ${VIP:-192.168.1.210}
FTP_INSTANCE_ID: 12
FTP_MODE: sftp
TZ: Europe/Rome
volumes:
- app-logs:/app/logs
- ./aseftp:/app/aseftp
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
networks:
- app-network
expose:
- "22"
labels:
logging: "promtail"
haproxy:
image: haproxy:2.8-alpine
@@ -85,6 +107,7 @@ services:
- app-network
ports:
- "21:21"
- "22:22"
- "8404:8404"
labels:
logging: "promtail"