Форматирование кода, добавление лого, исправление тестов, улучшение эндпоинтов и документации

This commit is contained in:
2025-11-30 20:03:39 +03:00
parent a3ccd8a466
commit 99de648fa9
38 changed files with 1261 additions and 308 deletions

View File

@@ -2,17 +2,17 @@ services:
db:
container_name: db
image: postgres:17
expose:
- 5432
volumes:
- ./data/db:/var/lib/postgresql/data
ports:
- 5432:5432
# volumes:
# - ./data/db:/var/lib/postgresql/data
env_file:
- ./.env
api:
container_name: api
build: .
command: bash -c "alembic upgrade head && uvicorn library_service.main:app --reload --host 0.0.0.0 --port 8000"
command: bash -c "alembic upgrade head && uvicorn library_service.main:app --host 0.0.0.0 --port 8000 --reload"
volumes:
- .:/code
ports:
@@ -26,5 +26,3 @@ services:
command: bash -c "pytest tests"
volumes:
- .:/code
depends_on:
- db