docker-compose.yml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. volumes:
  2. clsi-cache:
  3. filestore-public-files:
  4. filestore-template-files:
  5. filestore-uploads:
  6. filestore-user-files:
  7. mongo-data:
  8. redis-data:
  9. sharelatex-data:
  10. web-data:
  11. history-v1-buckets:
  12. services:
  13. chat:
  14. build:
  15. context: ..
  16. dockerfile: services/chat/Dockerfile
  17. env_file:
  18. - dev.env
  19. clsi:
  20. build:
  21. context: ..
  22. dockerfile: services/clsi/Dockerfile
  23. target: with-texlive
  24. env_file:
  25. - dev.env
  26. environment:
  27. - SANDBOXED_COMPILES=false
  28. user: root
  29. volumes:
  30. - ${PWD}/compiles:/overleaf/services/clsi/compiles
  31. - ${PWD}/output:/overleaf/services/clsi/output
  32. - ${DOCKER_SOCKET_PATH:-/var/run/docker.sock}:/var/run/docker.sock
  33. - clsi-cache:/overleaf/services/clsi/cache
  34. clsi-nginx:
  35. image: nginx:1.28
  36. read_only: true
  37. tmpfs:
  38. - /tmp
  39. - /var/cache/nginx
  40. - /run
  41. volumes:
  42. - ${PWD}/output:/output:ro
  43. - ../services/clsi/nginx.conf:/etc/nginx/conf.d/nginx.conf:ro
  44. docstore:
  45. build:
  46. context: ..
  47. dockerfile: services/docstore/Dockerfile
  48. env_file:
  49. - dev.env
  50. document-updater:
  51. build:
  52. context: ..
  53. dockerfile: services/document-updater/Dockerfile
  54. env_file:
  55. - dev.env
  56. filestore:
  57. build:
  58. context: ..
  59. dockerfile: services/filestore/Dockerfile
  60. env_file:
  61. - dev.env
  62. # environment:
  63. # - ENABLE_CONVERSIONS=true
  64. volumes:
  65. - filestore-public-files:/overleaf/services/filestore/public_files
  66. - filestore-template-files:/overleaf/services/filestore/template_files
  67. - filestore-uploads:/overleaf/services/filestore/uploads
  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:8
  85. command: --replSet overleaf
  86. ports:
  87. - "127.0.0.1:27017:27017" # for debugging
  88. volumes:
  89. - mongo-data:/data/db
  90. - ../bin/shared/mongodb-init-replica-set.js:/docker-entrypoint-initdb.d/mongodb-init-replica-set.js
  91. environment:
  92. MONGO_INITDB_DATABASE: sharelatex
  93. extra_hosts:
  94. # Required when using the automatic database setup for initializing the
  95. # replica set. This override is not needed when running the setup after
  96. # starting up mongo.
  97. - mongo:127.0.0.1
  98. notifications:
  99. build:
  100. context: ..
  101. dockerfile: services/notifications/Dockerfile
  102. env_file:
  103. - dev.env
  104. project-history:
  105. build:
  106. context: ..
  107. dockerfile: services/project-history/Dockerfile
  108. env_file:
  109. - dev.env
  110. real-time:
  111. build:
  112. context: ..
  113. dockerfile: services/real-time/Dockerfile
  114. env_file:
  115. - dev.env
  116. redis:
  117. image: redis:7
  118. ports:
  119. - "127.0.0.1:6379:6379" # for debugging
  120. volumes:
  121. - redis-data:/data
  122. web:
  123. build:
  124. context: ..
  125. dockerfile: services/web/Dockerfile
  126. target: dev
  127. env_file:
  128. - dev.env
  129. environment:
  130. - APP_NAME=Overleaf Community Edition
  131. - ENABLED_LINKED_FILE_TYPES=project_file,project_output_file
  132. - EMAIL_CONFIRMATION_DISABLED=true
  133. - NODE_ENV=development
  134. - OVERLEAF_ALLOW_PUBLIC_ACCESS=true
  135. command: ["node", "app.mjs"]
  136. volumes:
  137. - sharelatex-data:/var/lib/overleaf
  138. - web-data:/overleaf/services/web/data
  139. depends_on:
  140. - mongo
  141. - redis
  142. - chat
  143. - clsi
  144. - docstore
  145. - document-updater
  146. - filestore
  147. - history-v1
  148. - notifications
  149. - project-history
  150. - real-time
  151. webpack:
  152. build:
  153. context: ..
  154. dockerfile: services/web/Dockerfile
  155. target: webpack
  156. command:
  157. ["npx", "webpack", "serve", "--config", "webpack.config.dev-env.js"]
  158. ports:
  159. - "127.0.0.1:80:3808"
  160. volumes:
  161. - ./webpack.config.dev-env.js:/overleaf/services/web/webpack.config.dev-env.js