30 líneas
579 B
Makefile
30 líneas
579 B
Makefile
DOCKER_COMP = sudo docker-compose
|
|
|
|
help:
|
|
echo Help is not yet implemented...
|
|
|
|
|
|
build:
|
|
$(DOCKER_COMP) build
|
|
|
|
up: ## Starts the docker hub
|
|
$(DOCKER_COMP) up -d
|
|
|
|
down: ## Stops the docker hub
|
|
$(DOCKER_COMP) down --remove-orphans
|
|
|
|
restart: ## Restarts the docker hub
|
|
$(DOCKER_COMP) restart
|
|
|
|
status: ## Prompt Containers
|
|
$(DOCKER_COMP) ps
|
|
|
|
shell_%: ## Connects to the application container
|
|
$(DOCKER_COMP) exec $(subst shell_,,$@) bash
|
|
|
|
logs_%: ## Displays the logs of the application container
|
|
$(DOCKER_COMP) logs -f $(subst logs_,,$@)
|
|
|
|
cleanall:
|
|
sudo docker system prune -a
|