This is a project of 11th group of 25th stream (previously 7th of 24th) of Yandex Practicum for Middle Python Developers. The goal of the project is to build a online streaming platform.
Django 4.1, Elasticsearch, Redis, Postgres, FastAPI
Architecture of Billing and Subscriptions API
You need to make shure, that ElasticSearch is configured properly on your machine to run this project: StackOverflow Link
For starters, we need to initialize the project:
git clone [email protected]:stranded-in-python/movix.git && cd movix && make init
For local up (whithout Kafka):
make up
For local up with Kafka:
make upfull
To stop all containers:
make down
For deployment you could use Docker Swarm.
Configure Swarm, as described in manual.
Then you need to create .env files for production at .envs/.production
.
An example what .env files should look like lies at .envs/.production.example/*
.
Then run:
export COMPOSE_PROJECT_NAME=movix_production
docker stack deploy -c production.yml -c kafka.yml