Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- status: ## display status of all service of the compose file
- @docker-compose ps --services | sort | while read service; do \
- status=`docker inspect --format='{{.State.Status}}' $$service`; \
- if [ "$$status" = "starting" ]; then \
- color_status="\033[40m"; \
- elif [ "$$status" = "running" ]; then \
- color_status="\e[32m"; \
- else \
- color_status="\e[31m"; \
- fi; \
- echo "$$service: $$color_status $$status\e[39m"; \
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement