Files
print-calculator/docker-compose.deploy.yml
Joe Küng 85b823d614
All checks were successful
Build, Test and Deploy / test-backend (push) Successful in 1m13s
Build, Test and Deploy / build-and-push (push) Successful in 14s
Build, Test and Deploy / deploy (push) Successful in 5s
feat(deploy): compose deploy fixed
2026-02-11 16:25:20 +01:00

36 lines
886 B
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"
env_file:
- .env
environment:
- DB_URL=${DB_URL}
- DB_USERNAME=${DB_USERNAME}
- DB_PASSWORD=${DB_PASSWORD}
- TEMP_DIR=/app/temp
- PROFILES_DIR=/app/profiles
restart: always
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: always
volumes:
backend_profiles_prod:
backend_profiles_int:
backend_profiles_dev: