29 lines
779 B
YAML
29 lines
779 B
YAML
|
|
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
|
||
|
|
env_file:
|
||
|
|
- path: ./shared/production.env
|
||
|
|
format: raw
|
||
|
|
environment:
|
||
|
|
TZ: Asia/Shanghai
|
||
|
|
JAVA_TOOL_OPTIONS: -Xms256m -Xmx2g -XX:+ExitOnOutOfMemoryError
|
||
|
|
mem_limit: 3g
|
||
|
|
volumes:
|
||
|
|
- ./shared/logs:/app/logs
|
||
|
|
- ./shared/uploads:/app/uploads
|
||
|
|
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
|