mirror of
https://github.com/overleaf/toolkit.git
synced 2025-04-19 23:38:06 +02:00
Add new example configs
This commit is contained in:
parent
2030b1f859
commit
dad12ec17d
6 changed files with 166 additions and 0 deletions
22
examples/docker-compose.base.yml
Normal file
22
examples/docker-compose.base.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
||||
# #
|
||||
# NOTE: This file is generated by the init tool, and should not #
|
||||
# be edited manually. #
|
||||
# #
|
||||
# Local configuration and environment should be set #
|
||||
# in local.yml #
|
||||
# #
|
||||
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
||||
---
|
||||
version: '2.2'
|
||||
services:
|
||||
|
||||
sharelatex:
|
||||
restart: always
|
||||
image: "${RC_IMAGE}"
|
||||
container_name: sharelatex
|
||||
volumes:
|
||||
- "${RC_SHARELATEX_DATA_PATH}:/var/lib/sharelatex"
|
||||
ports:
|
||||
- 80:80
|
||||
env_file: ./variables.env
|
24
examples/docker-compose.mongo.yml
Normal file
24
examples/docker-compose.mongo.yml
Normal file
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
version: '2.2'
|
||||
services:
|
||||
|
||||
mongo:
|
||||
restart: always
|
||||
image: "${RC_MONGO_IMAGE}"
|
||||
container_name: mongo
|
||||
volumes:
|
||||
- "${RC_MONGO_DATA_PATH}:/data/db"
|
||||
expose:
|
||||
- 27017
|
||||
healthcheck:
|
||||
test: echo 'db.stats().ok' | mongo localhost:27017/test --quiet
|
||||
interval: 10s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
|
||||
sharelatex:
|
||||
depends_on:
|
||||
mongo:
|
||||
condition: service_healthy
|
||||
links:
|
||||
- mongo
|
19
examples/docker-compose.redis.yml
Normal file
19
examples/docker-compose.redis.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
version: '2.2'
|
||||
services:
|
||||
|
||||
redis:
|
||||
restart: always
|
||||
image: "${RC_REDIS_IMAGE}"
|
||||
volumes:
|
||||
- "${RC_REDIS_DATA_PATH}:/data"
|
||||
container_name: redis
|
||||
expose:
|
||||
- 6379
|
||||
|
||||
sharelatex:
|
||||
depends_on:
|
||||
redis:
|
||||
condition: service_started
|
||||
links:
|
||||
- redis
|
6
examples/docker-compose.sibling-containers.yml
Normal file
6
examples/docker-compose.sibling-containers.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
version: '2.2'
|
||||
services:
|
||||
sharelatex:
|
||||
volumes:
|
||||
- "${RC_DOCKER_SOCKET_PATH}:/var/run/docker.sock"
|
21
examples/overleaf.rc
Normal file
21
examples/overleaf.rc
Normal file
|
@ -0,0 +1,21 @@
|
|||
#### Overleaf RC ####
|
||||
|
||||
PROJECT_NAME=overleaf
|
||||
|
||||
# Sharelatex container
|
||||
IMAGE=sharelatex/sharelatex
|
||||
SHARELATEX_DATA_PATH=../data/sharelatex
|
||||
|
||||
# Sibling Containers
|
||||
SIBLING_CONTAINERS_ENABLED=false
|
||||
DOCKER_SOCKET_PATH=/var/run/docker.sock
|
||||
|
||||
# Mongo configuration
|
||||
MONGO_ENABLED=true
|
||||
MONGO_IMAGE=mongo:3.6
|
||||
MONGO_DATA_PATH=../data/mongo
|
||||
|
||||
# Redis configuration
|
||||
REDIS_ENABLED=true
|
||||
REDIS_IMAGE=redis:5.0.0
|
||||
REDIS_DATA_PATH=../data/redis
|
74
examples/variables.env
Normal file
74
examples/variables.env
Normal file
|
@ -0,0 +1,74 @@
|
|||
SHARELATEX_APP_NAME=Overleaf Community Edition XYZ
|
||||
|
||||
SHARELATEX_MONGO_URL=mongodb://mongo/sharelatex
|
||||
|
||||
# Same property, unfortunately with different names in
|
||||
# different locations
|
||||
SHARELATEX_REDIS_HOST=redis
|
||||
REDIS_HOST=redis
|
||||
|
||||
ENABLED_LINKED_FILE_TYPES=url,project_file
|
||||
|
||||
# Enables Thumbnail generation using ImageMagick
|
||||
ENABLE_CONVERSIONS=true
|
||||
|
||||
# Disables email confirmation requirement
|
||||
EMAIL_CONFIRMATION_DISABLED=true
|
||||
|
||||
# temporary fix for LuaLaTex compiles
|
||||
# see https://github.com/overleaf/overleaf/issues/695
|
||||
TEXMFVAR=/var/lib/sharelatex/tmp/texmf-var
|
||||
|
||||
## Set for SSL via nginx-proxy
|
||||
#VIRTUAL_HOST=103.112.212.22
|
||||
|
||||
# SHARELATEX_SITE_URL=http://sharelatex.mydomain.com
|
||||
# SHARELATEX_NAV_TITLE=Our ShareLaTeX Instance
|
||||
# SHARELATEX_HEADER_IMAGE_URL=http://somewhere.com/mylogo.png
|
||||
# SHARELATEX_ADMIN_EMAIL=support@it.com
|
||||
|
||||
# SHARELATEX_LEFT_FOOTER=[{"text"="Powered by <a href=\"https://www.sharelatex.com\">ShareLaTeX</a> 2016"},{"text"="Another page I want to link to can be found <a href=\"here\">here</a>"} ]
|
||||
# SHARELATEX_RIGHT_FOOTER=[{"text"="Hello I am on the Right"} ]
|
||||
|
||||
# SHARELATEX_EMAIL_FROM_ADDRESS=team@sharelatex.com
|
||||
|
||||
# SHARELATEX_EMAIL_AWS_SES_ACCESS_KEY_ID=
|
||||
# SHARELATEX_EMAIL_AWS_SES_SECRET_KEY=
|
||||
|
||||
# SHARELATEX_EMAIL_SMTP_HOST=smtp.mydomain.com
|
||||
# SHARELATEX_EMAIL_SMTP_PORT=587
|
||||
# SHARELATEX_EMAIL_SMTP_SECURE=false
|
||||
# SHARELATEX_EMAIL_SMTP_USER=
|
||||
# SHARELATEX_EMAIL_SMTP_PASS=
|
||||
# SHARELATEX_EMAIL_SMTP_TLS_REJECT_UNAUTH=true
|
||||
# SHARELATEX_EMAIL_SMTP_IGNORE_TLS=false
|
||||
# SHARELATEX_CUSTOM_EMAIL_FOOTER=<div>This system is run by department x </div>
|
||||
|
||||
################
|
||||
## Server Pro ##
|
||||
################
|
||||
|
||||
# SANDBOXED_COMPILES=true
|
||||
|
||||
# SANDBOXED_COMPILES_SIBLING_CONTAINERS=true
|
||||
# SANDBOXED_COMPILES_HOST_DIR=/var/sharelatex_data/data/compiles
|
||||
# SYNCTEX_BIN_HOST_PATH=/var/sharelatex_data/bin/synctex
|
||||
|
||||
# DOCKER_RUNNER=false
|
||||
|
||||
## Works with test LDAP server shown at bottom of docker compose
|
||||
# SHARELATEX_LDAP_URL=ldap://ldap:389
|
||||
# SHARELATEX_LDAP_SEARCH_BASE=ou=people,dc=planetexpress,dc=com
|
||||
# SHARELATEX_LDAP_SEARCH_FILTER=(uid={{username}})
|
||||
# SHARELATEX_LDAP_BIND_DN=cn=admin,dc=planetexpress,dc=com
|
||||
# SHARELATEX_LDAP_BIND_CREDENTIALS=GoodNewsEveryone
|
||||
# SHARELATEX_LDAP_EMAIL_ATT=mail
|
||||
# SHARELATEX_LDAP_NAME_ATT=cn
|
||||
# SHARELATEX_LDAP_LAST_NAME_ATT=sn
|
||||
# SHARELATEX_LDAP_UPDATE_USER_DETAILS_ON_LOGIN=true
|
||||
|
||||
# SHARELATEX_TEMPLATES_USER_ID=578773160210479700917ee5
|
||||
# SHARELATEX_NEW_PROJECT_TEMPLATE_LINKS=[ {"name":"All Templates","url":"/templates/all"}]
|
||||
|
||||
|
||||
# SHARELATEX_PROXY_LEARN="true"
|
Loading…
Add table
Add a link
Reference in a new issue