docker-compose.yml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. restart: unless-stopped
  44. ports:
  45. - 9200:9200
  46. environment:
  47. - bootstrap.memory_lock=true
  48. - "ES_JAVA_OPTS=-Xms256m -Xmx256m"
  49. ulimits:
  50. memlock:
  51. soft: -1
  52. hard: -1
  53. volumes:
  54. - /usr/share/elasticsearch/data
  55. - ../../growi-docker-compose/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
  56. elasticsearch-head:
  57. image: tobias74/elasticsearch-head:6
  58. restart: unless-stopped
  59. ports:
  60. - 9100:9100
  61. # This container requires '../../growi-docker-compose' repository
  62. # cloned from https://github.com/weseek/growi-docker-compose.git
  63. hackmd:
  64. build:
  65. context: ../../growi-docker-compose/hackmd
  66. restart: unless-stopped
  67. environment:
  68. - GROWI_URI=http://localhost:3000
  69. # define 'storage' option value
  70. # see https://github.com/sequelize/cli/blob/7160d0/src/helpers/config-helper.js#L192
  71. - CMD_DB_URL=sqlite://dummyhost/hackmd/sqlite/codimd.db
  72. - CMD_CSP_ENABLE=false
  73. ports:
  74. - 3010:3000
  75. volumes:
  76. - /files/sqlite
  77. volumes:
  78. node_modules:
  79. node_modules_app:
  80. node_modules_slackbot-proxy: