files cant't be seen by LLM, but everything else works.

This commit is contained in:
emil
2026-04-26 22:55:48 +03:00
parent 2307c63bf1
commit 9bafe9fbf2
12 changed files with 682 additions and 481 deletions
+20 -20
View File
@@ -1,5 +1,3 @@
version: "3.8"
services:
# Nginx reverse proxy
nginx:
@@ -11,7 +9,6 @@ services:
depends_on:
- frontend
- backend
- strapi
networks:
- aiui-network
@@ -26,7 +23,7 @@ services:
- aiui-network
restart: unless-stopped
# Backend (Express + ChromaDB)
# Backend (Express + SQLite)
backend:
build:
context: ./backend
@@ -38,28 +35,31 @@ services:
environment:
- NODE_ENV=production
- PORT=3002
- STRAPI_URL=http://strapi:1337
- STRAPI_API_TOKEN=${STRAPI_API_TOKEN:-}
- OPENAI_API_URL=${OPENAI_API_URL:-https://api.openai.com/v1}
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- DEFAULT_MODEL=${DEFAULT_MODEL:-gpt-4o-mini}
- JWT_SECRET=${JWT_SECRET:-randomsecret}
- CHROMA_HOST=chromadb
- CHROMA_PORT=8000
networks:
- aiui-network
depends_on:
- chromadb
restart: unless-stopped
# Strapi CMS (SQLite)
strapi:
image: strapi/strapi:5
# ChromaDB - vector database for RAG
chromadb:
image: chromadb/chroma:latest
expose:
- "1337"
- "8000"
volumes:
- ./data/strapi:/srv/app
- ./data/chromadb:/data/chromadb
environment:
- DATABASE_CLIENT=sqlite
- DATABASE_FILENAME=.tmp/data.db
- JWT_SECRET=${JWT_SECRET:-changemejwt}
- ADMIN_JWT_SECRET=${ADMIN_JWT_SECRET:-changemeadmin}
- APP_KEYS=${APP_KEYS:-changeme1,changeme2}
- API_TOKEN_SALT=${API_TOKEN_SALT:-changemesalt}
- TRANSFER_TOKEN_SALT=${TRANSFER_TOKEN_SALT:-changemetoken}
- NODE_ENV=production
- CHROMA_SERVER_HOST=0.0.0.0
- CHROMA_SERVER_HTTP_PORT=8000
- CHROMA_SERVER_CORS_ALLOW_ORIGINS=["*"]
- IS_PERSISTENT=TRUE
- PERSIST_DIRECTORY=/data/chromadb
networks:
- aiui-network
restart: unless-stopped
@@ -70,4 +70,4 @@ networks:
volumes:
backend-data:
strapi-data:
chromadb-data: