Created
February 1, 2020 11:32
-
-
Save yutakahashi114/62cd2b4010015dc5116bc488fe3fd1ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NETWORK_NAME = shared-network | |
up: | |
@if [ -z "`docker network ls | grep $(NETWORK_NAME)`" ]; then docker network create $(NETWORK_NAME); fi | |
docker-compose up -d | |
down: | |
docker-compose down | |
@if [ -n "`docker network inspect $(NETWORK_NAME) | grep \"\\"Containers\\": {}\"`" ]; then docker network rm $(NETWORK_NAME); fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment