postgress version connect

This commit is contained in:
DFFM-maker 2025-12-26 13:14:27 +01:00
parent a5b6e6a0b0
commit c96d0ada03
4 changed files with 5 additions and 5 deletions

2
.gitignore vendored
View File

@ -2,5 +2,5 @@
__pycache__/ __pycache__/
*.pyc *.pyc
.aider* .aider*
workspaces/ workspaces/*
qdrant_storage/ qdrant_storage/

2
app.py
View File

@ -15,7 +15,7 @@ from chainlit.data.sql_alchemy import SQLAlchemyDataLayer
DATABASE_URL = "postgresql+asyncpg://user:password@postgres:5432/ai_station" DATABASE_URL = "postgresql+asyncpg://user:password@postgres:5432/ai_station"
# Attiviamo il salvataggio su DB # Attiviamo il salvataggio su DB
cl.data_layer = SQLAlchemyDataLayer(url=DATABASE_URL) cl.data_layer = SQLAlchemyDataLayer(conn_string=DATABASE_URL)
# - # -
# --- CONFIGURAZIONE HARD-CODED --- # --- CONFIGURAZIONE HARD-CODED ---

View File

@ -32,7 +32,7 @@ services:
ports: ports:
- "5432:5432" - "5432:5432"
volumes: volumes:
- postgres-data:/var/lib/postgresql - postgres-data:/var/lib/postgresql/data
networks: networks:
- ai-station-net - ai-station-net

View File

@ -1,6 +1,6 @@
chainlit chainlit==1.3.2
ollama ollama
asyncpg asyncpg
psycopg2-binary psycopg2-binary
qdrant-client qdrant-client>=1.10.0
sqlalchemy sqlalchemy