2019-09-11 12:07:26 +00:00
version : '2.2'
2016-06-30 15:35:23 +00:00
services :
sharelatex :
restart : always
2019-11-21 11:16:29 +00:00
# Server Pro users:
2019-10-18 13:41:28 +00:00
# image: quay.io/sharelatex/sharelatex-pro
2016-06-30 15:35:23 +00:00
image : sharelatex/sharelatex
container_name : sharelatex
depends_on :
2019-09-11 12:07:26 +00:00
mongo :
condition : service_healthy
redis :
condition : service_started
2016-06-30 15:35:23 +00:00
ports :
- 80 : 80
links :
- mongo
- redis
volumes :
- ~/sharelatex_data:/var/lib/sharelatex
2020-02-20 15:09:00 +00:00
########################################################################
2021-03-02 09:35:40 +00:00
#### Server Pro: Uncomment the following line to mount the docker ####
2020-02-20 15:09:00 +00:00
#### socket, required for Sibling Containers to work ####
########################################################################
# - /var/run/docker.sock:/var/run/docker.sock
2016-06-30 15:35:23 +00:00
environment :
2019-09-06 08:47:14 +00:00
SHARELATEX_APP_NAME : Overleaf Community Edition
2016-06-30 15:35:23 +00:00
SHARELATEX_MONGO_URL : mongodb://mongo/sharelatex
2019-09-06 08:47:14 +00:00
# Same property, unfortunately with different names in
# different locations
2016-06-30 15:35:23 +00:00
SHARELATEX_REDIS_HOST : redis
2019-09-06 08:47:14 +00:00
REDIS_HOST : redis
2021-08-11 08:49:52 +00:00
ENABLED_LINKED_FILE_TYPES : 'project_file,project_output_file'
2019-09-06 08:47:14 +00:00
2019-09-11 11:08:02 +00:00
# Enables Thumbnail generation using ImageMagick
ENABLE_CONVERSIONS : 'true'
2020-05-25 13:16:18 +00:00
2020-01-08 09:03:59 +00:00
# Disables email confirmation requirement
EMAIL_CONFIRMATION_DISABLED : 'true'
2019-09-11 11:08:02 +00:00
2020-04-22 08:34:47 +00:00
# temporary fix for LuaLaTex compiles
# see https://github.com/overleaf/overleaf/issues/695
TEXMFVAR : /var/lib/sharelatex/tmp/texmf-var
2018-02-27 10:15:42 +00:00
## Set for SSL via nginx-proxy
2016-07-18 15:11:04 +00:00
#VIRTUAL_HOST: 103.112.212.22
2016-07-18 15:08:33 +00:00
2016-10-19 11:10:27 +00:00
# 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
2016-07-18 15:08:33 +00:00
# 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"
2019-09-06 08:47:14 +00:00
# SHARELATEX_EMAIL_AWS_SES_ACCESS_KEY_ID:
# SHARELATEX_EMAIL_AWS_SES_SECRET_KEY:
2016-07-18 15:08:33 +00:00
2016-10-19 11:10:27 +00:00
# SHARELATEX_EMAIL_SMTP_HOST: smtp.mydomain.com
2016-07-18 15:08:33 +00:00
# SHARELATEX_EMAIL_SMTP_PORT: 587
2016-10-19 11:10:27 +00:00
# SHARELATEX_EMAIL_SMTP_SECURE: false
2019-09-06 08:47:14 +00:00
# SHARELATEX_EMAIL_SMTP_USER:
# SHARELATEX_EMAIL_SMTP_PASS:
2016-10-19 11:10:27 +00:00
# SHARELATEX_EMAIL_SMTP_TLS_REJECT_UNAUTH: true
# SHARELATEX_EMAIL_SMTP_IGNORE_TLS: false
2021-04-07 13:19:17 +00:00
# SHARELATEX_EMAIL_SMTP_NAME: '127.0.0.1'
# SHARELATEX_EMAIL_SMTP_LOGGER: true
2020-10-09 09:33:06 +00:00
# SHARELATEX_CUSTOM_EMAIL_FOOTER: "This system is run by department x"
2016-07-18 15:08:33 +00:00
################
## Server Pro ##
################
2018-01-25 11:34:29 +00:00
# SANDBOXED_COMPILES: 'true'
2019-09-06 08:47:14 +00:00
2018-01-25 11:34:29 +00:00
# SANDBOXED_COMPILES_SIBLING_CONTAINERS: 'true'
2019-11-21 11:16:29 +00:00
# SANDBOXED_COMPILES_HOST_DIR: '/var/sharelatex_data/data/compiles'
2016-07-18 15:08:33 +00:00
2019-09-06 08:47:14 +00:00
# DOCKER_RUNNER: 'false'
2018-02-27 10:15:42 +00:00
## 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'
2016-07-18 15:08:33 +00:00
# SHARELATEX_TEMPLATES_USER_ID: "578773160210479700917ee5"
2019-09-06 08:47:14 +00:00
# SHARELATEX_NEW_PROJECT_TEMPLATE_LINKS: '[ {"name":"All Templates","url":"/templates/all"}]'
2016-07-18 15:08:33 +00:00
# SHARELATEX_PROXY_LEARN: "true"
2016-06-30 15:35:23 +00:00
mongo :
restart : always
2020-11-19 10:02:21 +00:00
image : mongo:4.0
2016-06-30 15:35:23 +00:00
container_name : mongo
expose :
- 27017
volumes :
- ~/mongo_data:/data/db
2019-09-11 12:07:26 +00:00
healthcheck :
test : echo 'db.stats().ok' | mongo localhost:27017/test --quiet
interval : 10s
timeout : 10s
retries : 5
2016-06-30 15:35:23 +00:00
redis :
restart : always
2020-05-29 13:07:51 +00:00
image : redis:5
2016-06-30 15:35:23 +00:00
container_name : redis
expose :
- 6379
volumes :
2016-07-18 15:08:33 +00:00
- ~/redis_data:/data
2018-02-27 10:15:42 +00:00
# ldap:
# restart: always
# image: rroemhild/test-openldap
# container_name: ldap
# expose:
# - 389
2020-04-22 08:34:47 +00:00
2019-11-22 13:03:59 +00:00
# See https://github.com/jwilder/nginx-proxy for documentation on how to configure the nginx-proxy container,
# and https://github.com/overleaf/overleaf/wiki/HTTPS-reverse-proxy-using-Nginx for an example of some recommended
# settings. We recommend using a properly managed nginx instance outside of the Overleaf Server Pro setup,
# but the example here can be used if you'd prefer to run everything with docker-compose
2020-04-22 08:34:47 +00:00
2019-11-22 13:03:59 +00:00
# nginx-proxy:
# image: jwilder/nginx-proxy
# container_name: nginx-proxy
# ports:
# #- "80:80"
# - "443:443"
# volumes:
# - /var/run/docker.sock:/tmp/docker.sock:ro
# - /home/sharelatex/tmp:/etc/nginx/certs