Commit 0ec3ac85 authored by Nicolas Pernoud's avatar Nicolas Pernoud
Browse files

Merge branch 'development'

parents 92b04d06 b6f26fac
Pipeline #9181 passed with stages
in 3 minutes and 2 seconds
......@@ -57,6 +57,8 @@ Launch `start.sh`.
Alter `.env` and `docker-compose.yml` according to your needs.
Launch with `COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose up`.
A production deployment example is also provided in the production-deployment-example.sh file.
The mock ip geodatabase should be replaced with a real one from maxmind for real usefullness.
## Usage
......
#!/bin/bash
###################################################
### Example production deployment with net host ###
###################################################
WD="$(
cd "$(dirname "$0")"
pwd -P
)"
# Tear down
docker stop vestibule
docker rm vestibule
# Variables
ROOT_DOMAIN=example.com
# Paths
mkdir -p ${WD}/letsencrypt_cache
sudo chown -Rf 1000:1000 ${WD}/letsencrypt_cache
sudo chown -Rf 1000:1000 ${WD}/configs
# Create reverse proxy
docker run -d --name vestibule \
--net host \
-v /etc/localtime:/etc/localtime:ro \
-v /etc/timezone:/etc/timezone:ro \
-v ${WD}/configs:/app/configs \
-v ${WD}/letsencrypt_cache:/app/letsencrypt_cache \
-e REDIRECT_URL=https://${ROOT_DOMAIN}/OAuth2Callback \
-e CLIENT_ID=foo \
-e CLIENT_SECRET=bar \
-e AUTH_URL=http://localhost:8090/auth \
-e TOKEN_URL=http://localhost:8090/token \
-e USERINFO_URL=http://localhost:8090/admininfo \
-e LOGOUT_URL=/ \
-e ADMIN_ROLE=ADMINS \
-e HOSTNAME=${ROOT_DOMAIN} \
-e ONLYOFFICE_TITLE=VestibuleOffice \
-e ONLYOFFICE_SERVER=https://localhost:2443 \
-e INMEMORY_TOKEN_LIFE_DAYS=1 \
nicolaspernoud/vestibule
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment