BuyAndKnow/Makefile
Stanislaw-Golebiewski a84a293a37 webapp setup
2019-12-15 15:03:57 +01:00

28 lines
536 B
Makefile

.PHONY: build_all build_api build_webapp run logs start stop shell
build_all: build_api build_webapp
api_build:
docker build --tag bk_api -f ./dockerfiles/api.dockerfile .
webapp_build:
docker build --tag bk_webapp -f ./dockerfiles/webapp.dockerfile .
api_run:
docker run -d --name api -p 127.0.0.1:8000:8000 bk_api
webapp_run:
docker run -d --name webapp -p 127.0.0.1:3000:3000 bk_webapp
api_logs:
docker logs api --follow
api_start:
docker start api
api_stop:
docker stop api
api_shell:
docker exec -it api /bin/bash