- Spostata tutta la configurazione di deployment in /deployment (docker-compose, unraid-template, guide) - Aggiunte e aggiornate guide dettagliate: publishing su Gitea, installazione Unraid, struttura progetto - Migliorato target MSBuild: publish automatico su Gitea Registry da Visual Studio, log dettagliati, condizioni più robuste - Aggiornato e ampliato .gitignore per escludere build, dati e file locali - Rimossi file obsoleti dalla root (ora tutto in /deployment) - Struttura più chiara, zero script esterni, documentazione completa e workflow di deploy semplificato
39 lines
853 B
YAML
39 lines
853 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
tradingbot:
|
|
container_name: tradingbot
|
|
image: gitea.encke-hake.ts.net/alby96/encelado/tradingbot:latest
|
|
ports:
|
|
- "${EXTERNAL_PORT:-8080}:8080"
|
|
volumes:
|
|
- tradingbot-data:/app/data
|
|
environment:
|
|
- ASPNETCORE_ENVIRONMENT=Production
|
|
- ASPNETCORE_URLS=http://+:8080
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/health"]
|
|
interval: 30s
|
|
timeout: 3s
|
|
retries: 3
|
|
start_period: 10s
|
|
networks:
|
|
- tradingbot-network
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '2.0'
|
|
memory: 1G
|
|
reservations:
|
|
cpus: '0.5'
|
|
memory: 256M
|
|
|
|
volumes:
|
|
tradingbot-data:
|
|
driver: local
|
|
|
|
networks:
|
|
tradingbot-network:
|
|
driver: bridge
|