cmvr-wms/scripts/deploy/docker-compose.yml

31 lines
1.2 KiB
YAML
Raw Permalink Normal View History

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
# 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.
mem_limit: 3g
volumes:
- ./shared/logs:/app/logs
- ./shared/uploads:/app/uploads
# 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
- ./shared/arrival-photos:/app/.purchase-arrival-photos-private
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