{"id":177939,"date":"2020-05-05T11:33:47","date_gmt":"2020-05-05T03:33:47","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=177939"},"modified":"2020-04-23T10:54:31","modified_gmt":"2020-04-23T02:54:31","slug":"docker-install-redmine","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/docker-install-redmine.html","title":{"rendered":"Docker\u5b89\u88c5Redmine"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u5728\u672c\u7bc7\u6587\u7ae0\u91cc\u5c0f\u7f16\u7ed9\u5927\u5bb6\u6574\u7406\u7684\u662f\u5173\u4e8edocker\u5b89\u88c5redmine\u6b65\u9aa4\u548c\u76f8\u5173\u4ee3\u7801\uff0c\u9700\u8981\u7684\u670b\u53cb\u4eec\u5b66\u4e60\u4e0b\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
\u4e0b\u8f7d\u955c\u50cf (\u53ef\u9009\u6b65\u9aa4, \u7565\u8fc7\u65f6\u4f1a\u5728\u7b2c3,4\u6b65\u4e2d\u81ea\u52a8\u5b89\u88c5)<\/strong><\/div>\n
\r\ndocker pull docker.io\/sameersbn\/redmine\r\ndocker pull docker.io\/sameersbn\/postgresql\r\n<\/pre>\n
\u542f\u52a8SQL<\/strong><\/div>\n
\r\ndocker run --name=postgresql-redmine -d --env='DB_NAME=redmine_production' --env='DB_USER=redmine' --env='DB_PASS=password' --restart=always --volume=\/srv\/docker\/redmine\/postgresql:\/var\/lib\/postgresql sameersbn\/postgresql\r\n<\/pre>\n
\u542f\u52a8Redmine<\/strong><\/div>\n
\r\ndocker run --name=redmine -d --link=postgresql-redmine:postgresql --publish=10083:80 --env='REDMINE_PORT=10083' --restart=always --volume=\/srv\/docker\/redmine\/redmine:\/home\/redmine\/data sameersbn\/redmine\r\n<\/pre>\n
\u5185\u5bb9\u6269\u5c55<\/strong><\/div>\n

\u4f7f\u7528Docker \u5b89\u88c5 Redmine
\n\u90e8\u7f72\u6570\u636e\u5e93\u5bb9\u5668
\nRedmine \u4f9d\u8d56\u6570\u636e\u5e93\uff0c\u6211\u4eec\u540c\u6837\u4f7f\u7528\u5bb9\u5668\u90e8\u7f72\u76f8\u5173\u6570\u636e\u5e93\uff0c\u8fd9\u91cc\u53ef\u4ee5\u7528 PostgreSQL \u6570\u636e\u5e93\u548c MySQL \u6570\u636e\u5e93\uff0c\u5206\u522b\u4f7f\u7528\u5982\u4e0b<\/p>\n

\u547d\u4ee4\u5b89\u88c5<\/strong><\/div>\n
PostgreSQL<\/strong><\/span><\/div>\n
\r\ndocker run -d --name some-postgres -e POSTGRES_PASSWORD=secret -e POSTGRES_USER=redmine postgres\r\n<\/pre>\n
MySQL<\/strong><\/span><\/div>\n
\r\ndocker run -d --name some-mysql -e MYSQL_ROOT_PASSWORD=secret -e MYSQL_DATABASE=redmine mysql\r\n<\/pre>\n

\u547d\u4ee4\u4e2d\u7684 name \u548c password \u53ef\u4ee5\u81ea\u5df1\u6307\u5b9a\uff0c\u5206\u522b\u662f\u5bb9\u5668\u540d\u548c\u6570\u636e\u5e93\u5bc6\u7801\u3002<\/p>\n

\u90e8\u7f72Redmine<\/strong><\/div>\n

\u4ee5\u4e0b\u547d\u4ee4\u8fde\u63a5 PostgresSQL \u6570\u636e\u5e93<\/p>\n

\r\ndocker run -d --name redmine -e REDMINE_DB_PASSWORD=secret -p 3000:3000 -v \/my\/own\/datadir:\/usr\/src\/redmine\/files --link some-postgres:postgres redmine\r\n<\/pre>\n

\u81f3\u6b64\uff0c\u5df2\u7ecf\u80fd\u591f\u5728\u672c\u673aIP\u5730\u5740\u76843000\u7aef\u53e3\u8bbf\u95ee\u5230 redmine \u670d\u52a1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

docker pull docker.io\/sameersbn\/redmine docker pull doc […]<\/p>\n","protected":false},"author":63,"featured_media":177940,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-177939","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/177939","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=177939"}],"version-history":[{"count":1,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/177939\/revisions"}],"predecessor-version":[{"id":177941,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/177939\/revisions\/177941"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/177940"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=177939"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=177939"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=177939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}