Skip to content

Commit

Permalink
build(docker): add docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
DeadNews committed Jan 7, 2024
1 parent 8f45816 commit 0711e28
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ install:
pc-install:
pre-commit install

update:
poetry update

update-latest:
poetry up --latest

Expand All @@ -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
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: "3"
services:
web:
build: .
ports:
- 8080:8080
environment:
UVICORN_PORT: "8080"

0 comments on commit 0711e28

Please sign in to comment.