Uses gunicorn + nginx.
-
Rename .env.dev.example to .env.dev.
-
Update the environment variables in the docker-compose.yml and .env.dev files.
-
Build the images and run the containers:
docker-compose up -d --build
Test it out at http://localhost:1337. The "web" folder is mounted into the container and your code changes apply automatically.
-
Check the logs if necessary:
docker-compose -f docker-compose.yml logs -f
-
Drop the container when you are done:
docker-compose -f docker-compose.yml down -v
Uses gunicorn + nginx.
-
Rename .env.prod.example to .env.prod. Update the environment variables.
-
Build the images and run the containers:
docker-compose -f docker-compose.prod.yml up -d --build
Test it out at http://localhost:1337. No mounted folders. To apply changes, the image must be re-built.
-
Check the logs if necessary:
docker-compose -f docker-compose.prod.yml logs -f
-
Drop the container when you are done:
docker-compose -f docker-compose.prod.yml down -v
python3.9 -m venv .venv_39
. .venv_39/bin/activate
python3 -m pip install --upgrade pip poetry
make install
make pre-commit-install
make test && make coverage && make check-codestyle && make mypy && make check-safety && make extrabadges
pre-commit run --all-files
git add .
git commit -m ":tada: Initial commit"
git push -u origin main