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.

1234567891011121314151617181920212223242526
  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. shell_%: ## Connects to the application container
  13. $(DOCKER_COMP) exec $(subst shell_,,$@) bash
  14. logs_%: ## Displays the logs of the application container
  15. $(DOCKER_COMP) logs -f $(subst logs_,,$@)
  16. cleanall:
  17. sudo docker system prune -a