Last active
August 29, 2015 14:19
-
-
Save masato/b130b4c6cf53340bc853 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/sh - | |
set -o nounset | |
# Docker | |
wget -qO- https://get.docker.com/ | sh | |
# Docker Compose | |
curl -L https://github.com/docker/compose/releases/download/1.2.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose; chmod +x /usr/local/bin/docker-compose | |
# SSL Certificate | |
mkdir -p /opt/docker_apps/certs/meshblu | |
cd /opt/docker_apps/certs/meshblu | |
openssl genrsa -out server.key 4096 | |
openssl req -new -batch -key server.key -out server.csr | |
openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt | |
# docker-compose.yml | |
cd | |
wget -O docker-compose.yml https://gist.githubusercontent.com/masato/9834041c63570c90d3e1/raw/docker-compose.yml | |
docker-compose up -d | |
docker-compose ps |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment