Skip to content

Instantly share code, notes, and snippets.

@kentatogashi
Created November 11, 2018 23:46
Show Gist options
  • Save kentatogashi/279ae7bdf62643f3266e63443375a196 to your computer and use it in GitHub Desktop.
Save kentatogashi/279ae7bdf62643f3266e63443375a196 to your computer and use it in GitHub Desktop.
docker-composeで、redmineを立ち上げるスクリプト
#!/bin/sh
[ $(whoami) != root ] && \
echo 'require root.' && exit 1
which docker-compose > /dev/null 2>&1
[ $? -ne 0 ] && \
curl -L https://github.com/docker/compose/releases/download/1.21.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
mkdir -p ~/redmine
cd ~/redmine
[ -f docker-compose.yml ] || \
wget https://raw.githubusercontent.com/sameersbn/docker-redmine/master/docker-compose.yml
docker-compose up -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment