-Aggiunta configurazione tramite dockerfile per windows e linux

-Aggiunte github actions per la compilazione dei container e l'esposizione
This commit is contained in:
Alessio Dal Santo
2026-01-16 14:16:15 +01:00
parent 3465d43b08
commit 23c2788fcf
15 changed files with 2879 additions and 4 deletions
+39
View File
@@ -0,0 +1,39 @@
version: '3.8'
services:
data-coupler:
image: ghcr.io/alessiodalsi/data-coupler:latest-windows
container_name: data-coupler-windows
ports:
- "7550:7550"
volumes:
# Volume per persistenza database e configurazioni
- type: bind
source: C:\ProgramData\Data_Coupler
target: C:\ProgramData\Data_Coupler
# (Opzionale) Mount file di configurazione custom
# - type: bind
# source: .\appsettings.Production.json
# target: C:\app\appsettings.Production.json
# read_only: true
environment:
# Ambiente di esecuzione
- ASPNETCORE_ENVIRONMENT=Production
# URL di ascolto
- ASPNETCORE_URLS=http://+:7550
# Livello di logging
- Logging__LogLevel__Default=Information
- Logging__LogLevel__Microsoft.AspNetCore=Warning
restart: unless-stopped
# Limiti risorse (opzionale)
deploy:
resources:
limits:
cpus: '2'
memory: 2G
reservations:
cpus: '0.5'
memory: 512M
# Nota: Windows containers non supportano completamente tutte le funzionalità di Docker Compose
# Alcune features potrebbero richiedere configurazione aggiuntiva