From 64102d11bcb7703996f63d6cfc1733d784d2b91b Mon Sep 17 00:00:00 2001 From: Oscar Romero Date: Tue, 20 Feb 2024 12:01:21 -0500 Subject: [PATCH] chore: Update Makefile to Compose v2 (#7) --- Makefile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 8cf3f6c..1fb6c99 100644 --- a/Makefile +++ b/Makefile @@ -3,33 +3,33 @@ VOLUME=$(shell basename $(PWD)) develop: clean build migrations.all run clean: - docker-compose rm -vf + docker compose rm -vf build: - docker-compose build + docker compose build run: - docker-compose up + docker compose up shell: - docker-compose run django \ + docker compose run django \ sh python-shell: - docker-compose run django \ + docker compose run django \ poetry run python src/manage.py shell postgres.data.delete: clean docker volume rm $(VOLUME)_postgres postgres.start: - docker-compose up -d postgres - docker-compose exec postgres \ + docker compose up -d postgres + docker compose exec postgres \ sh -c 'while ! nc -z postgres 5432; do sleep 0.1; done' postgres-shell: postgres.start docker exec -it $(VOLUME)_postgres_1 sh migrations.all: postgres.start - docker-compose run django \ + docker compose run django \ poetry run python src/manage.py migrate \ No newline at end of file