chore: add Docker deployment files, README, and Prisma migrations
- 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.
This commit is contained in:
16
docker-compose.yml
Normal file
16
docker-compose.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
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
|
||||
Reference in New Issue
Block a user