52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
services:
|
|
backend:
|
|
build: .
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- DATABASE_URL=sqlite:///app/data/notes.db
|
|
- JWT_SECRET=dev-secret-not-for-production-use
|
|
- CORS_ORIGINS=http://localhost:5173
|
|
- HOST=0.0.0.0
|
|
- PORT=3000
|
|
- ALLOW_REGISTRATION=true
|
|
- NATS_URL=nats://nats:4222
|
|
# Uncomment to enable smart features:
|
|
# - QDRANT_URL=http://qdrant:6334
|
|
volumes:
|
|
- ./data:/app/data
|
|
depends_on:
|
|
- nats
|
|
|
|
worker:
|
|
build: .
|
|
command: ["./worker"]
|
|
environment:
|
|
- DATABASE_URL=sqlite:///app/data/notes.db
|
|
- NATS_URL=nats://nats:4222
|
|
- ENABLE_EMBEDDINGS=true
|
|
# Uncomment to enable smart features:
|
|
# - QDRANT_URL=http://qdrant:6334
|
|
depends_on:
|
|
- backend
|
|
- nats
|
|
volumes:
|
|
- ./data:/app/data
|
|
|
|
nats:
|
|
image: nats:alpine
|
|
# --jetstream enables persistent messaging required by the worker
|
|
command: ["--jetstream"]
|
|
ports:
|
|
- "4222:4222"
|
|
restart: unless-stopped
|
|
|
|
# Uncomment to enable smart features (semantic search + related notes)
|
|
# qdrant:
|
|
# image: qdrant/qdrant:latest
|
|
# ports:
|
|
# - "6334:6334"
|
|
# volumes:
|
|
# - ./data/qdrant_storage:/qdrant/storage:z
|
|
# restart: unless-stopped
|