Skip to content

Commit

Permalink
start docker-compose.debug file
Browse files Browse the repository at this point in the history
  • Loading branch information
rylew1 committed Apr 4, 2024
1 parent 8b0c3e2 commit 381f704
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ build:
start:
docker compose up --detach

start-debug:
docker compose -f docker-compose.debug.yml -f docker-compose.yml up --detach

run-logs: start
docker compose logs --follow --no-color $(APP_NAME)

Expand Down
21 changes: 21 additions & 0 deletions docker-compose.debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: "3.8"

# run with `docker compose -f`
# combines ports and env vars with main docker-compose.yml mass-pfml-api service
services:
main-app:
build:
context: ./app
target: dev
args:
- RUN_UID=${RUN_UID:-4000}
- RUN_USER=${RUN_USER:-app}
command: ["poetry", "run", "flask", "--app", "src.app", "run", "--host", "0.0.0.0", "--port", "8080", "--reload"]
container_name: main-app
env_file: ./app/local.env
ports:
- 5678:5678
environment:
- DEBUG_ADAPTER_PROTOCOL_ENABLE=true
volumes:
- ./app:/app

0 comments on commit 381f704

Please sign in to comment.