2023-02-15 21:45:31 +00:00
|
|
|
version: '2.2'
|
|
|
|
services:
|
|
|
|
sharelatex:
|
|
|
|
restart: always
|
|
|
|
image: sharelatex/sharelatex
|
|
|
|
container_name: sharelatex
|
|
|
|
depends_on:
|
|
|
|
mongo:
|
|
|
|
condition: service_healthy
|
|
|
|
redis:
|
|
|
|
condition: service_started
|
|
|
|
ports:
|
|
|
|
- 8888:80
|
|
|
|
links:
|
|
|
|
- mongo
|
|
|
|
- redis
|
2024-02-15 11:27:45 +00:00
|
|
|
stop_grace_period: 60s
|
2023-02-15 21:45:31 +00:00
|
|
|
volumes:
|
2024-02-15 11:27:45 +00:00
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/sharelatex/data:/var/lib/overleaf
|
2023-02-15 21:45:31 +00:00
|
|
|
########################################################################
|
|
|
|
#### Server Pro: Uncomment the following line to mount the docker ####
|
|
|
|
#### socket, required for Sibling Containers to work ####
|
|
|
|
########################################################################
|
|
|
|
# - /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
environment:
|
|
|
|
|
2024-02-15 11:27:45 +00:00
|
|
|
OVERLEAF_APP_NAME: Overleaf Community Edition
|
|
|
|
OVERLEAF_MONGO_URL: mongodb://mongo/sharelatex
|
2023-02-15 21:45:31 +00:00
|
|
|
|
|
|
|
# Same property, unfortunately with different names in
|
|
|
|
# different locations
|
2024-02-15 11:27:45 +00:00
|
|
|
OVERLEAF_REDIS_HOST: redis
|
2023-02-15 21:45:31 +00:00
|
|
|
REDIS_HOST: redis
|
|
|
|
|
|
|
|
ENABLED_LINKED_FILE_TYPES: 'project_file,project_output_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
|
|
|
|
|
2024-02-15 11:27:45 +00: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
|
2023-02-15 21:45:31 +00:00
|
|
|
|
2024-02-15 11:27:45 +00: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"} ]'
|
2023-02-15 21:45:31 +00:00
|
|
|
|
2024-02-15 11:27:45 +00:00
|
|
|
# OVERLEAF_EMAIL_FROM_ADDRESS: "hello@example.com"
|
2023-02-15 21:45:31 +00:00
|
|
|
|
2024-02-15 11:27:45 +00:00
|
|
|
# OVERLEAF_EMAIL_AWS_SES_ACCESS_KEY_ID:
|
|
|
|
# OVERLEAF_EMAIL_AWS_SES_SECRET_KEY:
|
2023-02-15 21:45:31 +00:00
|
|
|
|
2024-02-15 11:27:45 +00: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"
|
|
|
|
|
|
|
|
# ENABLE_CRON_RESOURCE_DELETION: true
|
2023-02-15 21:45:31 +00:00
|
|
|
|
|
|
|
################
|
|
|
|
## Server Pro ##
|
|
|
|
################
|
|
|
|
|
|
|
|
# SANDBOXED_COMPILES: 'true'
|
|
|
|
|
|
|
|
# SANDBOXED_COMPILES_SIBLING_CONTAINERS: 'true'
|
|
|
|
# SANDBOXED_COMPILES_HOST_DIR: '/var/sharelatex_data/data/compiles'
|
|
|
|
|
|
|
|
# DOCKER_RUNNER: 'false'
|
|
|
|
|
|
|
|
## Works with test LDAP server shown at bottom of docker compose
|
2024-02-15 11:27:45 +00: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'
|
2023-02-15 21:45:31 +00:00
|
|
|
|
2024-02-15 11:27:45 +00:00
|
|
|
# OVERLEAF_TEMPLATES_USER_ID: "578773160210479700917ee5"
|
|
|
|
# OVERLEAF_NEW_PROJECT_TEMPLATE_LINKS: '[ {"name":"All Templates","url":"/templates/all"}]'
|
2023-02-15 21:45:31 +00:00
|
|
|
|
|
|
|
|
2024-02-15 11:27:45 +00:00
|
|
|
# OVERLEAF_PROXY_LEARN: "true"
|
2023-02-15 21:45:31 +00:00
|
|
|
|
|
|
|
mongo:
|
|
|
|
restart: always
|
2024-02-15 11:27:45 +00:00
|
|
|
image: mongo:5.0
|
2023-02-15 21:45:31 +00:00
|
|
|
container_name: sharelatex-mongo
|
|
|
|
expose:
|
|
|
|
- 27017
|
|
|
|
volumes:
|
2023-02-25 13:09:52 +00:00
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/sharelatex/mongo:/data/db
|
2023-02-15 21:45:31 +00:00
|
|
|
healthcheck:
|
|
|
|
test: echo 'db.stats().ok' | mongo localhost:27017/test --quiet
|
|
|
|
interval: 10s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 5
|
|
|
|
|
|
|
|
redis:
|
|
|
|
restart: always
|
2024-10-01 08:41:32 +00:00
|
|
|
image: redis:7-alpine
|
2023-02-15 21:45:31 +00:00
|
|
|
container_name: sharelatex-redis
|
|
|
|
expose:
|
|
|
|
- 6379
|
|
|
|
volumes:
|
2023-02-25 13:09:52 +00:00
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/sharelatex/redis:/data
|