新增NAS一键打包部署脚本及Docker部署方案

This commit is contained in:
wkc
2026-03-13 15:13:18 +08:00
parent 77f53cb991
commit d63bdbf7b7
44 changed files with 2728 additions and 0 deletions

45
docker-compose.yml Normal file
View File

@@ -0,0 +1,45 @@
services:
backend:
build:
context: .
dockerfile: docker/backend/Dockerfile
container_name: ccdi-backend
restart: unless-stopped
environment:
SPRING_PROFILES_ACTIVE: ${SPRING_PROFILES_ACTIVE:-local}
RUOYI_PROFILE: ${RUOYI_PROFILE:-/app/data/ruoyi}
JAVA_OPTS: ${JAVA_OPTS:--Xms512m -Xmx1024m}
ports:
- "${BACKEND_PORT:-62318}:8080"
- "${LSFX_MOCK_PORT:-62320}:8000"
volumes:
- ./runtime/ruoyi:/app/data/ruoyi
- ./runtime/logs/backend:/app/logs
lsfx-mock-server:
build:
context: .
dockerfile: docker/mock/Dockerfile
container_name: ccdi-lsfx-mock
restart: unless-stopped
depends_on:
- backend
network_mode: "service:backend"
environment:
APP_NAME: 流水分析Mock服务
APP_VERSION: 1.0.0
DEBUG: "false"
HOST: 0.0.0.0
PORT: 8000
PARSE_DELAY_SECONDS: 4
frontend:
build:
context: .
dockerfile: docker/frontend/Dockerfile
container_name: ccdi-frontend
restart: unless-stopped
depends_on:
- backend
ports:
- "${FRONTEND_PORT:-62319}:80"