feat: setup CI/CD with Gitea Actions for dev, int, and prod environments

This commit is contained in:
2026-01-29 16:47:18 +01:00
parent c365b4fa6b
commit 6715d1f75e
69 changed files with 4240 additions and 0 deletions

34
docker-compose.deploy.yml Normal file
View File

@@ -0,0 +1,34 @@
version: '3.8'
services:
backend:
# L'immagine usa il tag specificato nel file .env o passato da riga di comando
image: ${REGISTRY_URL}/${REPO_OWNER}/print-calculator-backend:${TAG}
container_name: print-calculator-backend-${ENV}
ports:
- "${BACKEND_PORT}:8000"
environment:
- FILAMENT_COST_PER_KG=${FILAMENT_COST_PER_KG}
- MACHINE_COST_PER_HOUR=${MACHINE_COST_PER_HOUR}
- ENERGY_COST_PER_KWH=${ENERGY_COST_PER_KWH}
- PRINTER_POWER_WATTS=${PRINTER_POWER_WATTS}
- MARKUP_PERCENT=${MARKUP_PERCENT}
- TEMP_DIR=/app/temp
- PROFILES_DIR=/app/profiles
restart: unless-stopped
volumes:
- backend_profiles_${ENV}:/app/profiles
frontend:
image: ${REGISTRY_URL}/${REPO_OWNER}/print-calculator-frontend:${TAG}
container_name: print-calculator-frontend-${ENV}
ports:
- "${FRONTEND_PORT}:80"
depends_on:
- backend
restart: unless-stopped
volumes:
backend_profiles_prod:
backend_profiles_int:
backend_profiles_dev: