Files
no-whatever/docker-compose.yml
T
kurihada 7bc18ce503 refactor: 数据库持久化改用宿主机目录挂载
- Prisma DATABASE_URL 改为环境变量注入
- 数据挂载从 Docker Volume 改为 /data/no-whatever/
- 本地开发通过 .env 文件配置数据库路径
2026-02-25 12:24:44 +08:00

13 lines
261 B
YAML

services:
app:
build: .
image: no-whatever:latest
container_name: no-whatever
ports:
- "3000:3000"
volumes:
- /data/no-whatever:/app/data
environment:
- DATABASE_URL=file:/app/data/prod.db
restart: unless-stopped