{"id":39365,"date":"2020-02-22T16:08:26","date_gmt":"2020-02-22T08:08:26","guid":{"rendered":"http:\/\/4563.org\/?p=39365"},"modified":"2020-02-22T16:08:26","modified_gmt":"2020-02-22T08:08:26","slug":"%e8%af%b7%e6%95%99%e5%90%84%e4%bd%8d%e8%80%81%e5%93%a5-docker%e5%ae%89%e8%a3%85%e7%9a%84odoo%e6%80%8e%e4%b9%88%e8%a3%85%e6%8f%92%e4%bb%b6","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=39365","title":{"rendered":"\u8bf7\u6559\u5404\u4f4d\u8001\u54e5 docker\u5b89\u88c5\u7684odoo\u600e\u4e48\u88c5\u63d2\u4ef6"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>skywing<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-8 15:19:47\t<\/p>\n<h3>\u8bf7\u6559\u5404\u4f4d\u8001\u54e5 docker\u5b89\u88c5\u7684odoo\u600e\u4e48\u88c5\u63d2\u4ef6<\/h3>\n<p>  \t\tdocker\u88c5odoo\u771f\u7684\u65b9\u4fbf\uff0c\u4f46\u5c31\u662f\u4e0d\u77e5\u9053\u5982\u4f55\u88c5\u63d2\u4ef6\uff0c\u6211\u5df2\u7ecf\u628aaddon\u6307\u5b9a\u4e3a\u5bbf\u4e3b\u673a\u7684\u4e00\u4e2a\u6587\u4ef6\u5939\uff0c\u628a\u63d2\u4ef6\u62d6\u5230\u8fd9\u4e2a\u6587\u4ef6\u5939\uff0c\u5728odoo\u4e0a\u66f4\u65b0\u672c\u5730\u63d2\u4ef6\u5e93\uff0c\u4f46\u8fd8\u662f\u6ca1\u6709\u770b\u5230\u8fd9\u4e2a\u63d2\u4ef6\uff0c\u8bf7\u95ee\u5e94\u8be5\u600e\u4e48\u5f04\uff0c\u6211\u4e4b\u524d\u76f4\u63a5\u5b89\u88c5\u7684odoo\u8fd9\u6837\u662f\u80fd\u6b63\u5e38\u5b89\u88c5\u63d2\u4ef6\u7684\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>skywing<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-8 15:40:02\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u9876\u4e00\u4e0b\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>skywing<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-8 15:59:07\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u9876\u4e00\u4e0b\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>skywing<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-8 16:21:52\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u9876\u4e0b\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>skywing<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-8 17:19:05\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u9876\u4e00\u4e0b\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>xcy1020<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-8 17:21:00\t<\/p>\n<h3><\/h3>\n<p>  \t\tVOLUME \u8bbe\u7f6e\u4e00\u4e0b\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>skywing<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-8 17:28:05\t<\/p>\n<h3><\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 skywing \u4e8e 2019-12-8 17:32 \u7f16\u8f91 <\/p>\n<p> xcy1020 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-8 17:21<br \/>  VOLUME \u8bbe\u7f6e\u4e00\u4e0b<\/p>\n<p>  \u80fd\u8be6\u7ec6\u8bf4\u8bf4\u5417\uff1f<br \/>  \u4ee5\u4e0b\u662f\u6211\u7684docker-compose.yml<br \/>  version: &#8216;2&#8217;<br \/>  services:<br \/>  web:<br \/>  &nbsp; &nbsp; image: odoo:12.0<br \/>  &nbsp; &nbsp; depends_on:<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&#8211; db<br \/>  &nbsp; &nbsp; ports:<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&#8211; &quot;8069:8069&quot;<br \/>  &nbsp; &nbsp; volumes:<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&#8211; odoo-web-data:\/var\/lib\/odoo<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&#8211; .\/config:\/etc\/odoo<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&#8211; .\/addons:\/mnt\/extra-addons<br \/>  db:<br \/>  &nbsp; &nbsp; image: postgres:10<br \/>  &nbsp; &nbsp; environment:<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&#8211; POSTGRES_DB=postgres<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&#8211; POSTGRES_PASSWORD=odoo<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&#8211; POSTGRES_USER=odoo<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&#8211; PGDATA=\/var\/lib\/postgresql\/data\/pgdata<br \/>  &nbsp; &nbsp; volumes:<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&#8211; odoo-db-data:\/var\/lib\/postgresql\/data\/pgdata<br \/>  volumes:<br \/>  odoo-web-data:<br \/>  odoo-db-data:<br \/>  \u628a\u8981\u5b89\u88c5\u7684\u63d2\u4ef6\u653e\u5230.\/addons\u6587\u4ef6\u5939\u91cc\u4e86\uff0cdocker container exec -it odoo \/bin\/bash \u8fdb\u5165docker-odoo \u8fd0\u884c ls \/mnt\/extra-addons \u4e5f\u80fd\u770b\u5230\u63d2\u4ef6\u6587\u4ef6\uff0c\u4f46\u66f4\u65b0\u5e94\u7528\u6570\u636e\u5e93\u5c31\u662f\u770b\u4e0d\u5230\u3002\u3002\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>xcy1020<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-8 17:40:09\t<\/p>\n<h3><\/h3>\n<p>  \t\tskywing \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-8 17:28<br \/>  \u80fd\u8be6\u7ec6\u8bf4\u8bf4\u5417\uff1f<br \/>  \u4ee5\u4e0b\u662f\u6211\u7684docker-compose.yml<\/p>\n<p> \u90a3\u5c31\u91cd\u542f\u4e00\u4e0bodoo\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>skywing<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-8 22:53:53\t<\/p>\n<h3><\/h3>\n<p>  \t\txcy1020 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-8 17:40<br \/>  \u90a3\u5c31\u91cd\u542f\u4e00\u4e0bodoo<\/p>\n<p> \u8bd5\u8fc7\u4e86\uff0c\u6ca1\u7528\u3002\u3002\u3002\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>skywing \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/39365"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=39365"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/39365\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=39365"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=39365"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=39365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}