Docker configuration templates
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829
  1. DOCKER_COMP = sudo docker-compose
  2. help:
  3. echo Help is not yet implemented...
  4. build:
  5. $(DOCKER_COMP) build
  6. up: ## Starts the docker hub
  7. $(DOCKER_COMP) up -d
  8. down: ## Stops the docker hub
  9. $(DOCKER_COMP) down --remove-orphans
  10. restart: ## Restarts the docker hub
  11. $(DOCKER_COMP) restart
  12. status: ## Prompt Containers
  13. $(DOCKER_COMP) ps
  14. shell_%: ## Connects to the application container
  15. $(DOCKER_COMP) exec $(subst shell_,,$@) bash
  16. logs_%: ## Displays the logs of the application container
  17. $(DOCKER_COMP) logs -f $(subst logs_,,$@)
  18. cleanall:
  19. sudo docker system prune -a