From 0711e2891798a11028ff1444d3d678e3545a1b74 Mon Sep 17 00:00:00 2001 From: DeadNews Date: Mon, 8 Jan 2024 01:21:03 +0700 Subject: [PATCH] build(docker): add `docker-compose` --- Makefile | 13 +++++++++---- docker-compose.yml | 8 ++++++++ 2 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 docker-compose.yml diff --git a/Makefile b/Makefile index 08dfe00..205329e 100644 --- a/Makefile +++ b/Makefile @@ -8,9 +8,6 @@ install: pc-install: pre-commit install -update: - poetry update - update-latest: poetry up --latest @@ -23,4 +20,12 @@ lint: poetry run poe lint test: - poetry run pytest + poetry run poe test + +docker: compose-up + +compose-up: + docker compose up --build + +compose-down: + docker compose down diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..5469605 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,8 @@ +version: "3" +services: + web: + build: . + ports: + - 8080:8080 + environment: + UVICORN_PORT: "8080"