docker-compose.yml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. volumes:
  2. clsi-cache:
  3. clsi-output:
  4. filestore-public-files:
  5. filestore-template-files:
  6. filestore-uploads:
  7. filestore-user-files:
  8. mongo-data:
  9. redis-data:
  10. sharelatex-data:
  11. web-data:
  12. history-v1-buckets:
  13. services:
  14. chat:
  15. build:
  16. context: ..
  17. dockerfile: services/chat/Dockerfile
  18. env_file:
  19. - dev.env
  20. clsi:
  21. build:
  22. context: ..
  23. dockerfile: services/clsi/Dockerfile
  24. env_file:
  25. - dev.env
  26. environment:
  27. - DOCKER_RUNNER=true
  28. - TEXLIVE_IMAGE=texlive-full # docker build texlive -t texlive-full
  29. - COMPILES_HOST_DIR=${PWD}/compiles
  30. user: root
  31. volumes:
  32. - ${PWD}/compiles:/overleaf/services/clsi/compiles
  33. - ${DOCKER_SOCKET_PATH:-/var/run/docker.sock}:/var/run/docker.sock
  34. - clsi-cache:/overleaf/services/clsi/cache
  35. - clsi-output:/overleaf/services/clsi/output
  36. contacts:
  37. build:
  38. context: ..
  39. dockerfile: services/contacts/Dockerfile
  40. env_file:
  41. - dev.env
  42. docstore:
  43. build:
  44. context: ..
  45. dockerfile: services/docstore/Dockerfile
  46. env_file:
  47. - dev.env
  48. document-updater:
  49. build:
  50. context: ..
  51. dockerfile: services/document-updater/Dockerfile
  52. env_file:
  53. - dev.env
  54. filestore:
  55. build:
  56. context: ..
  57. dockerfile: services/filestore/Dockerfile
  58. env_file:
  59. - dev.env
  60. # environment:
  61. # - ENABLE_CONVERSIONS=true
  62. volumes:
  63. - filestore-public-files:/overleaf/services/filestore/public_files
  64. - filestore-template-files:/overleaf/services/filestore/template_files
  65. - filestore-uploads:/overleaf/services/filestore/uploads
  66. - filestore-user-files:/overleaf/services/filestore/user_files
  67. history-v1:
  68. build:
  69. context: ..
  70. dockerfile: services/history-v1/Dockerfile
  71. env_file:
  72. - dev.env
  73. environment:
  74. OVERLEAF_EDITOR_ANALYTICS_BUCKET: "/buckets/analytics"
  75. OVERLEAF_EDITOR_BLOBS_BUCKET: "/buckets/blobs"
  76. OVERLEAF_EDITOR_CHUNKS_BUCKET: "/buckets/chunks"
  77. OVERLEAF_EDITOR_PROJECT_BLOBS_BUCKET: "/buckets/project_blobs"
  78. OVERLEAF_EDITOR_ZIPS_BUCKET: "/buckets/zips"
  79. PERSISTOR_BACKEND: fs
  80. volumes:
  81. - history-v1-buckets:/buckets
  82. mongo:
  83. image: mongo:6.0
  84. command: --replSet overleaf
  85. ports:
  86. - "127.0.0.1:27017:27017" # for debugging
  87. volumes:
  88. - mongo-data:/data/db
  89. notifications:
  90. build:
  91. context: ..
  92. dockerfile: services/notifications/Dockerfile
  93. env_file:
  94. - dev.env
  95. project-history:
  96. build:
  97. context: ..
  98. dockerfile: services/project-history/Dockerfile
  99. env_file:
  100. - dev.env
  101. real-time:
  102. build:
  103. context: ..
  104. dockerfile: services/real-time/Dockerfile
  105. env_file:
  106. - dev.env
  107. redis:
  108. image: redis:5
  109. ports:
  110. - "127.0.0.1:6379:6379" # for debugging
  111. volumes:
  112. - redis-data:/data
  113. web:
  114. build:
  115. context: ..
  116. dockerfile: services/web/Dockerfile
  117. target: dev
  118. env_file:
  119. - dev.env
  120. environment:
  121. - APP_NAME=Overleaf Community Edition
  122. - ENABLED_LINKED_FILE_TYPES=project_file,project_output_file
  123. - EMAIL_CONFIRMATION_DISABLED=true
  124. - NODE_ENV=development
  125. - OVERLEAF_ALLOW_PUBLIC_ACCESS=true
  126. command: ["node", "app.mjs"]
  127. volumes:
  128. - sharelatex-data:/var/lib/overleaf
  129. - web-data:/overleaf/services/web/data
  130. depends_on:
  131. - mongo
  132. - redis
  133. - chat
  134. - clsi
  135. - contacts
  136. - docstore
  137. - document-updater
  138. - filestore
  139. - history-v1
  140. - notifications
  141. - project-history
  142. - real-time
  143. webpack:
  144. build:
  145. context: ..
  146. dockerfile: services/web/Dockerfile
  147. target: webpack
  148. command: ["npx", "webpack", "serve", "--config", "webpack.config.dev-env.js"]
  149. ports:
  150. - "127.0.0.1:80:3808"
  151. volumes:
  152. - ./webpack.config.dev-env.js:/overleaf/services/web/webpack.config.dev-env.js