2026-10-15 11:30:55 +08:00
|
|
|
name: cmvr-project-prod
|
|
|
|
|
services:
|
|
|
|
|
backend:
|
|
|
|
|
image: cmvr-project-prod:20261015
|
|
|
|
|
build:
|
|
|
|
|
context: ./current
|
|
|
|
|
container_name: cmvr-project-prod-backend
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
network_mode: host
|
2026-10-20 10:20:38 +08:00
|
|
|
# All application settings come from application-prod.yml inside the backend jar.
|
|
|
|
|
# Do not inject a legacy production.env: it would override the checked-in yml.
|
2026-10-15 11:30:55 +08:00
|
|
|
mem_limit: 3g
|
|
|
|
|
volumes:
|
|
|
|
|
- ./shared/logs:/app/logs
|
|
|
|
|
- ./shared/uploads:/app/uploads
|
2026-10-16 15:30:10 +08:00
|
|
|
# Private attachments must survive container replacement, without exposing them via /profile.
|
|
|
|
|
- ./shared/supplier-licenses:/app/.supplier-license-private
|
|
|
|
|
- ./shared/feedback-images:/app/uploads-feedback-private
|
|
|
|
|
- ./shared/assistant-attachments:/app/.assistant-private
|
|
|
|
|
- ./shared/purchase-documents:/app/.purchase-documents-private
|
2026-10-27 21:25:03 +08:00
|
|
|
- ./shared/arrival-photos:/app/.purchase-arrival-photos-private
|
2026-10-15 11:30:55 +08:00
|
|
|
frontend:
|
|
|
|
|
image: nginx:1.25.5
|
|
|
|
|
pull_policy: never
|
|
|
|
|
container_name: cmvr-project-prod-frontend
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
network_mode: host
|
|
|
|
|
volumes:
|
|
|
|
|
- ./current/web:/usr/share/nginx/html:ro
|
|
|
|
|
- ./current/nginx.conf:/etc/nginx/conf.d/default.conf:ro
|