mirror of
https://github.com/wowlikon/LiB.git
synced 2026-02-04 04:31:09 +00:00
Страница 404, более подробная инофрмация об ошибках, улучшение фронтэнда и логирования, исправление docker-compose
This commit is contained in:
+16
-6
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user