- Add Dockerfile and docker-compose.yml for VPS/LXC deployment. - Update README with setup, environment variables, and deployment notes. - Commit initial Prisma migration for SQLite schema. - Configure Next.js for standalone output and dev origin allowlist.
17 lines
510 B
YAML
17 lines
510 B
YAML
services:
|
|
app:
|
|
build: .
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
DATABASE_URL: "file:./data/dev.db"
|
|
ADMIN_USERNAME: "${ADMIN_USERNAME:-admin}"
|
|
ADMIN_PASSWORD_HASH: "${ADMIN_PASSWORD_HASH}"
|
|
NEXTAUTH_SECRET: "${NEXTAUTH_SECRET}"
|
|
API_KEY_ENCRYPTION_SECRET: "${API_KEY_ENCRYPTION_SECRET}"
|
|
KIMI_API_URL: "${KIMI_API_URL:-https://api.moonshot.cn/v1}"
|
|
KIMI_MODEL: "${KIMI_MODEL:-moonshot-v1-8k}"
|
|
volumes:
|
|
- ./data:/app/data
|
|
restart: unless-stopped
|