mirror of
https://github.com/overleaf/toolkit.git
synced 2025-04-19 15:28:06 +02:00
Add SHARELATEX_PORT option, default to 80
This allows a user to configure the host port that the sharelatex container will bind to. Previously this was hard-coded to port 80, which can cause problems on systems with something already bound to that port.
This commit is contained in:
parent
8a382698fb
commit
3fda5d0ae0
3 changed files with 3 additions and 1 deletions
|
@ -84,6 +84,7 @@ function __main__() {
|
|||
# Export vars for use in docker-compose files
|
||||
export IMAGE="$full_image_spec"
|
||||
export SHARELATEX_DATA_PATH
|
||||
export SHARELATEX_PORT
|
||||
export DOCKER_SOCKET_PATH
|
||||
export MONGO_IMAGE
|
||||
export MONGO_DATA_PATH
|
||||
|
|
|
@ -5,6 +5,7 @@ PROJECT_NAME=overleaf
|
|||
# Sharelatex container
|
||||
SHARELATEX_DATA_PATH=data/sharelatex
|
||||
SERVER_PRO=false
|
||||
SHARELATEX_PORT=80
|
||||
|
||||
# Sibling Containers
|
||||
SIBLING_CONTAINERS_ENABLED=false
|
||||
|
|
|
@ -9,7 +9,7 @@ services:
|
|||
volumes:
|
||||
- "${SHARELATEX_DATA_PATH}:/var/lib/sharelatex"
|
||||
ports:
|
||||
- 80:80
|
||||
- "${SHARELATEX_PORT:-80}:80"
|
||||
environment:
|
||||
SHARELATEX_MONGO_URL: "${MONGO_URL}"
|
||||
SHARELATEX_REDIS_HOST: "${REDIS_HOST}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue