Skip to content

Трек «Адаптация фильмов для людей с особыми потребностями»

Notifications You must be signed in to change notification settings

stackoverfollowers/true-tech-hack-2023

Repository files navigation

truetechhack

DEMO: http://91.185.84.129/

Stack: Python 3.10, FastAPI, Next.js, Nginx, PostgreSQL, Redis, Celery SkLearn

Run project

Dev run

In dev version Docker Compose uses Dockerfile.dev for buildings and maps ./back/src as volume for autoreloading and postgres container hasn't volume.

cp .env.example .env
docker-compose -f docker-compose.dev.yaml up --build -d

Production run

cp .env.example .env
docker-compose up --build -d

Migrations

Using alembic for automate create migrations

alembic revision --autogenerate -m "Name of migration"
docker-compose exec backend alembic revision --autogenerate -m "Name of migration"

For apply

alembic upgrade head

or

docker-compose exec backend alembic upgrade head

Scrinshots

1 2 3 4 5 6 7 8 91