docker image su registry e create con pyinstaller
This commit is contained in:
@@ -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
|
||||
|
||||
157
vm2/docker-compose.yml.backup
Normal file
157
vm2/docker-compose.yml.backup
Normal file
@@ -0,0 +1,157 @@
|
||||
services:
|
||||
orchestrator-4-load:
|
||||
build: .
|
||||
container_name: orchestrator-4-load
|
||||
restart: unless-stopped
|
||||
command: [ "python", "-m", "src.load_orchestrator" ]
|
||||
environment:
|
||||
DB_HOST: ${VIP:-192.168.1.210}
|
||||
ORCHESTRATOR_ID: 4
|
||||
TZ: Europe/Rome
|
||||
volumes:
|
||||
- app-logs:/app/logs
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
networks:
|
||||
- app-network
|
||||
labels:
|
||||
logging: "alloy"
|
||||
orchestrator-5-elab:
|
||||
build: .
|
||||
container_name: orchestrator-5-elab
|
||||
restart: unless-stopped
|
||||
command: [ "python", "-m", "src.elab_orchestrator" ]
|
||||
environment:
|
||||
DB_HOST: ${VIP:-192.168.1.210}
|
||||
ORCHESTRATOR_ID: 5
|
||||
TZ: Europe/Rome
|
||||
volumes:
|
||||
- app-logs:/app/logs
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
networks:
|
||||
- app-network
|
||||
labels:
|
||||
logging: "alloy"
|
||||
orchestrator-6-send:
|
||||
build: .
|
||||
container_name: orchestrator-6-send
|
||||
restart: unless-stopped
|
||||
command: [ "python", "-m", "src.send_orchestrator" ]
|
||||
environment:
|
||||
DB_HOST: ${VIP:-192.168.1.210}
|
||||
ORCHESTRATOR_ID: 6
|
||||
TZ: Europe/Rome
|
||||
volumes:
|
||||
- app-logs:/app/logs
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
networks:
|
||||
- app-network
|
||||
labels:
|
||||
logging: "alloy"
|
||||
ftp-server-2:
|
||||
build: .
|
||||
container_name: ftp-server-2
|
||||
restart: unless-stopped
|
||||
command: [ "python", "-m", "src.ftp_csv_receiver" ]
|
||||
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}
|
||||
# File Processing Behavior
|
||||
# DELETE_AFTER_PROCESSING: "true" # Cancella file dopo elaborazione corretta (default: false = mantiene i file)
|
||||
volumes:
|
||||
- app-logs:/app/logs
|
||||
- ./aseftp:/app/aseftp
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
networks:
|
||||
- app-network
|
||||
ports:
|
||||
- "40000-40499:40000-40499"
|
||||
expose:
|
||||
- "21"
|
||||
labels:
|
||||
logging: "alloy"
|
||||
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
|
||||
FTP_PORT: "22"
|
||||
TZ: Europe/Rome
|
||||
# File Processing Behavior
|
||||
# DELETE_AFTER_PROCESSING: "true" # Cancella file dopo elaborazione corretta (default: false = mantiene i file)
|
||||
volumes:
|
||||
- app-logs:/app/logs
|
||||
- ./aseftp:/app/aseftp
|
||||
- ./ssh_host_key:/app/ssh_host_key:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
networks:
|
||||
- app-network
|
||||
ports:
|
||||
- "22:22"
|
||||
labels:
|
||||
logging: "alloy"
|
||||
|
||||
haproxy:
|
||||
image: haproxy:2.8-alpine
|
||||
container_name: haproxy
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
|
||||
networks:
|
||||
- app-network
|
||||
ports:
|
||||
- "21:21"
|
||||
- "8404:8404"
|
||||
labels:
|
||||
logging: "alloy"
|
||||
keepalived:
|
||||
image: alpine:latest
|
||||
container_name: keepalived
|
||||
restart: unless-stopped
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
- NET_BROADCAST
|
||||
- NET_RAW
|
||||
network_mode: host
|
||||
volumes:
|
||||
- ./keepalived-backup.conf:/etc/keepalived/keepalived.conf:ro
|
||||
command: sh -c "apk add --no-cache keepalived && keepalived -n -D -l -f /etc/keepalived/keepalived.conf"
|
||||
alloy:
|
||||
image: grafana/alloy:latest
|
||||
container_name: alloy
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
TZ: Europe/Rome
|
||||
volumes:
|
||||
- ./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
|
||||
- /proc:/host/proc:ro
|
||||
- /sys:/host/sys:ro
|
||||
- /:/host/root: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:
|
||||
app-network:
|
||||
volumes:
|
||||
app-logs:
|
||||
Reference in New Issue
Block a user