Last active
December 18, 2019 16:58
-
-
Save bellx2/3085b3ee771440a8664fbc86ce9826d2 to your computer and use it in GitHub Desktop.
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 | |
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
download
docker-compose.yml
and run this script.Example
lightsail launch script (docker-redmine):
open port 10083.