uvicorn-gunicorn-poetry
Docker image with Gunicorn using Uvicorn workers for running Python web applications. Uses Poetry for managing dependencies and setting up a virtual environment. Supports AMD64 and ARM64 CPU architectures.
File Explorer
Download Latest Version (.zip)- pipeline.yml
- __init__.py
- constants.py
- Dockerfile
- gunicorn_configuration.py
- publish.py
- utils.py
- __init__.py
- main.py
- __init__.py
- test_api_endpoints.py
- __init__.py
- conftest.py
- .dockerignore
- .gitignore
- Dockerfile
- poetry.lock
- pyproject.toml
- README.md
- __init__.py
- main.py
- logging_configuration_file.yaml
- __init__.py
- test_api_endpoints.py
- __init__.py
- conftest.py
- .dockerignore
- .gitignore
- Dockerfile
- poetry.lock
- pyproject.toml
- README.md
- __init__.py
- conftest.py
- test_build_version.py
- test_default_configuration.py
- __init__.py
- conftest.py
- test_cli.py
- test_cli_and_env.py
- test_env.py
- __init__.py
- conftest.py
- constants.py
- utils.py
- .env-example
- .gitignore
- .pre-commit-config.yaml
- LICENSE
- poetry.lock
- pyproject.toml
- README.md
# Installation Guide
1. Get the code
git clone https://github.com/max-pfeiffer/uvicorn-gunicorn-poetry
Downloads the entire project code from GitHub to your computer.
cd uvicorn-gunicorn-poetry
Moves into the project folder you just downloaded.
2. Docker
Easy RecommendedPrerequisites
- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker build -f build/Dockerfile -t uvicorn-gunicorn-poetry .
Builds a runnable image based on the Dockerfile.
docker run -p 8080:80 uvicorn-gunicorn-poetry
Runs the built image as an actual container.
Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.
3. Python
EasyPrerequisites
βββ poetry.lock
Type this command into your terminal and run it.
If it runs without errors and prints output in the terminal, it worked.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
