docker-compose.yml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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. spelling-cache:
  12. web-data:
  13. history-v1-buckets:
  14. services:
  15. chat:
  16. build:
  17. context: ..
  18. dockerfile: services/chat/Dockerfile
  19. env_file:
  20. - dev.env
  21. clsi:
  22. build:
  23. context: ..
  24. dockerfile: services/clsi/Dockerfile
  25. env_file:
  26. - dev.env
  27. environment:
  28. - DOCKER_RUNNER=true
  29. - TEXLIVE_IMAGE=texlive-full # docker build texlive -t texlive-full
  30. - COMPILES_HOST_DIR=${PWD}/compiles
  31. user: root
  32. volumes:
  33. - ${PWD}/compiles:/overleaf/services/clsi/compiles
  34. - ${DOCKER_SOCKET_PATH:-/var/run/docker.sock}:/var/run/docker.sock
  35. - clsi-cache:/overleaf/services/clsi/cache
  36. - clsi-output:/overleaf/services/clsi/output
  37. contacts:
  38. build:
  39. context: ..
  40. dockerfile: services/contacts/Dockerfile
  41. env_file:
  42. - dev.env
  43. docstore:
  44. build:
  45. context: ..
  46. dockerfile: services/docstore/Dockerfile
  47. env_file:
  48. - dev.env
  49. document-updater:
  50. build:
  51. context: ..
  52. dockerfile: services/document-updater/Dockerfile
  53. env_file:
  54. - dev.env
  55. filestore:
  56. build:
  57. context: ..
  58. dockerfile: services/filestore/Dockerfile
  59. env_file:
  60. - dev.env
  61. # environment:
  62. # - ENABLE_CONVERSIONS=true
  63. volumes:
  64. - filestore-public-files:/overleaf/services/filestore/public_files
  65. - filestore-template-files:/overleaf/services/filestore/template_files
  66. - filestore-uploads:/overleaf/services/filestore/uploads
  67. - filestore-user-files:/overleaf/services/filestore/user_files
  68. history-v1:
  69. build:
  70. context: ..
  71. dockerfile: services/history-v1/Dockerfile
  72. env_file:
  73. - dev.env
  74. environment:
  75. OVERLEAF_EDITOR_ANALYTICS_BUCKET: "/buckets/analytics"
  76. OVERLEAF_EDITOR_BLOBS_BUCKET: "/buckets/blobs"
  77. OVERLEAF_EDITOR_CHUNKS_BUCKET: "/buckets/chunks"
  78. OVERLEAF_EDITOR_PROJECT_BLOBS_BUCKET: "/buckets/project_blobs"
  79. OVERLEAF_EDITOR_ZIPS_BUCKET: "/buckets/zips"
  80. PERSISTOR_BACKEND: fs
  81. volumes:
  82. - history-v1-buckets:/buckets
  83. mongo:
  84. image: mongo:4.4
  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. spelling:
  114. build:
  115. context: ..
  116. dockerfile: services/spelling/Dockerfile
  117. env_file:
  118. - dev.env
  119. volumes:
  120. - spelling-cache:/overleaf/services/spelling/cache
  121. track-changes:
  122. build:
  123. context: ..
  124. dockerfile: services/track-changes/Dockerfile
  125. env_file:
  126. - dev.env
  127. web:
  128. build:
  129. context: ..
  130. dockerfile: services/web/Dockerfile
  131. target: dev
  132. env_file:
  133. - dev.env
  134. environment:
  135. - APP_NAME=Overleaf Community Edition
  136. - ENABLED_LINKED_FILE_TYPES=project_file,project_output_file
  137. - EMAIL_CONFIRMATION_DISABLED=true
  138. - NODE_ENV=development
  139. - SHARELATEX_ALLOW_PUBLIC_ACCESS=true
  140. command: ["node", "app.js"]
  141. volumes:
  142. - sharelatex-data:/var/lib/sharelatex
  143. - web-data:/overleaf/services/web/data
  144. depends_on:
  145. - mongo
  146. - redis
  147. - chat
  148. - clsi
  149. - contacts
  150. - docstore
  151. - document-updater
  152. - filestore
  153. - history-v1
  154. - notifications
  155. - project-history
  156. - real-time
  157. - spelling
  158. webpack:
  159. build:
  160. context: ..
  161. dockerfile: services/web/Dockerfile
  162. target: dev
  163. command: ["npx", "webpack", "serve", "--config", "webpack.config.dev-env.js"]
  164. ports:
  165. - "127.0.0.1:80:3808"
  166. volumes:
  167. - ./webpack.config.dev-env.js:/overleaf/services/web/webpack.config.dev-env.js