mirror of https://github.com/statping/statping
auto ssl
parent
cc90e8cfcd
commit
9ca79223b5
|
@ -20,7 +20,7 @@ services:
|
||||||
- ./statup/nginx/html:/usr/share/nginx/html
|
- ./statup/nginx/html:/usr/share/nginx/html
|
||||||
- ./statup/nginx/dhparam:/etc/nginx/dhparam
|
- ./statup/nginx/dhparam:/etc/nginx/dhparam
|
||||||
environment:
|
environment:
|
||||||
DEFAULT_HOST: ${DOMAIN}
|
DEFAULT_HOST: ${LETSENCRYPT_HOST}
|
||||||
|
|
||||||
letsencrypt:
|
letsencrypt:
|
||||||
container_name: letsencrypt
|
container_name: letsencrypt
|
||||||
|
@ -47,10 +47,10 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./statup/app:/app
|
- ./statup/app:/app
|
||||||
environment:
|
environment:
|
||||||
VIRTUAL_HOST: ${DOMAIN}
|
VIRTUAL_HOST: ${LETSENCRYPT_HOST}
|
||||||
VIRTUAL_PORT: 8080
|
VIRTUAL_PORT: 8080
|
||||||
LETSENCRYPT_HOST: ${DOMAIN}
|
LETSENCRYPT_HOST: ${LETSENCRYPT_HOST}
|
||||||
LETSENCRYPT_EMAIL: info@socialeck.com
|
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}
|
||||||
DB_CONN: postgres
|
DB_CONN: postgres
|
||||||
DB_HOST: postgres
|
DB_HOST: postgres
|
||||||
DB_USER: statup
|
DB_USER: statup
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
export DOMAIN="status.balancebadge.io"
|
export LETSENCRYPT_HOST="status.balancebadge.io"
|
||||||
export EMAIL="info@socialeck.com"
|
export LETSENCRYPT_EMAIL="info@socialeck.com"
|
||||||
|
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install \
|
sudo apt-get install \
|
||||||
|
@ -24,4 +24,4 @@ mkdir statup
|
||||||
cd statup
|
cd statup
|
||||||
wget https://raw.githubusercontent.com/hunterlong/statup/master/servers/docker-compose-ssl.yml
|
wget https://raw.githubusercontent.com/hunterlong/statup/master/servers/docker-compose-ssl.yml
|
||||||
sudo service docker start
|
sudo service docker start
|
||||||
sudo docker-compose up -d
|
sudo LETSENCRYPT_HOST=$LETSENCRYPT_HOST LETSENCRYPT_EMAIL=$LETSENCRYPT_EMAIL docker-compose up -d
|
Loading…
Reference in New Issue