Skip to content

Instantly share code, notes, and snippets.

@srgpsk
Created December 19, 2019 17:34
Show Gist options
  • Save srgpsk/8acde843fa2f055f61cfad29a96b1879 to your computer and use it in GitHub Desktop.
Save srgpsk/8acde843fa2f055f61cfad29a96b1879 to your computer and use it in GitHub Desktop.
Devilbox helper. Starts / restarts containers
#!/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