Created
December 19, 2019 17:34
-
-
Save srgpsk/8acde843fa2f055f61cfad29a96b1879 to your computer and use it in GitHub Desktop.
Devilbox helper. Starts / restarts containers
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
#!/bin/bash | |
# Devilbox helper. Starts / restarts containers | |
if [ "$1" != '' ]; then | |
cd ~/projects/devilbox | |
case "$1" in | |
stop ) | |
docker-compose stop | |
docker-compose rm -f | |
;; | |
restart|start ) | |
docker-compose stop | |
docker-compose rm -f | |
docker-compose up -d httpd mysql php | |
;; | |
esac | |
else | |
echo $"Usage: $0 {start|stop|restart}" | |
fi | |
exit 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment