Initial commit
This commit is contained in:
37
Makefile
Normal file
37
Makefile
Normal file
@@ -0,0 +1,37 @@
|
||||
.PHONY: help up down restart logs clean build test
|
||||
|
||||
help:
|
||||
@echo "Service App - Make Commands"
|
||||
@echo ""
|
||||
@echo "Usage:"
|
||||
@echo " make up Start service with Docker Compose"
|
||||
@echo " make down Stop service"
|
||||
@echo " make restart Restart service"
|
||||
@echo " make logs View logs"
|
||||
@echo " make clean Stop and remove containers"
|
||||
@echo " make build Rebuild container"
|
||||
@echo " make shell Open container shell"
|
||||
|
||||
up:
|
||||
docker-compose up -d
|
||||
|
||||
down:
|
||||
docker-compose down
|
||||
|
||||
restart:
|
||||
docker-compose restart
|
||||
|
||||
logs:
|
||||
docker-compose logs -f
|
||||
|
||||
clean:
|
||||
docker-compose down -v --remove-orphans
|
||||
rm -rf backend/__pycache__ backend/**/__pycache__
|
||||
rm -rf frontend/node_modules frontend/dist
|
||||
|
||||
build:
|
||||
docker-compose build --no-cache
|
||||
|
||||
shell:
|
||||
docker-compose exec app /bin/bash
|
||||
|
||||
Reference in New Issue
Block a user