mirror of
https://github.com/michelleDeko/scalelite-run.git
synced 2025-12-16 14:22:11 +01:00
Simplified use of HOST_NAME
This commit is contained in:
@@ -16,8 +16,7 @@ using docker-compose.
|
||||
|
||||
- [scalelite](https://cloud.docker.com/u/blindsidenetwks/repository/docker/blindsidenetwks/scalelite)
|
||||
|
||||
- Make sure you have your own DNS and a public domain name or a delegated one under blindside-dev.com
|
||||
(e.g. <JOHN>.blindside-dev.com)
|
||||
- Make sure you have your own DNS and a public domain name or a delegated one (e.g. <JOHN>.blindside-dev.com).
|
||||
|
||||
|
||||
## Preliminary steps
|
||||
|
||||
@@ -20,11 +20,12 @@ services:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
environment:
|
||||
- NGINX_HOSTNAME=${HOST_NAME:-sl}.${DOMAIN_SUB:-lab}.${DOMAIN_ROOT:-bigbluebutton.org}
|
||||
- NGINX_HOSTNAME=${HOST_NAME:-sl.xlab.blindside-dev.com}
|
||||
depends_on:
|
||||
- scalelite.api
|
||||
command: /bin/bash -c "envsubst '$$NGINX_HOSTNAME' < /etc/nginx/sites-available/sites.template > /etc/nginx/sites-enabled/sites.conf && while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g 'daemon off;'"
|
||||
|
||||
|
||||
certbot:
|
||||
image: certbot/certbot
|
||||
volumes:
|
||||
@@ -32,6 +33,7 @@ services:
|
||||
- ./data/certbot/www:/var/www/certbot
|
||||
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
|
||||
|
||||
|
||||
redis:
|
||||
image: redis
|
||||
restart: "no"
|
||||
@@ -40,6 +42,7 @@ services:
|
||||
volumes:
|
||||
- ./data/redis/:/data
|
||||
|
||||
|
||||
postgres:
|
||||
image: postgres:9.5
|
||||
restart: "no"
|
||||
@@ -53,6 +56,7 @@ services:
|
||||
- PGUSER=postgres
|
||||
- PGPASSWORD=password
|
||||
|
||||
|
||||
scalelite.api:
|
||||
entrypoint: [bin/start]
|
||||
image: blindsidenetwks/scalelite:master
|
||||
@@ -76,7 +80,8 @@ services:
|
||||
- DB_NAME=scalelite_production
|
||||
- DB_USERNAME=postgres
|
||||
- DB_PASSWORD=password
|
||||
- URL_HOST=${HOST_NAME:-sl}.${DOMAIN_SUB:-lab}.${DOMAIN_ROOT:-bigbluebutton.org}
|
||||
- URL_HOST=${HOST_NAME:-sl.xlab.blindside-dev.com}
|
||||
|
||||
|
||||
scalelite.poller:
|
||||
entrypoint: [bin/start-poller]
|
||||
@@ -92,5 +97,5 @@ services:
|
||||
env_file: ./scalelite/.env
|
||||
environment:
|
||||
- REDIS_URL=redis://redis:6379
|
||||
- URL_HOST=${HOST_NAME:-sl}.${DOMAIN_SUB:-lab}.${DOMAIN_ROOT:-bigbluebutton.org}
|
||||
- URL_HOST=${HOST_NAME:-sl.xlab.blindside-dev.com}
|
||||
- INTERVAL=60
|
||||
|
||||
4
dotenv
4
dotenv
@@ -1,3 +1 @@
|
||||
DOMAIN_ROOT=bigbluebutton.org
|
||||
DOMAIN_SUB=lab
|
||||
HOST_NAME=sl
|
||||
HOST_NAME=sl.xlab.blindside-dev.com
|
||||
|
||||
@@ -5,7 +5,9 @@ if ! [ -x "$(command -v docker-compose)" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
domains=(example.org www.example.org)
|
||||
HOST_NAME=$(grep HOST_NAME .env | cut -d '=' -f2)
|
||||
|
||||
domains=($HOST_NAME)
|
||||
rsa_key_size=4096
|
||||
data_path="./data/certbot"
|
||||
email="" # Adding a valid address is strongly recommended
|
||||
|
||||
Reference in New Issue
Block a user