docker-compose.yml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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:cached
  19. - /workspace/growi/node_modules
  20. - ../../growi-docker-compose:/workspace/growi-docker-compose:cached
  21. - ../../node_modules:/workspace/node_modules:cached
  22. # Overrides default command so things don't shut down after the process ends.
  23. command: sleep infinity
  24. links:
  25. - mongo
  26. - elasticsearch
  27. - hackmd
  28. mongo:
  29. image: mongo:3.6
  30. restart: unless-stopped
  31. ports:
  32. - 27017:27017
  33. volumes:
  34. - /data/db
  35. # This container requires '../../growi-docker-compose' repository
  36. # cloned from https://github.com/weseek/growi-docker-compose.git
  37. elasticsearch:
  38. build:
  39. context: ../../growi-docker-compose/elasticsearch
  40. dockerfile: ./Dockerfile
  41. restart: unless-stopped
  42. ports:
  43. - 9200:9200
  44. environment:
  45. - bootstrap.memory_lock=true
  46. - "ES_JAVA_OPTS=-Xms256m -Xmx256m"
  47. ulimits:
  48. memlock:
  49. soft: -1
  50. hard: -1
  51. volumes:
  52. - /usr/share/elasticsearch/data
  53. - ../../growi-docker-compose/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
  54. elasticsearch-head:
  55. image: tobias74/elasticsearch-head:6
  56. restart: unless-stopped
  57. ports:
  58. - 9100:9100
  59. # This container requires '../../growi-docker-compose' repository
  60. # cloned from https://github.com/weseek/growi-docker-compose.git
  61. hackmd:
  62. build:
  63. context: ../../growi-docker-compose/hackmd
  64. restart: unless-stopped
  65. environment:
  66. - GROWI_URI=http://localhost:3000
  67. # define 'storage' option value
  68. # see https://github.com/sequelize/cli/blob/7160d0/src/helpers/config-helper.js#L192
  69. - CMD_DB_URL=sqlite://dummyhost/hackmd/sqlite/codimd.db
  70. - CMD_CSP_ENABLE=false
  71. ports:
  72. - 3010:3000
  73. volumes:
  74. - /files/sqlite