前端修饰与渲染处理

This commit is contained in:
2026-04-26 03:34:47 +08:00
parent 35eff3faf6
commit 6b5ddac178
114 changed files with 18465 additions and 132 deletions

40
docker-compose.prod.yml Normal file
View File

@@ -0,0 +1,40 @@
# Production Docker Compose - 使用预构建镜像
# 用户无需构建,直接拉取镜像即可运行
services:
# Backend Service
backend:
image: yourusername/sillytavern-repalice-backend:latest
container_name: sillytavern-repalice-backend
ports:
- "3000:3000"
volumes:
- ./data:/app/data
environment:
- NODE_ENV=production
- PORT=3000
- DATA_DIR=/app/data
- FRONTEND_URL=http://localhost:5173
env_file:
- .env
networks:
- app-network
restart: unless-stopped
# Frontend Service
frontend:
image: yourusername/sillytavern-repalice-frontend:latest
container_name: sillytavern-repalice-frontend
ports:
- "23337:80"
environment:
- VITE_API_URL=http://localhost:3000/api
depends_on:
- backend
networks:
- app-network
restart: unless-stopped
networks:
app-network:
driver: bridge