assets-ai/docker-compose.yml

35 lines
1.0 KiB
YAML
Raw Permalink 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:
assets-ai:
build: .
container_name: assets-ai
ports:
- "6177:3000"
volumes:
- assets-data:/app/data
- assets-uploads:/app/uploads
# .next 目录从主机挂载,主机上 npm run build 后直接生效
- ./.next:/app/.next
environment:
- DATABASE_PATH=/app/data/assets.db
- JWT_SECRET=${ASSETS_JWT_SECRET:-change-me-in-production}
- ADMIN_PASSWORD=${ADMIN_PASSWORD:-admin123}
- NODE_ENV=production
- TZ=Asia/Shanghai
# issue-ai API 地址(容器内使用 issue-ai 服务名)
- ISSUE_API_URL=http://issue-ai:3000/api
# issue-ai API Key用于服务间认证
- ISSUE_API_KEY=${ISSUE_API_KEY:-your-secret-api-key-change-in-production}
# 故障历史跳转的工单系统地址(客户端使用)
- NEXT_PUBLIC_ISSUE_URL=https://issue.tlyq.ai/tickets
restart: unless-stopped
networks:
- webnet
volumes:
assets-data:
assets-uploads:
networks:
webnet:
external: true