docker-compose.yml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. ports:
  18. - 3000:3000
  19. - 3001:3001 # for browser-sync
  20. volumes:
  21. - ..:/workspace/growi:delegated
  22. - node_modules:/workspace/growi/node_modules
  23. - ../../growi-docker-compose:/workspace/growi-docker-compose:delegated
  24. tty: true
  25. mongo:
  26. image: mongo:4.4
  27. restart: unless-stopped
  28. ports:
  29. - 27017: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
  37. dockerfile: ./Dockerfile
  38. restart: unless-stopped
  39. ports:
  40. - 9200:9200
  41. environment:
  42. - bootstrap.memory_lock=true
  43. - "ES_JAVA_OPTS=-Xms256m -Xmx256m"
  44. ulimits:
  45. memlock:
  46. soft: -1
  47. hard: -1
  48. volumes:
  49. - /usr/share/elasticsearch/data
  50. - ../../growi-docker-compose/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
  51. elasticsearch-head:
  52. image: tobias74/elasticsearch-head:6
  53. restart: unless-stopped
  54. ports:
  55. - 9100:9100
  56. # This container requires '../../growi-docker-compose' repository
  57. # cloned from https://github.com/weseek/growi-docker-compose.git
  58. hackmd:
  59. build:
  60. context: ../../growi-docker-compose/hackmd
  61. restart: unless-stopped
  62. environment:
  63. - GROWI_URI=http://localhost:3000
  64. # define 'storage' option value
  65. # see https://github.com/sequelize/cli/blob/7160d0/src/helpers/config-helper.js#L192
  66. - CMD_DB_URL=sqlite://dummyhost/hackmd/sqlite/codimd.db
  67. - CMD_CSP_ENABLE=false
  68. ports:
  69. - 3010:3000
  70. volumes:
  71. - /files/sqlite
  72. volumes:
  73. node_modules: