docker-compose.yml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. #-------------------------------------------------------------------------------------------------------------
  2. # Copyright (c) Microsoft Corporation. All rights reserved.
  3. # Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
  4. #-------------------------------------------------------------------------------------------------------------
  5. services:
  6. app:
  7. # Uncomment the next line to use a non-root user for all processes. You can also
  8. # simply use the "remoteUser" property in devcontainer.json if you just want VS Code
  9. # and its sub-processes (terminals, tasks, debugging) to execute as the user. On Linux,
  10. # you may need to update USER_UID and USER_GID in .devcontainer/Dockerfile to match your
  11. # user if not 1000. See https://aka.ms/vscode-remote/containers/non-root for details.
  12. user: node
  13. build:
  14. context: .
  15. dockerfile: ./app/Dockerfile
  16. volumes:
  17. - ..:/workspace/growi:delegated
  18. - node_modules:/workspace/growi/node_modules
  19. - node_modules_app:/workspace/growi/apps/app/node_modules
  20. - node_modules_slackbot-proxy:/workspace/growi/apps/slackbot-proxy/node_modules
  21. - buildcache_app:/workspace/growi/apps/app/.next
  22. - ../../growi-docker-compose:/workspace/growi-docker-compose:delegated
  23. - page_bulk_export_tmp:/tmp/page-bulk-export
  24. tty: true
  25. mongo:
  26. image: mongo:6.0
  27. restart: unless-stopped
  28. ports:
  29. - 27017
  30. volumes:
  31. - /data/db
  32. # This container requires '../../growi-docker-compose' repository
  33. # cloned from https://github.com/weseek/growi-docker-compose.git
  34. elasticsearch:
  35. build:
  36. context: ../../growi-docker-compose/elasticsearch/v8
  37. dockerfile: ./Dockerfile
  38. args:
  39. - version=8.7.0
  40. restart: unless-stopped
  41. ports:
  42. - 9200
  43. environment:
  44. - bootstrap.memory_lock=true
  45. - "ES_JAVA_OPTS=-Xms256m -Xmx256m"
  46. - LOG4J_FORMAT_MSG_NO_LOOKUPS=true # CVE-2021-44228 mitigation for Elasticsearch <= 6.8.20/7.16.0
  47. ulimits:
  48. memlock:
  49. soft: -1
  50. hard: -1
  51. volumes:
  52. - /usr/share/elasticsearch/data
  53. - ../../growi-docker-compose/elasticsearch/v8/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
  54. pdf-converter:
  55. user: node
  56. build:
  57. context: .
  58. dockerfile: ./pdf-converter/Dockerfile
  59. restart: unless-stopped
  60. ports:
  61. - 3010
  62. volumes:
  63. - ..:/workspace/growi:delegated
  64. - node_modules:/workspace/growi/node_modules
  65. - node_modules_pdf_converter:/workspace/growi/apps/pdf-converter/node_modules
  66. - page_bulk_export_tmp:/tmp/page-bulk-export
  67. tty: true
  68. volumes:
  69. node_modules:
  70. node_modules_app:
  71. node_modules_slackbot-proxy:
  72. node_modules_pdf_converter:
  73. buildcache_app:
  74. page_bulk_export_tmp: