{"id":41134,"date":"2023-02-01T16:50:24","date_gmt":"2023-11-29T18:30:30","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8docker%e6%9e%84%e5%bb%bagrowi%ef%bc%88%e4%b8%8ecodimd%e9%9b%86%e6%88%90%ef%bc%89%e3%80%82\/"},"modified":"2024-04-29T12:37:09","modified_gmt":"2024-04-29T04:37:09","slug":"%e4%bd%bf%e7%94%a8docker%e6%9e%84%e5%bb%bagrowi%ef%bc%88%e4%b8%8ecodimd%e9%9b%86%e6%88%90%ef%bc%89%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8docker%e6%9e%84%e5%bb%bagrowi%ef%bc%88%e4%b8%8ecodimd%e9%9b%86%e6%88%90%ef%bc%89%e3%80%82\/","title":{"rendered":"\u4f7f\u7528Docker\u6784\u5efaGROWI\uff08\u4e0eCodiMD\u96c6\u6210\uff09"},"content":{"rendered":"<h1>\u5927\u81f4\u63cf\u8ff0<\/h1>\n<p>\u6211\u5011\u5728\u5de5\u4f5c\u5834\u6240\u4f7f\u7528HackMD\uff08CodiMD\uff09\u4f5c\u70ba\u77e5\u8b58\u5171\u4eab\u7684\u5de5\u5177\uff0c\u5728\u7de8\u8f2f\u6642\u53ef\u4ee5\u540c\u6642\u67e5\u770b\u53f3\u5074\u7684\u9810\u89bd\uff0c\u4f7f\u7528\u8d77\u4f86\u975e\u5e38\u65b9\u4fbf\u3002\u7136\u800c\uff0c\u7531\u65bc\u8a72\u7db2\u7ad9\u6c92\u6709\u641c\u7d22\u529f\u80fd\uff0c\u5f88\u96e3\u627e\u5230\u6240\u9700\u7684\u9801\u9762\uff0c\u56e0\u6b64\u6211\u4e00\u76f4\u5728\u5c0b\u627e\u5177\u6709\u641c\u7d22\u529f\u80fd\u7684\u5de5\u5177\uff0c\u5f8c\u4f86\u6211\u627e\u5230\u4e86\u4e00\u500b\u540d\u70baGROWI\u7684Wiki\u5de5\u5177\u4e26\u7d93\u904e\u4e86\u5feb\u901f\u5c0e\u5165\u3002\u96d6\u7136GROWI\u672c\u8eab\u4e0d\u80fd\u5be6\u73fe\u591a\u4eba\u540c\u6642\u7de8\u8f2f\uff0c\u4f46\u8207HackMD\uff08CodiMD\uff09\u7684\u7d50\u5408\u4f7f\u9019\u4e00\u9ede\u4e5f\u6210\u70ba\u53ef\u80fd\u3002<\/p>\n<h1>\u73af\u5883<\/h1>\n<p>\u5728ESXi6.7\u4e0a\u90e8\u7f72CentOS\u865a\u62df\u673a\uff0c\u5e76\u5728\u5176\u4e0a\u8fdb\u884c\u6784\u5efa\u3002<\/p>\n<div>\n<div class=\"post-table\">SoftwareversionCentOS7.5Docker19.03.5Docker-Compose1.26.0git1.8.3.1<\/div>\n<\/div>\n<p>\u6240\u6709\u547d\u4ee4\u5747\u4ee5root\u6743\u9650\u6267\u884c\u3002<\/p>\n<h1>\u73af\u5883\u51c6\u5907<\/h1>\n<h2>1. \u5305\u88f9\u66f4\u65b0<\/h2>\n<p>\u6211\u6682\u65f6\u5148\u529e\u4e00\u4e0b\u3002\u3002\u3002<\/p>\n<pre class=\"post-pre\"><code># yum update\r\n<\/code><\/pre>\n<h2>2. Git\u7684\u5b89\u88c5<\/h2>\n<p>\u8bf7\u4e8b\u5148\u5b89\u88c5GROWI\uff0c\u56e0\u4e3a\u5b83\u9700\u8981\u4f7f\u7528git\u547d\u4ee4\u8fdb\u884c\u514b\u9686\u3002<\/p>\n<pre class=\"post-pre\"><code># yum install git\r\n<\/code><\/pre>\n<h2>3. \u5b89\u88c5 Docker<\/h2>\n<p>\u6ce8\u518c\u5e76\u5b89\u88c5Docker\u4ed3\u5e93\u3002<\/p>\n<pre class=\"post-pre\"><code># curl -O https:\/\/download.docker.com\/linux\/centos\/docker-ce.repo\r\n# mv docker-ce.repo \/etc\/yum.repos.d\/\r\n# yum install docker-ce\r\n<\/code><\/pre>\n<p>Docker\u7684\u542f\u52a8<\/p>\n<pre class=\"post-pre\"><code># systemctl start docker\r\n# systemctl enable docker\r\n<\/code><\/pre>\n<h2>4. \u5b89\u88c5docker-compose<\/h2>\n<p>\u4e0b\u8f7d Docker Compose<\/p>\n<pre class=\"post-pre\"><code># curl -L \"https:\/\/github.com\/docker\/compose\/releases\/download\/1.26.0\/docker-compose-$(uname -s)-$(uname -m)\" -o \/usr\/local\/bin\/docker-compose\r\n<\/code><\/pre>\n<p>\u7ed9\u4e88Docker Compose\u6267\u884c\u6743\u9650<\/p>\n<pre class=\"post-pre\"><code># chmod +x \/usr\/local\/bin\/docker-compose\r\n<\/code><\/pre>\n<h1>\u6784\u5efaGROWI<\/h1>\n<p>\u73b0\u5728\u51c6\u5907\u5de5\u4f5c\u5df2\u7ecf\u5b8c\u6210\uff0c\u6211\u4eec\u53ef\u4ee5\u5f00\u59cb\u5b89\u88c5Growi\u4e86\u3002<\/p>\n<h2>1. \u514b\u9686GROWI<\/h2>\n<p>\u8fd9\u6b21\u6211\u4eec\u5c06\u5728\/opt\u76ee\u5f55\u4e0b\u8fdb\u884c\u6784\u5efa\u3002<\/p>\n<pre class=\"post-pre\"><code># cd \/opt\r\n# git clone https:\/\/github.com\/weseek\/growi-docker-compose.git growi\r\n# cd growi\r\n<\/code><\/pre>\n<h2>2. \u7f16\u8f91docker-compose .yml\u6587\u4ef6<\/h2>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u7f16\u8f91docker-compose.yml\u6587\u4ef6\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30b5\u30fc\u30d0\u306e\u5916\u304b\u3089\u3082\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3044\u306e\u3067127.0.0.1\u306f\u524a\u9664\u3059\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u300cFILE_UPLOAD=local\u300d\u306f\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3092\u5916\u3059\u3053\u3068\u3067\u30ed\u30fc\u30ab\u30eb(Docker\u5185)\u306b\u753b\u50cf\u304c\u4fdd\u5b58\u3067\u304d\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u300celasticsearch:\u300d\u306e&#8221;ES_JAVA_OPTS=-Xms256m -Xmx256m&#8221;\u306f&#8221;ES_JAVA_OPTS=-Xms512m -Xmx512m&#8221;\u306b\u3057\u3066\u304a\u304d\uff0c\u30e1\u30e2\u30ea\u306b\u4f59\u88d5\u304c\u3042\u308b\u5834\u5408\u306f&#8221;ES_JAVA_OPTS=-Xms2g -Xmx2g&#8221;\u306b\u3057\u3066\u304a\u3044\u305f\u65b9\u304c\u826f\u3044\uff0e(\u30e1\u30e2\u30ea\u3092\u5c11\u306a\u304f\u8a2d\u5b9a\u3059\u308b\u3068Elasticsearch\u304c\u8d77\u52d5\u3057\u306a\u3044\u3053\u3068\u304c\u3042\u308b)<\/ul>\n<pre class=\"post-pre\"><code>version: '3'\r\n\r\nservices:\r\n  app:\r\n    build:\r\n      context: .\r\n      dockerfile: .\/Dockerfile\r\n    ports:\r\n#      - 127.0.0.1:3000:3000    # localhost only by default\r\n      - 3000:3000    # localhost only by default\r\n    links:\r\n      - mongo:mongo\r\n      - elasticsearch:elasticsearch\r\n    depends_on:\r\n      - mongo\r\n      - elasticsearch\r\n    environment:\r\n      - MONGO_URI=mongodb:\/\/mongo:27017\/growi\r\n      - ELASTICSEARCH_URI=http:\/\/elasticsearch:9200\/growi\r\n      - PASSWORD_SEED=changeme\r\n      # - FILE_UPLOAD=mongodb   # activate this line if you use MongoDB GridFS rather than AWS\r\n      # - FILE_UPLOAD=local     # activate this line if you use local storage of server rather than AWS\r\n      # - MATHJAX=1             # activate this line if you want to use MathJax\r\n      # - PLANTUML_URI=http:\/\/  # activate this line and specify if you use your own PlantUML server rather than public plantuml.com\r\n      # - HACKMD_URI=http:\/\/    # activate this line and specify HackMD server URI which can be accessed from GROWI client browsers\r\n      # - HACKMD_URI_FOR_SERVER=http:\/\/hackmd:3000  # activate this line and specify HackMD server URI which can be accessed from this server container\r\n      # - FORCE_WIKI_MODE='public'    # activate this line to force wiki public mode\r\n      # - FORCE_WIKI_MODE='private'   # activate this line to force wiki private mode\r\n\r\n    command: \"dockerize\r\n              -wait tcp:\/\/mongo:27017\r\n              -wait tcp:\/\/elasticsearch:9200\r\n              -timeout 60s\r\n              npm run server:prod\"\r\n    restart: unless-stopped\r\n    volumes:\r\n      - growi_data:\/data\r\n\r\n  mongo:\r\n    image: mongo:3.6\r\n    restart: unless-stopped\r\n    volumes:\r\n      - mongo_configdb:\/data\/configdb\r\n      - mongo_db:\/data\/db\r\n\r\n  elasticsearch:\r\n    build:\r\n      context: .\/elasticsearch\r\n      dockerfile: .\/Dockerfile\r\n    environment:\r\n      - bootstrap.memory_lock=true\r\n#      - \"ES_JAVA_OPTS=-Xms256m -Xmx256m\"  # increase amount if you have enough memory\r\n      - \"ES_JAVA_OPTS=-Xms512m -Xmx512m\"  # increase amount if you have enough memory\r\n    ulimits:\r\n      memlock:\r\n        soft: -1\r\n        hard: -1\r\n    restart: unless-stopped\r\n    volumes:\r\n      - es_data:\/usr\/share\/elasticsearch\/data\r\n      - .\/elasticsearch\/config\/elasticsearch.yml:\/usr\/share\/elasticsearch\/config\/elasticsearch.yml\r\n\r\nvolumes:\r\n  growi_data:\r\n  mongo_configdb:\r\n  mongo_db:\r\n  es_data:\r\n\r\n<\/code><\/pre>\n<p>\u5b8c\u6210\u7f16\u8f91\u540e\uff0c\u8bf7\u4fdd\u5b58\u3002<\/p>\n<h2>3. \u542f\u52a8<\/h2>\n<p>\u5f53\u4f60\u5230\u8fbe\u8fd9\u4e00\u6b65\uff0c\u53ea\u9700\u542f\u52a8\u5373\u53ef\u3002<\/p>\n<pre class=\"post-pre\"><code># docker-compose up\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u5b9f\u884c\u3057\u305f\u3044\u6642<\/ul>\n<pre class=\"post-pre\"><code># docker-compose up -d\r\n<\/code><\/pre>\n<h3>\u5982\u679c\u542f\u52a8\u65f6\u51fa\u73b0\u9519\u8bef\u7684\u60c5\u51b5<\/h3>\n<p>systemctl status docker\u3067docker\u304c\u8d77\u52d5\u3057\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b<\/p>\n<p>systemctl status firewalld\u3067firewall\u304c\u8d77\u52d5\u3057\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b<\/p>\n<h3>\u5728\u542f\u52a8\u540e<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d44fb37434c4406ca124f\/41-0.png\" alt=\"image.png\" \/><\/div>\n<h3>\u5982\u679c\u5728\u6d4f\u89c8\u5668\u4e0a\u8bbf\u95ee\u65f6\u6ca1\u6709\u663e\u793a\u521d\u59cb\u753b\u9762<\/h3>\n<ul class=\"post-ul\">firewall\u306e\u30dd\u30fc\u30c8\u958b\u653e\u3092\u884c\u3046<\/ul>\n<pre class=\"post-pre\"><code># firewall-cmd --zone=public --add-port=3000\/tcp --permanent\r\n# firewall-cmd --reload\r\n<\/code><\/pre>\n<h1>CodiMD\u5408\u4f5c\u9009\u9879<\/h1>\n<p>\u4ece\u4e0a\u9762\u5f00\u59cb\uff0cGROWI\u73b0\u5728\u53ef\u4ee5\u4f7f\u7528\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u4e0eCodiMD\u8fdb\u884c\u534f\u4f5c\uff0c\u5b9e\u73b0\u591a\u4eba\u540c\u65f6\u7f16\u8f91\u7684\u529f\u80fd\u3002\u5173\u4e8e\u529f\u80fd\u7684\u4ecb\u7ecd\uff0c\u8bf7\u53c2\u9605GROWI\u7684\u6587\u6863\u3002<\/p>\n<h2>\u8bf7\u5c06 docker-compose.override.yml \u6587\u4ef6\u590d\u5236\u5230\u4e0e docker-compose.yml \u76f8\u540c\u7684\u76ee\u5f55\u4e0b\u3002<\/h2>\n<ul class=\"post-ul\">\u4f5c\u696d\u524d\u306bGROWI\u304c\u8d77\u52d5\u3057\u3066\u3044\u308b\u5834\u5408\u306fdocker-compose stop\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u505c\u6b62\u3055\u305b\u307e\u3059\uff0e<\/ul>\n<p>\u5728\u4f7f\u7528Docker\u5b89\u88c5GROWI\u65f6\uff0c\u5728GROWI\u6587\u4ef6\u5939\u5185\u6709\u4e00\u4e2a\u540d\u4e3a&#8221;examples&#8221;\u7684\u6587\u4ef6\u5939\uff0c&#8221;examples&#8221;\u6587\u4ef6\u5939\u4e2d\u5305\u542b\u4e00\u4e2a\u540d\u4e3a&#8221;integrate-with-hackmd&#8221;\u7684\u6587\u4ef6\u5939\uff0c\u5728\u5176\u4e2d\u6709\u4e00\u4e2a\u540d\u4e3a&#8221;docker-compose.override.yml&#8221;\u7684\u6587\u4ef6\u3002\u5c06\u8be5\u6587\u4ef6\u590d\u5236\u5230\u548cdocker-compose.yml\u6587\u4ef6\u76f8\u540c\u7684\u5c42\u7ea7\u3002<\/p>\n<pre class=\"post-pre\"><code># cp \/opt\/growi\/examples\/integrate-with-hackmd\/docker-compose.override.yml \/opt\/growi\/\r\n<\/code><\/pre>\n<h2>\u7f16\u8f91docker-compose.override.yml\u6587\u4ef6<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u300cGROWI_URI\u300d\u306f\u30d6\u30e9\u30a6\u30b6\u3067GROWI\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308bURL\u3092\u5165\u529b\u3057\u307e\u3059\uff0e\u4f8b\uff1ahttp:\/\/{\u30b5\u30fc\u30d0\u306eIP}:3000<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30b5\u30fc\u30d0\u4ee5\u5916\u3067\u4f7f\u7528\u3057\u305f\u3044\u306e\u3067172.0.0.1\u306f\u524a\u9664\u3057\u307e\u3059\uff0e<\/ul>\n<pre class=\"post-pre\"><code>version: '3'\r\n\r\nservices:\r\n  ##\r\n  # HackMD(CodiMD) container\r\n  # see https:\/\/github.com\/hackmdio\/codimd#configuration\r\n  #\r\n  hackmd:\r\n    build:\r\n      context: .\/hackmd\r\n    environment:\r\n      - GROWI_URI=http:\/\/192.168.0.101:3000\r\n      - CMD_DB_URL=mysql:\/\/hackmd:hackmdpass@mariadb:3306\/hackmd\r\n      - CMD_CSP_ENABLE=false\r\n    ports:\r\n#      - 172.0.0.1:3100:3000   # localhost only by default\r\n      - 3100:3000   # localhost only by default\r\n    depends_on:\r\n      - mariadb\r\n    restart: unless-stopped\r\n\r\n  ##\r\n  # MariaDB\r\n  # see https:\/\/hub.docker.com\/_\/mariadb\/\r\n  mariadb:\r\n    image: mariadb:10.3\r\n    command: mysqld --character-set-server=utf8 --collation-server=utf8_general_ci\r\n    environment:\r\n      - MYSQL_USER=hackmd\r\n      - MYSQL_PASSWORD=hackmdpass\r\n      - MYSQL_DATABASE=hackmd\r\n      - MYSQL_RANDOM_ROOT_PASSWORD=true\r\n    restart: unless-stopped\r\n    volumes:\r\n      - mariadb_data:\/var\/lib\/mysql\r\n\r\nvolumes:\r\n  mariadb_data:\r\n<\/code><\/pre>\n<p>\u7f16\u8f91\u5b8c\u6210\u540e\u4fdd\u5b58\u3002<\/p>\n<h2>\u7f16\u8f91docker-compose.yml\u6587\u4ef6\u3002<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u300cHACKMD_URI\u300d\u3068\u300cHACKMD_URI_FOR_SERVER\u300d\u306e\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3092\u5916\u3059<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u300cHACKMD_URI\u300d\u306b\u306f\u30d6\u30e9\u30a6\u30b6\u3067CodiMD\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308bURL\u3092\u5165\u529b\u3057\u307e\u3059\uff0e\u4f8b\uff1ahttp:\/\/{\u30b5\u30fc\u30d0\u306eIP}:3100<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u300cHACKMD_URI_FOR_SERVER\u300d\u306f\u7279\u306b\u4f55\u3082\u7121\u3044\u306e\u3067\u3042\u308c\u3070\u300chttp:\/\/hackmd:3000 \u300d\u306b\u3057\u3066\u304a\u304f\uff0e<\/ul>\n<pre class=\"post-pre\"><code>version: '3'\r\n\r\nservices:\r\n  app:\r\n    build:\r\n      context: .\r\n      dockerfile: .\/Dockerfile\r\n    ports:\r\n      - 3000:3000    # localhost only by default\r\n    links:\r\n      - mongo:mongo\r\n      - elasticsearch:elasticsearch\r\n    depends_on:\r\n      - mongo\r\n      - elasticsearch\r\n    environment:\r\n      - MONGO_URI=mongodb:\/\/mongo:27017\/growi\r\n      - ELASTICSEARCH_URI=http:\/\/elasticsearch:9200\/growi\r\n      - PASSWORD_SEED=changeme\r\n      # - FILE_UPLOAD=mongodb   # activate this line if you use MongoDB GridFS rather than AWS\r\n      # - FILE_UPLOAD=local     # activate this line if you use local storage of server rather than AWS\r\n      # - MATHJAX=1             # activate this line if you want to use MathJax\r\n      # - PLANTUML_URI=http:\/\/  # activate this line and specify if you use your own PlantUML server rather than public plantuml.com\r\n      - HACKMD_URI=http:\/\/192.168.0.101:3100    # activate this line and specify HackMD server URI which can be accessed from GROWI client browsers\r\n      - HACKMD_URI_FOR_SERVER=http:\/\/hackmd:3000  # activate this line and specify HackMD server URI which can be accessed from this server container\r\n      # - FORCE_WIKI_MODE='public'    # activate this line to force wiki public mode\r\n      # - FORCE_WIKI_MODE='private'   # activate this line to force wiki private mode\r\n\r\n    command: \"dockerize\r\n              -wait tcp:\/\/mongo:27017\r\n              -wait tcp:\/\/elasticsearch:9200\r\n              -timeout 60s\r\n              npm run server:prod\"\r\n    restart: unless-stopped\r\n    volumes:\r\n      - growi_data:\/data\r\n\r\n  mongo:\r\n    image: mongo:3.6\r\n    restart: unless-stopped\r\n    volumes:\r\n      - mongo_configdb:\/data\/configdb\r\n      - mongo_db:\/data\/db\r\n\r\n  elasticsearch:\r\n    build:\r\n      context: .\/elasticsearch\r\n      dockerfile: .\/Dockerfile\r\n    environment:\r\n      - bootstrap.memory_lock=true\r\n      - \"ES_JAVA_OPTS=-Xms512m -Xmx512m\"  # increase amount if you have enough memory\r\n    ulimits:\r\n      memlock:\r\n        soft: -1\r\n        hard: -1\r\n    restart: unless-stopped\r\n    volumes:\r\n      - es_data:\/usr\/share\/elasticsearch\/data\r\n      - .\/elasticsearch\/config\/elasticsearch.yml:\/usr\/share\/elasticsearch\/config\/elasticsearch.yml\r\n\r\nvolumes:\r\n  growi_data:\r\n  mongo_configdb:\r\n  mongo_db:\r\n  es_data:\r\n\r\n<\/code><\/pre>\n<p>\u7f16\u8f91\u5b8c\u6210\u540e\u4fdd\u5b58\u3002<\/p>\n<h2>4. \u542f\u52a8<\/h2>\n<p>\u5982\u679c\u5230\u8fbe\u8fd9\u4e00\u6b65\uff0c\u5c06\u50cfGROWI\u4e00\u6837\u542f\u52a8\u3002<\/p>\n<pre class=\"post-pre\"><code># docker-compose up\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u5b9f\u884c\u3057\u305f\u3044\u6642<\/ul>\n<pre class=\"post-pre\"><code># docker-compose up -d\r\n<\/code><\/pre>\n<p>CodiMD\u4f1a\u81ea\u52a8\u5b89\u88c5\u5e76\u542f\u52a8\u3002<\/p>\n<ul class=\"post-ul\">CodiMD\u306b\u306f1GB\u307b\u3069\u306e\u30e1\u30e2\u30ea\u3092\u6d88\u8cbb\u3059\u308b\u305f\u3081\uff0celasticsearch\u306b\u5272\u308a\u5f53\u3066\u305f\u30e1\u30e2\u30ea\u306b\u3088\u3063\u3066\u306f\u8d77\u52d5\u3057\u306a\u3044\u3053\u3068\u304c\u3042\u308b\u305f\u3081\u6ce8\u610f<\/ul>\n<h2>5. \u8bbe\u7f6e\u7f51\u7ad9URL<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d44fb37434c4406ca124f\/67-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u5728\u300c\u6570\u636e\u5e93\u300d\u9009\u9879\u4e2d\uff0c\u8f93\u5165\u5148\u524d\u901a\u8fc7docker-compose.override.yml\u8fdb\u884c\u8bbe\u7f6e\u7684GROWI_URI\u5730\u5740\uff0c\u7136\u540e\u70b9\u51fb\u300c\u66f4\u65b0\u300d\u3002<\/p>\n<h2>6. \u7528\u6cd5<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d44fb37434c4406ca124f\/70-2.png\" alt=\"image.png\" \/><\/div>\n<h3>\u8bf7\u6ce8\u610f<\/h3>\n<p>\u5982\u679c\u662f\u65b0\u9875\u9762\u7684\u8bdd\uff0c\u4f60\u9700\u8981\u5148\u5728GROWI\u7684\u7f16\u8f91\u5668\u4e2d\u8f93\u5165\u4e00\u4e9b\u5185\u5bb9\uff0c\u7136\u540e\u521b\u5efa\u9875\u9762\uff0c\u624d\u80fd\u5728HackMD\u6a21\u5f0f\u4e0b\u8fdb\u884c\u7f16\u8f91\u3002<\/p>\n<h1>\u4fa7\u8fb9\u680f\uff08\u9009\u9879\uff09<\/h1>\n<p>\u5728v4.0.0\u4e4b\u540e\u4e0d\u518d\u9002\u7528\u3002<br \/>\n\u81eav4.2.12\u5f00\u59cb\uff0c\u5df2\u7ecf\u5b9e\u73b0\u4e86\u81ea\u5b9a\u4e49\u4fa7\u8fb9\u680f\u529f\u80fd\u3002<br \/>\n\u70b9\u51fb\u5de6\u4e0a\u89d2\u7684&#8221;\u521b\u5efa\/\u4fa7\u8fb9\u680f\u9875\u9762&#8221;\u5373\u53ef\u521b\u5efa\u4fa7\u8fb9\u680f\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d44fb37434c4406ca124f\/75-0.png\" alt=\"image.png\" \/><\/div>\n<h1>\u603b\u7ed3<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">GROWI\u3092Docker\u306b\u3066\u69cb\u7bc9\u3057\u305f\uff0e\u8077\u5834\u3067\u306f\u4ee5\u524d\u304b\u3089CodiMD\u3092\u4f7f\u7528\u3057\u3066\u3044\u305f\u3053\u3068\u3082\u3042\u308a\u30c4\u30fc\u30eb\u306e\u79fb\u884c\u306b\u5bfe\u3059\u308b\u969c\u5bb3\u306f\u306a\u304b\u3063\u305f\uff0e(CodiMD\u9023\u643a\u3067\u304d\u308b\u305f\u3081)<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u691c\u7d22\u6a5f\u80fd\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u6c42\u3081\u308b\u60c5\u5831\u3092\u7d20\u65e9\u304f\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u3088\u3046\u306b\u306a\u3063\u305f\uff0e<\/ul>\n<h1>\u8bf7\u53c2\u8003<\/h1>\n<h5>\u4ee5\u4e2d\u6587\u6bcd\u8bed\u8fdb\u884c\u7b80\u8ff0\uff1a<br \/>\n\u6784\u5efaGROWI<\/h5>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Growi\u3092Docker\u3067\u305f\u3066\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">GROWI Docks(docker-compose)<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">docker-compose\u3092\u4f7f\u3063\u3066GROWI\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u3088\u3046\uff01<\/ul>\n<h5>\u5f00\u653e\u7aef\u53e3<\/h5>\n<ul class=\"post-ul\">\u3010\u3059\u3050\u308f\u304b\u308b\u3011CentOS\u306e\u30dd\u30fc\u30c8\u958b\u653e\u306e\u3084\u308a\u65b9<\/ul>\n<h5>CodiMD\u5408\u4f5c<\/h5>\n<ul class=\"post-ul\">GROWI Docks(HackMD(CodiMD)\u9023\u643a)<\/ul>\n<h5>\u4fa7\u8fb9\u680f<\/h5>\n<ul class=\"post-ul\">Sidebar &#8211; GROWI Demo<\/ul>\n<h5>\u6210\u957f<\/h5>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">GROWI Docs<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">weseek\/growi<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">weseek\/growi-docker-compose<\/ul>\n<h5>HackMD\uff08CodiMD\uff09<\/h5>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">HackMD<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">CodiMD\u306b\u3088\u308b\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u4f5c\u6210\u306e\u3059\u3059\u3081<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u5927\u81f4\u63cf\u8ff0 \u6211\u5011\u5728\u5de5\u4f5c\u5834\u6240\u4f7f\u7528HackMD\uff08CodiMD\uff09\u4f5c\u70ba\u77e5\u8b58\u5171\u4eab\u7684\u5de5\u5177\uff0c\u5728\u7de8\u8f2f\u6642\u53ef\u4ee5\u540c\u6642\u67e5\u770b\u53f3\u5074\u7684\u9810\u89bd\uff0c\u4f7f [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-41134","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4f7f\u7528Docker\u6784\u5efaGROWI\uff08\u4e0eCodiMD\u96c6\u6210\uff09 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528docker\u6784\u5efagrowi\uff08\u4e0ecodimd\u96c6\u6210\uff09\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528Docker\u6784\u5efaGROWI\uff08\u4e0eCodiMD\u96c6\u6210\uff09\" \/>\n<meta property=\"og:description\" content=\"\u5927\u81f4\u63cf\u8ff0 \u6211\u5011\u5728\u5de5\u4f5c\u5834\u6240\u4f7f\u7528HackMD\uff08CodiMD\uff09\u4f5c\u70ba\u77e5\u8b58\u5171\u4eab\u7684\u5de5\u5177\uff0c\u5728\u7de8\u8f2f\u6642\u53ef\u4ee5\u540c\u6642\u67e5\u770b\u53f3\u5074\u7684\u9810\u89bd\uff0c\u4f7f [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528docker\u6784\u5efagrowi\uff08\u4e0ecodimd\u96c6\u6210\uff09\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-29T18:30:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T04:37:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d44fb37434c4406ca124f\/41-0.png\" \/>\n<meta name=\"author\" content=\"\u9038, \u79d1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u9038, \u79d1\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8docker%e6%9e%84%e5%bb%bagrowi%ef%bc%88%e4%b8%8ecodimd%e9%9b%86%e6%88%90%ef%bc%89%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8docker%e6%9e%84%e5%bb%bagrowi%ef%bc%88%e4%b8%8ecodimd%e9%9b%86%e6%88%90%ef%bc%89%e3%80%82\/\",\"name\":\"\u4f7f\u7528Docker\u6784\u5efaGROWI\uff08\u4e0eCodiMD\u96c6\u6210\uff09 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-11-29T18:30:30+00:00\",\"dateModified\":\"2024-04-29T04:37:09+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8docker%e6%9e%84%e5%bb%bagrowi%ef%bc%88%e4%b8%8ecodimd%e9%9b%86%e6%88%90%ef%bc%89%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8docker%e6%9e%84%e5%bb%bagrowi%ef%bc%88%e4%b8%8ecodimd%e9%9b%86%e6%88%90%ef%bc%89%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8docker%e6%9e%84%e5%bb%bagrowi%ef%bc%88%e4%b8%8ecodimd%e9%9b%86%e6%88%90%ef%bc%89%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528Docker\u6784\u5efaGROWI\uff08\u4e0eCodiMD\u96c6\u6210\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487\",\"name\":\"\u9038, \u79d1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g\",\"caption\":\"\u9038, \u79d1\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keyi\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8docker%e6%9e%84%e5%bb%bagrowi%ef%bc%88%e4%b8%8ecodimd%e9%9b%86%e6%88%90%ef%bc%89%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u4f7f\u7528Docker\u6784\u5efaGROWI\uff08\u4e0eCodiMD\u96c6\u6210\uff09 - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528docker\u6784\u5efagrowi\uff08\u4e0ecodimd\u96c6\u6210\uff09\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528Docker\u6784\u5efaGROWI\uff08\u4e0eCodiMD\u96c6\u6210\uff09","og_description":"\u5927\u81f4\u63cf\u8ff0 \u6211\u5011\u5728\u5de5\u4f5c\u5834\u6240\u4f7f\u7528HackMD\uff08CodiMD\uff09\u4f5c\u70ba\u77e5\u8b58\u5171\u4eab\u7684\u5de5\u5177\uff0c\u5728\u7de8\u8f2f\u6642\u53ef\u4ee5\u540c\u6642\u67e5\u770b\u53f3\u5074\u7684\u9810\u89bd\uff0c\u4f7f [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528docker\u6784\u5efagrowi\uff08\u4e0ecodimd\u96c6\u6210\uff09\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-11-29T18:30:30+00:00","article_modified_time":"2024-04-29T04:37:09+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d44fb37434c4406ca124f\/41-0.png"}],"author":"\u9038, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u9038, \u79d1","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8docker%e6%9e%84%e5%bb%bagrowi%ef%bc%88%e4%b8%8ecodimd%e9%9b%86%e6%88%90%ef%bc%89%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8docker%e6%9e%84%e5%bb%bagrowi%ef%bc%88%e4%b8%8ecodimd%e9%9b%86%e6%88%90%ef%bc%89%e3%80%82\/","name":"\u4f7f\u7528Docker\u6784\u5efaGROWI\uff08\u4e0eCodiMD\u96c6\u6210\uff09 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-11-29T18:30:30+00:00","dateModified":"2024-04-29T04:37:09+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8docker%e6%9e%84%e5%bb%bagrowi%ef%bc%88%e4%b8%8ecodimd%e9%9b%86%e6%88%90%ef%bc%89%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8docker%e6%9e%84%e5%bb%bagrowi%ef%bc%88%e4%b8%8ecodimd%e9%9b%86%e6%88%90%ef%bc%89%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8docker%e6%9e%84%e5%bb%bagrowi%ef%bc%88%e4%b8%8ecodimd%e9%9b%86%e6%88%90%ef%bc%89%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528Docker\u6784\u5efaGROWI\uff08\u4e0eCodiMD\u96c6\u6210\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487","name":"\u9038, \u79d1","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g","caption":"\u9038, \u79d1"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keyi\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8docker%e6%9e%84%e5%bb%bagrowi%ef%bc%88%e4%b8%8ecodimd%e9%9b%86%e6%88%90%ef%bc%89%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/41134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=41134"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/41134\/revisions"}],"predecessor-version":[{"id":85319,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/41134\/revisions\/85319"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=41134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=41134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=41134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}