-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (28 loc) · 733 Bytes
/
Makefile
File metadata and controls
39 lines (28 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
VOLUME=$(shell basename $(PWD))
develop: clean build migrations.all run
clean:
docker compose rm -vf
build:
docker compose build
run:
docker compose up
frontend-shell:
docker compose run frontend \
sh
backend-shell:
docker compose run backend \
sh
python-shell:
docker compose run backend \
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 \
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 backend \
poetry run python src/manage.py migrate