pull/10/head
Hunter Long 2018-06-23 18:27:10 -07:00
parent 8d878e81a1
commit 0cc0356e35
3 changed files with 25 additions and 12 deletions

View File

@ -1,11 +1,21 @@
# Statup Servers
## Docker
## AWS EC2
Get up and running with 0 configuration using an EC2 server along with our startup script.
```
```
## Docker Compose
```$xslt
docker-compose up -d
```
## AWS EC2
## Docker Compose with Automatic SSL
```
DOMAIN=mydomain.com EMAIL=info@mydomain.com \
docker-compose -f docker-compose-ssl.yml up -d
```

View File

@ -22,7 +22,7 @@ services:
statup:
container_name: statup
build: https://github.com/hunterlong/statup.git
image: hunterlong/statup:latest
restart: always
networks:
- internet

View File

@ -4,23 +4,26 @@ sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl git \
curl \
software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-get update
sudo apt-get install docker-ce -y
sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo docker-compose --version
sudo systemctl enable docker
git clone https://github.com/hunterlong/statup.git
cd statup/servers
mkdir statup
cd statup
wget https://raw.githubusercontent.com/hunterlong/statup/master/servers/docker-compose.yml
sudo service docker start
sudo docker-compose up -d
sudo docker-compose up -d
/etc/rc.local