Compare commits

...

2 Commits

Author SHA1 Message Date
itqop 4cc97efeba Try to fix docker [skip ci]
CI / lint_and_test (push) Successful in 2m33s Details
2025-07-19 19:07:11 +03:00
itqop 3041537f74 Edit gitignore 2025-07-19 17:56:08 +03:00
4 changed files with 10 additions and 4 deletions

2
.gitignore vendored
View File

@ -40,3 +40,5 @@ htmlcov/
data/local/
data/temp/
articles_konsol_pro/
scripts/

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"})