Files
Data-Coupler/docker-compose.yml
T
Alessio Dal Santo 23c2788fcf -Aggiunta configurazione tramite dockerfile per windows e linux
-Aggiunte github actions per la compilazione dei container e l'esposizione
2026-01-16 14:16:15 +01:00

52 lines
1.4 KiB
YAML

version: '3.8'
services:
data-coupler:
image: ghcr.io/alessiodalsi/data-coupler:latest
container_name: data-coupler
ports:
- "7550:7550"
volumes:
# Volume per persistenza database e configurazioni
- data-coupler-data:/var/lib/Data_Coupler
# (Opzionale) Mount file di configurazione custom
# - ./appsettings.Production.json:/app/appsettings.Production.json:ro
environment:
# Ambiente di esecuzione
- ASPNETCORE_ENVIRONMENT=Production
# URL di ascolto
- ASPNETCORE_URLS=http://+:7550
# Livello di logging (Information, Warning, Error, Debug)
- Logging__LogLevel__Default=Information
- Logging__LogLevel__Microsoft.AspNetCore=Warning
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:7550/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
# Limiti risorse (opzionale ma raccomandato per produzione)
deploy:
resources:
limits:
cpus: '2'
memory: 2G
reservations:
cpus: '0.5'
memory: 512M
volumes:
data-coupler-data:
driver: local
# (Opzionale) Specifica un path specifico sull'host
# driver_opts:
# type: none
# device: /path/to/data
# o: bind
# (Opzionale) Network personalizzato per isolamento
# networks:
# data-coupler-network:
# driver: bridge