47 lines
1.4 KiB
YAML
47 lines
1.4 KiB
YAML
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:
|
|
- SPRING_PROFILES_ACTIVE=${ENV}
|
|
- DB_URL=${DB_URL}
|
|
- DB_USERNAME=${DB_USERNAME}
|
|
- DB_PASSWORD=${DB_PASSWORD}
|
|
- TEMP_DIR=/app/temp
|
|
- PROFILES_DIR=/app/profiles
|
|
restart: always
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
volumes:
|
|
- backend_profiles_${ENV}:/app/profiles
|
|
- /mnt/cache/appdata/print-calculator/${ENV}/storage_quotes:/app/storage_quotes
|
|
- /mnt/cache/appdata/print-calculator/${ENV}/storage_orders:/app/storage_orders
|
|
- /mnt/cache/appdata/print-calculator/${ENV}/storage_requests:/app/storage_requests
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
frontend:
|
|
image: ${REGISTRY_URL}/${REPO_OWNER}/print-calculator-frontend:${TAG}
|
|
container_name: print-calculator-frontend-${ENV}
|
|
ports:
|
|
- "${FRONTEND_PORT}:80"
|
|
depends_on:
|
|
- backend
|
|
restart: always
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
|
|
volumes:
|
|
backend_profiles_prod:
|
|
backend_profiles_int:
|
|
backend_profiles_dev:
|