Files
wrong-notebook/docker-compose.yml
2025-11-28 20:11:56 +08:00

28 lines
789 B
YAML

version: '3'
services:
web:
build:
context: .
dockerfile: Dockerfile
container_name: wrong-notebook
restart: always
ports:
- "3000:3000"
environment:
# environment variables defined here take precedence over those in env_file
# We override DATABASE_URL to ensure it points to the container's internal path
- DATABASE_URL=file:/app/prisma/dev.db
- NEXTAUTH_URL=http://localhost:3000
# AI Configuration
- AI_PROVIDER=gemini # or openai
# - OPENAI_API_KEY=sk-...
# - OPENAI_BASE_URL=...
# - OPENAI_MODEL=gpt-4o
# Other secrets like GOOGLE_API_KEY will be loaded from .env
env_file:
- .env
volumes:
# Persist the SQLite database
- ./prisma/dev.db:/app/prisma/dev.db