docker-compose.yml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. version: '2.2'
  2. services:
  3. sharelatex:
  4. restart: always
  5. # Server Pro users:
  6. # image: quay.io/sharelatex/sharelatex-pro
  7. image: sharelatex/sharelatex
  8. container_name: sharelatex
  9. depends_on:
  10. mongo:
  11. condition: service_healthy
  12. redis:
  13. condition: service_started
  14. ports:
  15. - 80:80
  16. links:
  17. - mongo
  18. - redis
  19. stop_grace_period: 60s
  20. volumes:
  21. - ~/sharelatex_data:/var/lib/overleaf
  22. ########################################################################
  23. #### Server Pro: Uncomment the following line to mount the docker ####
  24. #### socket, required for Sibling Containers to work ####
  25. ########################################################################
  26. # - /var/run/docker.sock:/var/run/docker.sock
  27. environment:
  28. OVERLEAF_APP_NAME: Overleaf Community Edition
  29. OVERLEAF_MONGO_URL: mongodb://mongo/sharelatex
  30. # Same property, unfortunately with different names in
  31. # different locations
  32. OVERLEAF_REDIS_HOST: redis
  33. REDIS_HOST: redis
  34. ENABLED_LINKED_FILE_TYPES: 'project_file,project_output_file'
  35. # Enables Thumbnail generation using ImageMagick
  36. ENABLE_CONVERSIONS: 'true'
  37. # Disables email confirmation requirement
  38. EMAIL_CONFIRMATION_DISABLED: 'true'
  39. # temporary fix for LuaLaTex compiles
  40. # see https://github.com/overleaf/overleaf/issues/695
  41. TEXMFVAR: /var/lib/overleaf/tmp/texmf-var
  42. ## Set for SSL via nginx-proxy
  43. #VIRTUAL_HOST: 103.112.212.22
  44. # OVERLEAF_SITE_URL: http://overleaf.example.com
  45. # OVERLEAF_NAV_TITLE: Overleaf Community Edition
  46. # OVERLEAF_HEADER_IMAGE_URL: http://example.com/mylogo.png
  47. # OVERLEAF_ADMIN_EMAIL: support@it.com
  48. # OVERLEAF_LEFT_FOOTER: '[{"text": "Another page I want to link to can be found <a href=\"here\">here</a>"} ]'
  49. # OVERLEAF_RIGHT_FOOTER: '[{"text": "Hello I am on the Right"} ]'
  50. # OVERLEAF_EMAIL_FROM_ADDRESS: "hello@example.com"
  51. # OVERLEAF_EMAIL_AWS_SES_ACCESS_KEY_ID:
  52. # OVERLEAF_EMAIL_AWS_SES_SECRET_KEY:
  53. # OVERLEAF_EMAIL_SMTP_HOST: smtp.example.com
  54. # OVERLEAF_EMAIL_SMTP_PORT: 587
  55. # OVERLEAF_EMAIL_SMTP_SECURE: false
  56. # OVERLEAF_EMAIL_SMTP_USER:
  57. # OVERLEAF_EMAIL_SMTP_PASS:
  58. # OVERLEAF_EMAIL_SMTP_TLS_REJECT_UNAUTH: true
  59. # OVERLEAF_EMAIL_SMTP_IGNORE_TLS: false
  60. # OVERLEAF_EMAIL_SMTP_NAME: '127.0.0.1'
  61. # OVERLEAF_EMAIL_SMTP_LOGGER: true
  62. # OVERLEAF_CUSTOM_EMAIL_FOOTER: "This system is run by department x"
  63. # ENABLE_CRON_RESOURCE_DELETION: true
  64. ################
  65. ## Server Pro ##
  66. ################
  67. ## Sandboxed Compiles: https://github.com/overleaf/overleaf/wiki/Server-Pro:-Sandboxed-Compiles
  68. SANDBOXED_COMPILES: 'true'
  69. SANDBOXED_COMPILES_SIBLING_CONTAINERS: 'true'
  70. ### Bind-mount source for /var/lib/overleaf/data/compiles inside the container.
  71. SANDBOXED_COMPILES_HOST_DIR: '/home/user/sharelatex_data/data/compiles'
  72. ## Works with test LDAP server shown at bottom of docker compose
  73. # OVERLEAF_LDAP_URL: 'ldap://ldap:389'
  74. # OVERLEAF_LDAP_SEARCH_BASE: 'ou=people,dc=planetexpress,dc=com'
  75. # OVERLEAF_LDAP_SEARCH_FILTER: '(uid={{username}})'
  76. # OVERLEAF_LDAP_BIND_DN: 'cn=admin,dc=planetexpress,dc=com'
  77. # OVERLEAF_LDAP_BIND_CREDENTIALS: 'GoodNewsEveryone'
  78. # OVERLEAF_LDAP_EMAIL_ATT: 'mail'
  79. # OVERLEAF_LDAP_NAME_ATT: 'cn'
  80. # OVERLEAF_LDAP_LAST_NAME_ATT: 'sn'
  81. # OVERLEAF_LDAP_UPDATE_USER_DETAILS_ON_LOGIN: 'true'
  82. # OVERLEAF_TEMPLATES_USER_ID: "578773160210479700917ee5"
  83. # OVERLEAF_NEW_PROJECT_TEMPLATE_LINKS: '[ {"name":"All Templates","url":"/templates/all"}]'
  84. # OVERLEAF_PROXY_LEARN: "true"
  85. mongo:
  86. restart: always
  87. image: mongo:5.0
  88. container_name: mongo
  89. expose:
  90. - 27017
  91. volumes:
  92. - ~/mongo_data:/data/db
  93. healthcheck:
  94. test: echo 'db.stats().ok' | mongo localhost:27017/test --quiet
  95. interval: 10s
  96. timeout: 10s
  97. retries: 5
  98. redis:
  99. restart: always
  100. image: redis:6.2
  101. container_name: redis
  102. expose:
  103. - 6379
  104. volumes:
  105. - ~/redis_data:/data
  106. # ldap:
  107. # restart: always
  108. # image: rroemhild/test-openldap
  109. # container_name: ldap
  110. # expose:
  111. # - 389
  112. # See https://github.com/jwilder/nginx-proxy for documentation on how to configure the nginx-proxy container,
  113. # and https://github.com/overleaf/overleaf/wiki/HTTPS-reverse-proxy-using-Nginx for an example of some recommended
  114. # settings. We recommend using a properly managed nginx instance outside of the Overleaf Server Pro setup,
  115. # but the example here can be used if you'd prefer to run everything with docker-compose
  116. # nginx-proxy:
  117. # image: jwilder/nginx-proxy
  118. # container_name: nginx-proxy
  119. # ports:
  120. # #- "80:80"
  121. # - "443:443"
  122. # volumes:
  123. # - /var/run/docker.sock:/tmp/docker.sock:ro
  124. # - /home/overleaf/tmp:/etc/nginx/certs