docker-compose.yml 2.7 KB

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