pull/10/head
Hunter Long 2018-06-23 20:33:08 -07:00
parent cf45a74398
commit 4cd56087fd
3 changed files with 38 additions and 10 deletions

View File

@ -48,9 +48,6 @@ notifications:
before_install:
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then travis_wait 30 docker pull karalabe/xgo-latest; fi
after_success:
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then /bin/bash -c ./build.sh; fi
before_script:
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;'
- psql -c 'create database test;' -U postgres
@ -64,4 +61,7 @@ before_script:
- go install
script:
- go test -v
- go test -v
after_success:
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then /bin/bash -c ./build.sh; fi

View File

@ -8,6 +8,8 @@ services:
ports:
- 0.0.0.0:80:80
- 0.0.0.0:443:443
labels:
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy"
networks:
- internet
restart: always
@ -25,7 +27,6 @@ services:
image: jrcs/letsencrypt-nginx-proxy-companion
networks:
- internet
- database
restart: always
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
@ -36,7 +37,7 @@ services:
statup:
container_name: statup
build: https://github.com/hunterlong/statup.git
image: hunterlong/statup:latest
restart: always
networks:
- internet
@ -48,16 +49,15 @@ services:
environment:
VIRTUAL_HOST: $DOMAIN
VIRTUAL_PORT: 8080
LETSENCRYPT_EMAIL: info@mydomains.com
LETSENCRYPT_HOST: $DOMAIN
LETSENCRYPT_EMAIL: info@socialeck.com
DB_CONN: postgres
DB_HOST: postgres
DB_USER: statup
DB_PASS: password123
DB_DATABASE: statup
NAME: EC2 Example
DESCRIPTION: This is a Statup Docker Compose instance
NAME: SSL Example
DESCRIPTION: This Status Status Page should be running $DOMAIN with SSL.
postgres:
container_name: postgres

28
servers/ubuntu-ssl.sh Normal file
View File

@ -0,0 +1,28 @@
#!/usr/bin/env bash
DOMAIN="status.balancebadge.io"
EMAIL="info@socialeck.com"
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
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
mkdir statup
cd statup
wget https://raw.githubusercontent.com/hunterlong/statup/master/servers/docker-compose-ssl.yml
sudo service docker start
sudo docker-compose up -d