All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 1m25s
- Add DeepSeek, OpenRouter, Mistral, Z.AI, LM Studio as AI providers with editable model names via Combobox in admin settings - Fix OpenRouter broken by normalizeProvider bug in config.ts - Convert agent-created notes from Markdown to HTML (TipTap rich text) - Add Notification model + in-app notifications for agent results - Agent notification click opens the created note directly - Add note count display on notebook and inbox headers - Fix checklist toggle in card view (persist state via localCheckItems) - Add checklist creation option in tabs/list view (dropdown on + button) - Fix image description ENOENT error with HTTP fallback - Improve UI contrast across all themes (input, border, checkbox visibility) - Add font family setting (Inter vs System Default) in Appearance settings - Fix CSS font-sans variable conflict (removed dead Geist references) - Update README with new features and 8 providers Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
116 lines
2.8 KiB
YAML
116 lines
2.8 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
container_name: memento-postgres
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_USER: memento
|
|
POSTGRES_PASSWORD: memento
|
|
POSTGRES_DB: memento
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data
|
|
ports:
|
|
- "5432:5432"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U memento"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
networks:
|
|
- memento-network
|
|
|
|
memento-note:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: memento-note:latest
|
|
container_name: memento-note
|
|
restart: unless-stopped
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
# Database
|
|
- DATABASE_URL=postgresql://memento:memento@postgres:5432/memento
|
|
- NODE_ENV=production
|
|
|
|
# Application (IMPORTANT: Change these!)
|
|
- NEXTAUTH_URL=http://your-domain.com:3000
|
|
- NEXTAUTH_SECRET=change-this-to-a-random-secret-string
|
|
- ADMIN_EMAIL=admin@yourdomain.com # REQUIRED: first user with this email gets ADMIN role
|
|
|
|
# Disable Next.js telemetry
|
|
- NEXT_TELEMETRY_DISABLED=1
|
|
|
|
# AI Provider (Optional - for OpenAI)
|
|
# - OPENAI_API_KEY=your-openai-api-key-here
|
|
|
|
# AI Provider (Optional - for Ollama)
|
|
# - OLLAMA_BASE_URL=http://ollama:11434
|
|
# - OLLAMA_MODEL=granite4:latest
|
|
volumes:
|
|
# Persist uploaded images and files
|
|
- keep-uploads:/app/data/uploads
|
|
# Persist migration backups
|
|
- backup-data:/app/data/backups
|
|
|
|
# Optional: Mount custom SSL certificates
|
|
# - ./certs:/app/certs:ro
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
networks:
|
|
- memento-network
|
|
# Optional: Resource limits for Proxmox VM
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '2'
|
|
memory: 2G
|
|
reservations:
|
|
cpus: '0.5'
|
|
memory: 512M
|
|
# Health check for automatic restart
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3000"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
# Optional: Ollama for local AI models
|
|
# Uncomment this section if you want to use local AI models
|
|
# ollama:
|
|
# image: ollama/ollama:latest
|
|
# container_name: keep-ollama
|
|
# restart: unless-stopped
|
|
# ports:
|
|
# - "11434:11434"
|
|
# volumes:
|
|
# - ollama-data:/root/.ollama
|
|
# networks:
|
|
# - memento-network
|
|
# deploy:
|
|
# resources:
|
|
# limits:
|
|
# cpus: '4'
|
|
# memory: 8G
|
|
# reservations:
|
|
# cpus: '2'
|
|
# memory: 4G
|
|
|
|
networks:
|
|
memento-network:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
postgres-data:
|
|
driver: local
|
|
keep-uploads:
|
|
driver: local
|
|
backup-data:
|
|
driver: local
|
|
# ollama-data:
|
|
# driver: local
|