Files
ai-dimension/docker-compose.yml
T
txai-dev 8c33617073 chore: 整合部署文件与管理端源码入仓
- deploy/server.Dockerfile、deploy/client-h5.Dockerfile(自 ai-art 仓库迁出,去重)
- docker-compose.yml 迁入并修正路径(admin 上下文 ./admin),新增可选 h5 服务(profile 隔离)
- admin/:管理前端完整源码(Vite+Vue3,自 workspace/dimension-admin 合并)
2026-09-12 22:34:52 +08:00

57 lines
1.4 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
services:
mongodb:
image: mongo:7
restart: unless-stopped
volumes:
- mongo_data:/data/db
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_USER:-wdkj}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASS:-changeMe2026}
ports:
- "127.0.0.1:27017:27017"
dimension-server:
build:
context: .
dockerfile: deploy/server.Dockerfile
restart: unless-stopped
environment:
- TZ=Asia/Shanghai
- NODE_ENV=production
- PORT=3001
- MONGODB_URI=mongodb://${MONGO_USER:-wdkj}:${MONGO_PASS:-changeMe2026}@mongodb:27017/wdkj?authSource=admin
- JWT_SECRET=${JWT_SECRET:-changeMe2026}
- SITE_URL=${SITE_URL:-}
- INVITE_REWARD_CREDITS=${INVITE_REWARD_CREDITS:-100}
- COST_PER_WORK=${COST_PER_WORK:-10}
- FREE_DAILY_QUOTA=${FREE_DAILY_QUOTA:-20}
- MEMBER_DAILY_QUOTA=${MEMBER_DAILY_QUOTA:-60}
depends_on:
- mongodb
volumes:
- dim_uploads:/app/uploads
dimension-admin:
build:
context: ./admin
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "127.0.0.1:3010:80"
# 可选:客户端 H5(docker compose --profile h5 up 启用)
dimension-h5:
build:
context: ./client
dockerfile: ../deploy/client-h5.Dockerfile
restart: unless-stopped
profiles: ["h5"]
ports:
- "127.0.0.1:3020:80"
volumes:
mongo_data:
dim_uploads: