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/dhparam:/etc/nginx/dhparam
|
||||
environment:
|
||||
DEFAULT_HOST: ${DOMAIN}
|
||||
DEFAULT_HOST: ${LETSENCRYPT_HOST}
|
||||
|
||||
letsencrypt:
|
||||
container_name: letsencrypt
|
||||
|
@ -47,10 +47,10 @@ services:
|
|||
volumes:
|
||||
- ./statup/app:/app
|
||||
environment:
|
||||
VIRTUAL_HOST: ${DOMAIN}
|
||||
VIRTUAL_HOST: ${LETSENCRYPT_HOST}
|
||||
VIRTUAL_PORT: 8080
|
||||
LETSENCRYPT_HOST: ${DOMAIN}
|
||||
LETSENCRYPT_EMAIL: info@socialeck.com
|
||||
LETSENCRYPT_HOST: ${LETSENCRYPT_HOST}
|
||||
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}
|
||||
DB_CONN: postgres
|
||||
DB_HOST: postgres
|
||||
DB_USER: statup
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
export DOMAIN="status.balancebadge.io"
|
||||
export EMAIL="info@socialeck.com"
|
||||
export LETSENCRYPT_HOST="status.balancebadge.io"
|
||||
export LETSENCRYPT_EMAIL="info@socialeck.com"
|
||||
|
||||
sudo apt-get update
|
||||
sudo apt-get install \
|
||||
|
@ -24,4 +24,4 @@ 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
|
||||
sudo LETSENCRYPT_HOST=$LETSENCRYPT_HOST LETSENCRYPT_EMAIL=$LETSENCRYPT_EMAIL docker-compose up -d
|
Loading…
Reference in New Issue