docker image su registry e create con pyinstaller

This commit is contained in:
2025-11-30 21:19:06 +01:00
parent 3943172db8
commit fd192c7f6b
12 changed files with 701 additions and 87 deletions

View File

@@ -1,15 +1,17 @@
services:
orchestrator-4-load:
build: .
image: 192.168.1.204:5000/orchestrator-app:latest
container_name: orchestrator-4-load
restart: unless-stopped
command: [ "python", "-m", "src.load_orchestrator" ]
command: ["./load_orchestrator"]
environment:
APP_ENV_PATH: /app
DB_HOST: ${VIP:-192.168.1.210}
ORCHESTRATOR_ID: 4
TZ: Europe/Rome
volumes:
- app-logs:/app/logs
- ./env:/app/env:ro
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
networks:
@@ -17,16 +19,18 @@ services:
labels:
logging: "alloy"
orchestrator-5-elab:
build: .
image: 192.168.1.204:5000/orchestrator-app:latest
container_name: orchestrator-5-elab
restart: unless-stopped
command: [ "python", "-m", "src.elab_orchestrator" ]
command: ["./elab_orchestrator"]
environment:
APP_ENV_PATH: /app
DB_HOST: ${VIP:-192.168.1.210}
ORCHESTRATOR_ID: 5
TZ: Europe/Rome
volumes:
- app-logs:/app/logs
- ./env:/app/env:ro
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
networks:
@@ -34,16 +38,18 @@ services:
labels:
logging: "alloy"
orchestrator-6-send:
build: .
image: 192.168.1.204:5000/orchestrator-app:latest
container_name: orchestrator-6-send
restart: unless-stopped
command: [ "python", "-m", "src.send_orchestrator" ]
command: ["./send_orchestrator"]
environment:
APP_ENV_PATH: /app
DB_HOST: ${VIP:-192.168.1.210}
ORCHESTRATOR_ID: 6
TZ: Europe/Rome
volumes:
- app-logs:/app/logs
- ./env:/app/env:ro
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
networks:
@@ -51,11 +57,12 @@ services:
labels:
logging: "alloy"
ftp-server-2:
build: .
image: 192.168.1.204:5000/orchestrator-app:latest
container_name: ftp-server-2
restart: unless-stopped
command: [ "python", "-m", "src.ftp_csv_receiver" ]
command: ["./ftp_csv_receiver"]
environment:
APP_ENV_PATH: /app
DB_HOST: ${VIP:-192.168.1.210}
FTP_INSTANCE_ID: 2
FTP_MODE: ftp
@@ -67,6 +74,7 @@ services:
volumes:
- app-logs:/app/logs
- ./aseftp:/app/aseftp
- ./env:/app/env:ro
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
networks:
@@ -78,11 +86,12 @@ services:
labels:
logging: "alloy"
sftp-server-2:
build: .
image: 192.168.1.204:5000/orchestrator-app:latest
container_name: sftp-server-2
restart: unless-stopped
command: [ "python", "-m", "src.ftp_csv_receiver" ]
command: ["./ftp_csv_receiver"]
environment:
APP_ENV_PATH: /app
DB_HOST: ${VIP:-192.168.1.210}
FTP_INSTANCE_ID: 12
FTP_MODE: sftp
@@ -93,6 +102,7 @@ services:
volumes:
- app-logs:/app/logs
- ./aseftp:/app/aseftp
- ./env:/app/env:ro
- ./ssh_host_key:/app/ssh_host_key:ro
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro