Страница 404, более подробная инофрмация об ошибках, улучшение фронтэнда и логирования, исправление docker-compose

This commit is contained in:
2026-01-31 00:49:05 +03:00
parent 657f1b96f2
commit 2f3d6f0e1e
13 changed files with 500 additions and 35 deletions
+16 -6
View File
@@ -15,8 +15,18 @@ services:
- 5432:5432
env_file:
- ./.env
command:
- "postgres"
- "-c"
- "wal_level=logical"
- "-c"
- "max_replication_slots=10"
- "-c"
- "max_wal_senders=10"
- "-c"
- "listen_addresses=*"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"]
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 10s
timeout: 5s
retries: 5
@@ -49,13 +59,13 @@ services:
volumes:
- ./data/llm:/root/.ollama
networks:
- proxy
# ports:
# - 11434:11434
- proxy
ports:
- 11434:11434
env_file:
- ./.env
healthcheck:
test: ["CMD-SHELL", "curl http://localhost:11434"]
test: ["CMD", "ollama", "list"]
interval: 10s
timeout: 5s
retries: 5
@@ -68,7 +78,7 @@ services:
build: .
container_name: api
restart: unless-stopped
command: bash -c "uvicorn library_service.main:app --host 0.0.0.0 --port 8000 --forwarded-allow-ips=*"
command: python library_service/main.py
logging:
options:
max-size: "10m"