Skip to content

Instantly share code, notes, and snippets.

@bellx2
Last active December 18, 2019 16:58
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bellx2/3085b3ee771440a8664fbc86ce9826d2 to your computer and use it in GitHub Desktop.
Save bellx2/3085b3ee771440a8664fbc86ce9826d2 to your computer and use it in GitHub Desktop.
#!/bin/bash
# install docker
curl -fsSL https://get.docker.com/ | sh
# run docker without sudo
usermod -aG docker ubuntu
# install docker-compose
curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
# copy docker-compose file to /srv/docker
mkdir /srv/docker
mv docker-compose.yml /srv/docker/
curl -o /etc/systemd/system/docker-compose-app.service https://gist.githubusercontent.com/bellx2/cd5ea508a4fad74dbf63c6896da18b1a/raw/docker-compose-app.service
systemctl enable docker-compose-app
docker-compose -f /srv/docker/docker-compose.yml up -d
@bellx2
Copy link
Author

bellx2 commented Oct 12, 2018

download docker-compose.yml and run this script.

Example

lightsail launch script (docker-redmine):

curl -o docker-compose.yml https://raw.githubusercontent.com/sameersbn/docker-redmine/master/docker-compose.yml
curl -o ./install.sh https://gist.githubusercontent.com/bellx2/3085b3ee771440a8664fbc86ce9826d2/raw/
chmod +x ./install.sh
./install.sh

open port 10083.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment