2
0

docker-compose.yml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. 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. volumes:
  55. node_modules:
  56. node_modules_app:
  57. node_modules_slackbot-proxy:
  58. buildcache_app: