Skip to content
/ docker-poetry Public template

Poetry docker-compose template

License

Notifications You must be signed in to change notification settings

vargalott/docker-poetry

Repository files navigation

docker-poetry

This project provides you a working Python Poetry-based environment using Docker and Docker Compose.

Usage

  1. Install Docker and Docker-compose;

  2. Clone this project and then cd to the project folder;

  3. Build the image:

$ docker compose build
  1. Run the project:
$ docker compose up

Other

You can use poetry locally with in-project virtualenvs as it specified in poetry.toml:

$ poetry run main

In that case you can also use the black code formatter:

$ poetry run black ./docker_poetry

License

This project is licensed under the MIT License.

Credits

My thanks to the developers of the Docker and Poetry.