pref: change the database type to SQLite
This commit is contained in:
@@ -1,16 +1,13 @@
|
||||
version: "3.9"
|
||||
services:
|
||||
upage:
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
image: upage-ai:dev
|
||||
image: upage-ai:production
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "${PORT:-3000}:3000"
|
||||
environment:
|
||||
- OPERATING_ENV=${OPERATING_ENV:-production}
|
||||
- NODE_ENV=${NODE_ENV:-production}
|
||||
- DATABASE_URL=postgres://upage:${POSTGRES_PASSWORD}@postgres:5432/upage?schema=upage_schema
|
||||
- GROQ_API_KEY=${GROQ_API_KEY}
|
||||
- HuggingFace_API_KEY=${HuggingFace_API_KEY}
|
||||
- OPENAI_API_KEY=${OPENAI_API_KEY}
|
||||
@@ -48,23 +45,6 @@ services:
|
||||
- USAGE_LOG_FILE=true
|
||||
- STORAGE_DIR=/app/storage
|
||||
- MAX_UPLOAD_SIZE_MB=${MAX_UPLOAD_SIZE_MB:-5}
|
||||
networks:
|
||||
upage_network:
|
||||
postgres:
|
||||
image: postgres:17-alpine
|
||||
environment:
|
||||
POSTGRES_USER: upage
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
networks:
|
||||
upage_network:
|
||||
|
||||
networks:
|
||||
upage_network:
|
||||
|
||||
volumes:
|
||||
upage-db:
|
||||
|
||||
Reference in New Issue
Block a user