first commit

This commit is contained in:
2022-02-08 16:44:09 +05:30
commit d366be57a1
25 changed files with 909 additions and 0 deletions

33
Makefile Normal file
View File

@ -0,0 +1,33 @@
ifneq (,$(wildcard ./.env))
include .env
export
ENV_FILE_PARAM = --env-file .env
endif
build:
docker-compose up --build -d --remove-orphans
up:
docker-compose up -d
down:
docker-compose down
logs:
docker-compose logs
migrate:
docker-compose exec api python3 manage.py migrate --noinput
makemigrations:
docker-compose exec api python3 manage.py makemigrations
superuser:
docker-compose exec api python3 manage.py createsuperuser
down-v:
docker-compose down -v
volume:
docker volume inspect rog_src_postgres_data
shell:
docker-compose exec api python3 manage.py shell