Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 45 lines (36 sloc) 1.2 KB
# Install script for instantbox
# Home Page:
# Usage:
# mkdir instantbox && cd $_
# bash <(curl -sSL"
# docker-compose up -d
check_cmd() {
command -v "$1" >/dev/null 2>&1
echo "Welcome to instantbox, please wait..."
echo ""
if check_cmd docker; then
echo "docker is installed"
echo "docker is not installed, please try again after it's installed"
exit 1
if check_cmd docker-compose; then
echo "docker-compose is installed"
curl -sSL > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose || exit 1
curl -sSLO
echo "Enter your IP (optional): "
read IP
echo "Choose a port (default: 8888): "
read PORT
[ -z "$IP" ] || sed -i -e "s/SERVERURL=$/SERVERURL=$IP/" docker-compose.yml
[ -z "$PORT" ] || sed -i -e "s/8888:80/$PORT:80/" docker-compose.yml
echo "You're all set! "
echo "Run 'docker-compose up -d' then go to http://${IP:-localhost}:${PORT:-8888} on your browser."
You can’t perform that action at this time.