chore: snapshot before performance optimization
This commit is contained in:
@@ -1,6 +1,26 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
container_name: keep-postgres
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_USER: keepnotes
|
||||
POSTGRES_PASSWORD: keepnotes
|
||||
POSTGRES_DB: keepnotes
|
||||
volumes:
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
ports:
|
||||
- "5432:5432"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U keepnotes"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
networks:
|
||||
- keep-network
|
||||
|
||||
keep-notes:
|
||||
build:
|
||||
context: .
|
||||
@@ -12,7 +32,7 @@ services:
|
||||
- "3000:3000"
|
||||
environment:
|
||||
# Database
|
||||
- DATABASE_URL=file:/app/prisma/dev.db
|
||||
- DATABASE_URL=postgresql://keepnotes:keepnotes@postgres:5432/keepnotes
|
||||
- NODE_ENV=production
|
||||
|
||||
# Application (IMPORTANT: Change these!)
|
||||
@@ -29,14 +49,14 @@ services:
|
||||
# - OLLAMA_BASE_URL=http://ollama:11434
|
||||
# - OLLAMA_MODEL=granite4:latest
|
||||
volumes:
|
||||
# Persist SQLite database
|
||||
- keep-db:/app/prisma
|
||||
|
||||
# Persist uploaded images and files
|
||||
- keep-uploads:/app/public/uploads
|
||||
|
||||
# Optional: Mount custom SSL certificates
|
||||
# - ./certs:/app/certs:ro
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- keep-network
|
||||
# Optional: Resource limits for Proxmox VM
|
||||
@@ -82,7 +102,7 @@ networks:
|
||||
driver: bridge
|
||||
|
||||
volumes:
|
||||
keep-db:
|
||||
postgres-data:
|
||||
driver: local
|
||||
keep-uploads:
|
||||
driver: local
|
||||
|
||||
Reference in New Issue
Block a user