Try to fix docker [skip ci]
CI / lint_and_test (push) Successful in 2m33s Details

This commit is contained in:
itqop 2025-07-19 19:07:11 +03:00
parent 3041537f74
commit 4cc97efeba
3 changed files with 8 additions and 4 deletions

View File

@ -21,8 +21,9 @@ RUN pip install --no-cache-dir --upgrade pip && \
COPY . .
RUN mkdir -p /app/storage/chroma /app/data/articles_konsol_pro && \
chown -R appuser:appuser /app
RUN mkdir -p /app/storage/chroma /app/data/ && \
chown -R appuser:appuser /app && \
chmod -R 755 /app/storage
USER appuser

View File

@ -28,8 +28,8 @@ services:
- PYTHONUNBUFFERED=1
- PYTHONDONTWRITEBYTECODE=1
volumes:
- ./storage/chroma:/app/storage/chroma:rw
- ./data:/app/data:ro
- chroma_data:/app/storage/chroma
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/healthz"]
interval: 30s
@ -49,3 +49,6 @@ services:
- no-new-privileges:true
tmpfs:
- /tmp:noexec,nosuid,size=100m
volumes:
chroma_data:

View File

@ -5,7 +5,7 @@ from pydantic import Field, ConfigDict
class Settings(BaseSettings):
llm_provider: Literal["openai", "gemini"] = "openai"
llm_model: str = "gpt-4o-mini"
llm_model: str = "gpt-4o"
embedding_model: str = "text-embedding-3-large"
openai_api_key: str = Field(default="", json_schema_extra={"env": "OPENAI_API_KEY"})