docker-compose.yml 3.1 KB

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