issue-ai/docker-compose.yml

34 lines
859 B
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:
issue-ai:
build: .
container_name: issue-ai
ports:
- "6176:3000"
volumes:
- issue-data:/app/data
- issue-uploads:/app/uploads
- issue-reports:/app/reports
# .next 目录从主机挂载npm run build 后直接生效,无需重建镜像
- ./.next:/app/.next
environment:
- DATABASE_PATH=/app/data/issue.db
- JWT_SECRET=${ISSUE_JWT_SECRET:-change-me-in-production}
- ADMIN_PASSWORD=${ADMIN_PASSWORD:-admin123}
- ASSETS_API_URL=${ASSETS_API_URL:-https://assets.tlyq.ai/api}
- ASSETS_API_KEY=${ASSETS_API_KEY}
- ALLOWED_API_KEYS=${ALLOWED_API_KEYS}
- NODE_ENV=production
- TZ=Asia/Shanghai
restart: unless-stopped
networks:
- webnet
volumes:
issue-data:
issue-uploads:
issue-reports:
networks:
webnet:
external: true