docker-compose.yml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. - node_modules:/workspace/growi/node_modules
  20. - node_modules_app:/workspace/growi/apps/app/node_modules
  21. - node_modules_slackbot-proxy:/workspace/growi/apps/slackbot-proxy/node_modules
  22. - buildcache_app:/workspace/growi/apps/app/.next
  23. - ../../growi-docker-compose:/workspace/growi-docker-compose:delegated
  24. tty: true
  25. networks:
  26. - default
  27. # https://redmine.weseek.co.jp/issues/144306 で整備予定
  28. # - opentelemetry-collector-dev-setup_default
  29. mongo:
  30. image: mongo:6.0
  31. restart: unless-stopped
  32. ports:
  33. - 27017
  34. volumes:
  35. - /data/db
  36. # This container requires '../../growi-docker-compose' repository
  37. # cloned from https://github.com/weseek/growi-docker-compose.git
  38. elasticsearch:
  39. build:
  40. context: ../../growi-docker-compose/elasticsearch/v8
  41. dockerfile: ./Dockerfile
  42. args:
  43. - version=8.7.0
  44. restart: unless-stopped
  45. ports:
  46. - 9200
  47. environment:
  48. - bootstrap.memory_lock=true
  49. - "ES_JAVA_OPTS=-Xms256m -Xmx256m"
  50. - LOG4J_FORMAT_MSG_NO_LOOKUPS=true # CVE-2021-44228 mitigation for Elasticsearch <= 6.8.20/7.16.0
  51. ulimits:
  52. memlock:
  53. soft: -1
  54. hard: -1
  55. volumes:
  56. - /usr/share/elasticsearch/data
  57. - ../../growi-docker-compose/elasticsearch/v8/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
  58. volumes:
  59. node_modules:
  60. node_modules_app:
  61. node_modules_slackbot-proxy:
  62. buildcache_app:
  63. networks:
  64. default:
  65. # https://redmine.weseek.co.jp/issues/144306 で整備予定
  66. # opentelemetry-collector-dev-setup_default:
  67. # external: true