docker-compose.yml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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: 'true'
  68. # SANDBOXED_COMPILES_SIBLING_CONTAINERS: 'true'
  69. # SANDBOXED_COMPILES_HOST_DIR: '/var/sharelatex_data/data/compiles'
  70. # DOCKER_RUNNER: 'false'
  71. ## Works with test LDAP server shown at bottom of docker compose
  72. # OVERLEAF_LDAP_URL: 'ldap://ldap:389'
  73. # OVERLEAF_LDAP_SEARCH_BASE: 'ou=people,dc=planetexpress,dc=com'
  74. # OVERLEAF_LDAP_SEARCH_FILTER: '(uid={{username}})'
  75. # OVERLEAF_LDAP_BIND_DN: 'cn=admin,dc=planetexpress,dc=com'
  76. # OVERLEAF_LDAP_BIND_CREDENTIALS: 'GoodNewsEveryone'
  77. # OVERLEAF_LDAP_EMAIL_ATT: 'mail'
  78. # OVERLEAF_LDAP_NAME_ATT: 'cn'
  79. # OVERLEAF_LDAP_LAST_NAME_ATT: 'sn'
  80. # OVERLEAF_LDAP_UPDATE_USER_DETAILS_ON_LOGIN: 'true'
  81. # OVERLEAF_TEMPLATES_USER_ID: "578773160210479700917ee5"
  82. # OVERLEAF_NEW_PROJECT_TEMPLATE_LINKS: '[ {"name":"All Templates","url":"/templates/all"}]'
  83. # OVERLEAF_PROXY_LEARN: "true"
  84. mongo:
  85. restart: always
  86. image: mongo:5.0
  87. container_name: mongo
  88. expose:
  89. - 27017
  90. volumes:
  91. - ~/mongo_data:/data/db
  92. healthcheck:
  93. test: echo 'db.stats().ok' | mongo localhost:27017/test --quiet
  94. interval: 10s
  95. timeout: 10s
  96. retries: 5
  97. redis:
  98. restart: always
  99. image: redis:6.2
  100. container_name: redis
  101. expose:
  102. - 6379
  103. volumes:
  104. - ~/redis_data:/data
  105. # ldap:
  106. # restart: always
  107. # image: rroemhild/test-openldap
  108. # container_name: ldap
  109. # expose:
  110. # - 389
  111. # See https://github.com/jwilder/nginx-proxy for documentation on how to configure the nginx-proxy container,
  112. # and https://github.com/overleaf/overleaf/wiki/HTTPS-reverse-proxy-using-Nginx for an example of some recommended
  113. # settings. We recommend using a properly managed nginx instance outside of the Overleaf Server Pro setup,
  114. # but the example here can be used if you'd prefer to run everything with docker-compose
  115. # nginx-proxy:
  116. # image: jwilder/nginx-proxy
  117. # container_name: nginx-proxy
  118. # ports:
  119. # #- "80:80"
  120. # - "443:443"
  121. # volumes:
  122. # - /var/run/docker.sock:/tmp/docker.sock:ro
  123. # - /home/overleaf/tmp:/etc/nginx/certs