Created
January 17, 2018 13:55
-
-
Save madeinnordeste/5b6f805992f6c628f9cc829ff6b68162 to your computer and use it in GitHub Desktop.
enviroment.sh
This file contains hidden or 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
#!/bin/bash | |
if [ "$1" == "up" ] ; then | |
cd laradock && docker-compose up -d php-fpm nginx mysql phpmyadmin | |
echo "" | |
echo "WORKDIR: http://localhost" | |
echo "" | |
echo "PHPMYADMIN: http://localhost:8080" | |
echo "" | |
elif [ "$1" == "stop" ]; then | |
cd laradock/ && docker-compose stop | |
elif [ "$1" == "down" ]; then | |
cd laradock/ && docker-compose down | |
elif [ "$1" == "ssh" ]; then | |
docker exec -it laradock_workspace_1 bash | |
else | |
echo "" | |
echo "Invalid arguments." | |
echo "Use $0 [ up | stop | down | ssh ]" | |
echo "" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment