docker-compose.yml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. - node_modules_app:/workspace/growi/packages/app/node_modules
  24. - node_modules_slackbot-proxy:/workspace/growi/packages/slackbot-proxy/node_modules
  25. - ../../growi-docker-compose:/workspace/growi-docker-compose:delegated
  26. tty: true
  27. mongo:
  28. image: mongo:4.4
  29. restart: unless-stopped
  30. ports:
  31. - 27017:27017
  32. volumes:
  33. - /data/db
  34. # This container requires '../../growi-docker-compose' repository
  35. # cloned from https://github.com/weseek/growi-docker-compose.git
  36. elasticsearch:
  37. build:
  38. context: ../../growi-docker-compose/elasticsearch
  39. dockerfile: ./Dockerfile
  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. elasticsearch-head:
  54. image: tobias74/elasticsearch-head:6
  55. restart: unless-stopped
  56. ports:
  57. - 9100:9100
  58. # This container requires '../../growi-docker-compose' repository
  59. # cloned from https://github.com/weseek/growi-docker-compose.git
  60. hackmd:
  61. build:
  62. context: ../../growi-docker-compose/hackmd
  63. restart: unless-stopped
  64. environment:
  65. - GROWI_URI=http://localhost:3000
  66. # define 'storage' option value
  67. # see https://github.com/sequelize/cli/blob/7160d0/src/helpers/config-helper.js#L192
  68. - CMD_DB_URL=sqlite://dummyhost/hackmd/sqlite/codimd.db
  69. - CMD_CSP_ENABLE=false
  70. ports:
  71. - 3010:3000
  72. volumes:
  73. - /files/sqlite
  74. volumes:
  75. node_modules:
  76. node_modules_app:
  77. node_modules_slackbot-proxy: