docker-compose.yml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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/packages/app/node_modules
  21. - node_modules_slackbot-proxy:/workspace/growi/packages/slackbot-proxy/node_modules
  22. - ../../growi-docker-compose:/workspace/growi-docker-compose:delegated
  23. tty: true
  24. mongo:
  25. image: mongo:4.4
  26. restart: unless-stopped
  27. ports:
  28. - 27017:27017
  29. volumes:
  30. - /data/db
  31. # This container requires '../../growi-docker-compose' repository
  32. # cloned from https://github.com/weseek/growi-docker-compose.git
  33. elasticsearch:
  34. build:
  35. context: ../../growi-docker-compose/elasticsearch
  36. dockerfile: ./Dockerfile
  37. args:
  38. - version=6.8.22
  39. container_name: elasticsearch
  40. restart: unless-stopped
  41. ports:
  42. - 9200:9200
  43. environment:
  44. - bootstrap.memory_lock=true
  45. - "ES_JAVA_OPTS=-Xms256m -Xmx256m"
  46. ulimits:
  47. memlock:
  48. soft: -1
  49. hard: -1
  50. volumes:
  51. - /usr/share/elasticsearch/data
  52. - ../../growi-docker-compose/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
  53. #need to adjust kibana version based on elasticsearch version
  54. kibana:
  55. image: docker.elastic.co/kibana/kibana:6.8.22
  56. restart: unless-stopped
  57. environment:
  58. ELASTICSEARCH_HOSTS: 'http://elasticsearch:9200'
  59. ports:
  60. - 5601:5601
  61. depends_on:
  62. - elasticsearch
  63. # This container requires '../../growi-docker-compose' repository
  64. # cloned from https://github.com/weseek/growi-docker-compose.git
  65. hackmd:
  66. build:
  67. context: ../../growi-docker-compose/hackmd
  68. restart: unless-stopped
  69. environment:
  70. - GROWI_URI=http://localhost:3000
  71. # define 'storage' option value
  72. # see https://github.com/sequelize/cli/blob/7160d0/src/helpers/config-helper.js#L192
  73. - CMD_DB_URL=sqlite://dummyhost/hackmd/sqlite/codimd.db
  74. - CMD_CSP_ENABLE=false
  75. ports:
  76. - 3010:3000
  77. volumes:
  78. - /files/sqlite
  79. volumes:
  80. node_modules:
  81. node_modules_app:
  82. node_modules_slackbot-proxy: