Files
print-calculator/docker-compose.deploy.yml
Joe Küng 85d7315e30
All checks were successful
Build, Test and Deploy / test-backend (push) Successful in 15s
Build, Test and Deploy / build-and-push (push) Successful in 26s
Build, Test and Deploy / deploy (push) Successful in 5s
feat(web) back-end routing
2026-01-31 17:41:47 +01:00

34 lines
1.0 KiB
YAML

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}:8008"
depends_on:
- backend
restart: unless-stopped
volumes:
backend_profiles_prod:
backend_profiles_int:
backend_profiles_dev: