docker-compose.yml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. version: '3'
  6. services:
  7. node:
  8. # Uncomment the next line to use a non-root user for all processes. You can also
  9. # simply use the "remoteUser" property in devcontainer.json if you just want VS Code
  10. # and its sub-processes (terminals, tasks, debugging) to execute as the user. On Linux,
  11. # you may need to update USER_UID and USER_GID in .devcontainer/Dockerfile to match your
  12. # user if not 1000. See https://aka.ms/vscode-remote/containers/non-root for details.
  13. user: node
  14. build:
  15. context: .
  16. dockerfile: Dockerfile
  17. volumes:
  18. - ..:/workspace/growi:delegated
  19. - pnpm-store:/workspace/growi/.pnpm-store
  20. - node_modules:/workspace/growi/node_modules
  21. - node_modules_app:/workspace/growi/apps/app/node_modules
  22. - node_modules_slackbot-proxy:/workspace/growi/apps/slackbot-proxy/node_modules
  23. - buildcache_app:/workspace/growi/apps/app/.next
  24. - ../../growi-docker-compose:/workspace/growi-docker-compose:delegated
  25. tty: true
  26. mongo:
  27. image: mongo:6.0
  28. restart: unless-stopped
  29. ports:
  30. - 27017
  31. volumes:
  32. - /data/db
  33. # This container requires '../../growi-docker-compose' repository
  34. # cloned from https://github.com/weseek/growi-docker-compose.git
  35. elasticsearch:
  36. build:
  37. context: ../../growi-docker-compose/elasticsearch/v8
  38. dockerfile: ./Dockerfile
  39. args:
  40. - version=8.7.0
  41. restart: unless-stopped
  42. ports:
  43. - 9200
  44. environment:
  45. - bootstrap.memory_lock=true
  46. - "ES_JAVA_OPTS=-Xms256m -Xmx256m"
  47. - LOG4J_FORMAT_MSG_NO_LOOKUPS=true # CVE-2021-44228 mitigation for Elasticsearch <= 6.8.20/7.16.0
  48. ulimits:
  49. memlock:
  50. soft: -1
  51. hard: -1
  52. volumes:
  53. - /usr/share/elasticsearch/data
  54. - ../../growi-docker-compose/elasticsearch/v8/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
  55. volumes:
  56. pnpm-store:
  57. node_modules:
  58. node_modules_app:
  59. node_modules_slackbot-proxy:
  60. buildcache_app: