Docker configuration templates
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

Makefile 816B

1234567891011121314151617181920212223242526272829303132333435363738
  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. up_%: ## Start a single service
  9. $(DOCKER_COMP) up $(subst up_,,$@)
  10. down: ## Stops the docker hub
  11. $(DOCKER_COMP) down --remove-orphans
  12. restart: ## Restarts the docker hub
  13. $(DOCKER_COMP) restart
  14. status: ## Prompt Containers
  15. $(DOCKER_COMP) ps
  16. sh_%: ## Connects to the application container
  17. $(DOCKER_COMP) exec $(subst sh_,,$@) sh
  18. bash_%: ## Connects to the application container
  19. $(DOCKER_COMP) exec $(subst bash_,,$@) bash
  20. logs: ## Displays the logs of the application container
  21. $(DOCKER_COMP) logs -f
  22. logs_%: ## Displays the logs of the application container
  23. $(DOCKER_COMP) logs -f $(subst logs_,,$@)
  24. cleanall:
  25. sudo docker system prune -a