2019-09-11 08:07:26 -04:00
|
|
|
version: '2.2'
|
2016-06-30 11:35:23 -04:00
|
|
|
services:
|
|
|
|
sharelatex:
|
|
|
|
restart: always
|
2019-11-21 06:16:29 -05:00
|
|
|
# Server Pro users:
|
2019-10-18 09:41:28 -04:00
|
|
|
# image: quay.io/sharelatex/sharelatex-pro
|
2016-06-30 11:35:23 -04:00
|
|
|
image: sharelatex/sharelatex
|
|
|
|
container_name: sharelatex
|
|
|
|
depends_on:
|
2019-09-11 08:07:26 -04:00
|
|
|
mongo:
|
|
|
|
condition: service_healthy
|
|
|
|
redis:
|
|
|
|
condition: service_started
|
2016-06-30 11:35:23 -04:00
|
|
|
ports:
|
|
|
|
- 80:80
|
2023-02-13 08:41:22 -05:00
|
|
|
stop_grace_period: 60s
|
2016-06-30 11:35:23 -04:00
|
|
|
volumes:
|
2024-02-09 10:52:24 -05:00
|
|
|
- ~/sharelatex_data:/var/lib/overleaf
|
2020-02-20 10:09:00 -05:00
|
|
|
########################################################################
|
2021-03-02 04:35:40 -05:00
|
|
|
#### Server Pro: Uncomment the following line to mount the docker ####
|
2020-02-20 10:09:00 -05:00
|
|
|
#### socket, required for Sibling Containers to work ####
|
|
|
|
########################################################################
|
|
|
|
# - /var/run/docker.sock:/var/run/docker.sock
|
2016-06-30 11:35:23 -04:00
|
|
|
environment:
|
2019-09-06 04:47:14 -04:00
|
|
|
|
2024-01-29 06:41:12 -05:00
|
|
|
OVERLEAF_APP_NAME: Overleaf Community Edition
|
2019-09-06 04:47:14 -04:00
|
|
|
|
2024-01-29 06:41:12 -05:00
|
|
|
OVERLEAF_MONGO_URL: mongodb://mongo/sharelatex
|
2019-09-06 04:47:14 -04:00
|
|
|
|
|
|
|
# Same property, unfortunately with different names in
|
|
|
|
# different locations
|
2024-01-29 06:41:12 -05:00
|
|
|
OVERLEAF_REDIS_HOST: redis
|
2019-09-06 04:47:14 -04:00
|
|
|
REDIS_HOST: redis
|
|
|
|
|
2021-08-11 04:49:52 -04:00
|
|
|
ENABLED_LINKED_FILE_TYPES: 'project_file,project_output_file'
|
2019-09-06 04:47:14 -04:00
|
|
|
|
2019-09-11 07:08:02 -04:00
|
|
|
# Enables Thumbnail generation using ImageMagick
|
|
|
|
ENABLE_CONVERSIONS: 'true'
|
2020-05-25 09:16:18 -04:00
|
|
|
|
2020-01-08 04:03:59 -05:00
|
|
|
# Disables email confirmation requirement
|
|
|
|
EMAIL_CONFIRMATION_DISABLED: 'true'
|
2019-09-11 07:08:02 -04:00
|
|
|
|
2020-04-22 04:34:47 -04:00
|
|
|
# temporary fix for LuaLaTex compiles
|
|
|
|
# see https://github.com/overleaf/overleaf/issues/695
|
2024-02-09 10:52:24 -05:00
|
|
|
TEXMFVAR: /var/lib/overleaf/tmp/texmf-var
|
2020-04-22 04:34:47 -04:00
|
|
|
|
2018-02-27 05:15:42 -05:00
|
|
|
## Set for SSL via nginx-proxy
|
2016-07-18 11:11:04 -04:00
|
|
|
#VIRTUAL_HOST: 103.112.212.22
|
2016-07-18 11:08:33 -04:00
|
|
|
|
2024-01-29 06:41:12 -05:00
|
|
|
# OVERLEAF_SITE_URL: http://overleaf.example.com
|
|
|
|
# OVERLEAF_NAV_TITLE: Overleaf Community Edition
|
|
|
|
# OVERLEAF_HEADER_IMAGE_URL: http://example.com/mylogo.png
|
|
|
|
# OVERLEAF_ADMIN_EMAIL: support@it.com
|
2016-07-18 11:08:33 -04:00
|
|
|
|
2024-01-29 06:41:12 -05:00
|
|
|
# OVERLEAF_LEFT_FOOTER: '[{"text": "Another page I want to link to can be found <a href=\"here\">here</a>"} ]'
|
|
|
|
# OVERLEAF_RIGHT_FOOTER: '[{"text": "Hello I am on the Right"} ]'
|
2016-07-18 11:08:33 -04:00
|
|
|
|
2024-01-29 06:41:12 -05:00
|
|
|
# OVERLEAF_EMAIL_FROM_ADDRESS: "hello@example.com"
|
2016-07-18 11:08:33 -04:00
|
|
|
|
2024-01-29 06:41:12 -05:00
|
|
|
# OVERLEAF_EMAIL_AWS_SES_ACCESS_KEY_ID:
|
|
|
|
# OVERLEAF_EMAIL_AWS_SES_SECRET_KEY:
|
2016-07-18 11:08:33 -04:00
|
|
|
|
2024-01-29 06:41:12 -05:00
|
|
|
# OVERLEAF_EMAIL_SMTP_HOST: smtp.example.com
|
|
|
|
# OVERLEAF_EMAIL_SMTP_PORT: 587
|
|
|
|
# OVERLEAF_EMAIL_SMTP_SECURE: false
|
|
|
|
# OVERLEAF_EMAIL_SMTP_USER:
|
|
|
|
# OVERLEAF_EMAIL_SMTP_PASS:
|
|
|
|
# OVERLEAF_EMAIL_SMTP_TLS_REJECT_UNAUTH: true
|
|
|
|
# OVERLEAF_EMAIL_SMTP_IGNORE_TLS: false
|
|
|
|
# OVERLEAF_EMAIL_SMTP_NAME: '127.0.0.1'
|
|
|
|
# OVERLEAF_EMAIL_SMTP_LOGGER: true
|
|
|
|
# OVERLEAF_CUSTOM_EMAIL_FOOTER: "This system is run by department x"
|
2016-07-18 11:08:33 -04:00
|
|
|
|
2023-05-09 14:03:46 -04:00
|
|
|
# ENABLE_CRON_RESOURCE_DELETION: true
|
|
|
|
|
2016-07-18 11:08:33 -04:00
|
|
|
################
|
|
|
|
## Server Pro ##
|
|
|
|
################
|
|
|
|
|
2024-08-28 07:29:49 -04:00
|
|
|
## Sandboxed Compiles: https://github.com/overleaf/overleaf/wiki/Server-Pro:-Sandboxed-Compiles
|
|
|
|
SANDBOXED_COMPILES: 'true'
|
|
|
|
SANDBOXED_COMPILES_SIBLING_CONTAINERS: 'true'
|
|
|
|
### Bind-mount source for /var/lib/overleaf/data/compiles inside the container.
|
|
|
|
SANDBOXED_COMPILES_HOST_DIR: '/home/user/sharelatex_data/data/compiles'
|
2019-09-06 04:47:14 -04:00
|
|
|
|
2018-02-27 05:15:42 -05:00
|
|
|
## Works with test LDAP server shown at bottom of docker compose
|
2024-01-29 06:46:02 -05:00
|
|
|
# OVERLEAF_LDAP_URL: 'ldap://ldap:389'
|
|
|
|
# OVERLEAF_LDAP_SEARCH_BASE: 'ou=people,dc=planetexpress,dc=com'
|
|
|
|
# OVERLEAF_LDAP_SEARCH_FILTER: '(uid={{username}})'
|
|
|
|
# OVERLEAF_LDAP_BIND_DN: 'cn=admin,dc=planetexpress,dc=com'
|
|
|
|
# OVERLEAF_LDAP_BIND_CREDENTIALS: 'GoodNewsEveryone'
|
|
|
|
# OVERLEAF_LDAP_EMAIL_ATT: 'mail'
|
|
|
|
# OVERLEAF_LDAP_NAME_ATT: 'cn'
|
|
|
|
# OVERLEAF_LDAP_LAST_NAME_ATT: 'sn'
|
|
|
|
# OVERLEAF_LDAP_UPDATE_USER_DETAILS_ON_LOGIN: 'true'
|
2016-07-18 11:08:33 -04:00
|
|
|
|
2024-01-29 06:41:12 -05:00
|
|
|
# OVERLEAF_TEMPLATES_USER_ID: "578773160210479700917ee5"
|
|
|
|
# OVERLEAF_NEW_PROJECT_TEMPLATE_LINKS: '[ {"name":"All Templates","url":"/templates/all"}]'
|
2019-09-06 04:47:14 -04:00
|
|
|
|
2016-07-18 11:08:33 -04:00
|
|
|
|
2024-01-29 06:41:12 -05:00
|
|
|
# OVERLEAF_PROXY_LEARN: "true"
|
2016-06-30 11:35:23 -04:00
|
|
|
|
|
|
|
mongo:
|
|
|
|
restart: always
|
2024-01-26 05:16:08 -05:00
|
|
|
image: mongo:5.0
|
2016-06-30 11:35:23 -04:00
|
|
|
container_name: mongo
|
2024-10-02 10:09:03 -04:00
|
|
|
command: '--replSet overleaf'
|
2016-06-30 11:35:23 -04:00
|
|
|
volumes:
|
|
|
|
- ~/mongo_data:/data/db
|
2024-10-02 10:09:03 -04:00
|
|
|
- ./mongodb-init-replica-set.js:/docker-entrypoint-initdb.d/mongodb-init-replica-set.js
|
|
|
|
environment:
|
|
|
|
MONGO_INITDB_DATABASE: sharelatex
|
|
|
|
extra_hosts:
|
|
|
|
# Required when using the automatic database setup for initializing the replica set.
|
|
|
|
# This override is not needed when running the setup after starting up mongo.
|
|
|
|
- mongo:127.0.0.1
|
2019-09-11 08:07:26 -04:00
|
|
|
healthcheck:
|
|
|
|
test: echo 'db.stats().ok' | mongo localhost:27017/test --quiet
|
|
|
|
interval: 10s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 5
|
2016-06-30 11:35:23 -04:00
|
|
|
|
|
|
|
redis:
|
|
|
|
restart: always
|
2023-05-18 09:29:21 -04:00
|
|
|
image: redis:6.2
|
2016-06-30 11:35:23 -04:00
|
|
|
container_name: redis
|
|
|
|
volumes:
|
2016-07-18 11:08:33 -04:00
|
|
|
- ~/redis_data:/data
|
2018-02-27 05:15:42 -05:00
|
|
|
|
|
|
|
# ldap:
|
|
|
|
# restart: always
|
|
|
|
# image: rroemhild/test-openldap
|
|
|
|
# container_name: ldap
|
2020-04-22 04:34:47 -04:00
|
|
|
|
2019-11-22 08:03:59 -05: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 04:34:47 -04:00
|
|
|
|
2019-11-22 08:03:59 -05:00
|
|
|
# nginx-proxy:
|
|
|
|
# image: jwilder/nginx-proxy
|
|
|
|
# container_name: nginx-proxy
|
|
|
|
# ports:
|
2024-10-02 10:09:03 -04:00
|
|
|
# - "80:80"
|
2019-11-22 08:03:59 -05:00
|
|
|
# - "443:443"
|
|
|
|
# volumes:
|
|
|
|
# - /var/run/docker.sock:/tmp/docker.sock:ro
|
2024-02-09 10:52:24 -05:00
|
|
|
# - /home/overleaf/tmp:/etc/nginx/certs
|