{"id":4963,"date":"2023-07-07T14:00:08","date_gmt":"2023-07-07T06:00:08","guid":{"rendered":"http:\/\/blog.coolcoding.cn\/?p=4963"},"modified":"2023-08-18T22:12:27","modified_gmt":"2023-08-18T14:12:27","slug":"joplin%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/blog.coolcoding.cn\/?p=4963","title":{"rendered":"Joplin\u670d\u52a1\u5668"},"content":{"rendered":"<h1>\u670d\u52a1\u5668\u524d\u7f6e\u8981\u6c42\u73af\u5883<\/h1>\n<ul>\n<li>centos<\/li>\n<li>docker<\/li>\n<li>docker_componse<\/li>\n<\/ul>\n<h1>\u6b65\u9aa4<\/h1>\n<p>1\u3001\u5efa\u7acb \/data\/joplin\/docker-compose.yml \u6587\u4ef6\uff0c\u5185\u5bb9\u5982\u4e0b<\/p>\n<pre><code>version: '3'\nservices:\n    db:\n        image: postgres:15\n        volumes:\n            - .\/data:\/var\/lib\/postgresql\/data\n        ports:\n            - \"5432:5432\"\n        environment:\n            - POSTGRES_PASSWORD=joplin\n            - POSTGRES_USER=joplin\n            - POSTGRES_DB=joplin\n    app:\n        image: joplin\/server:latest\n        depends_on:\n          - db\n        ports:\n          - \"4876:22300\"\n        restart: unless-stopped\n        environment:\n          - APP_PORT=22300\n          - APP_BASE_URL=http:\/\/X.X.X.X:4876\n          - DB_CLIENT=pg\n          - POSTGRES_PASSWORD=joplin\n          - POSTGRES_DATABASE=joplin\n          - POSTGRES_USER=joplin\n          - POSTGRES_PORT=5432\n          - POSTGRES_HOST=db<\/code><\/pre>\n<p>\u4ee5\u4e0a4876\u4e3a\u81ea\u5b9a\u4e49\u5916\u7f51\u7aef\u53e3\uff0c\u53ef\u81ea\u884c\u4fee\u6539<br \/>\n\u4ee5\u4e0aX.X.X.X\u4e3a\u670d\u52a1\u5668\u516c\u7f51IP<\/p>\n<p>2\u3001\u5728\/data\/joplin\/\u76ee\u5f55\u4e2d\uff0c\u6267\u884c<\/p>\n<pre><code>docker-compose up -d<\/code><\/pre>\n<p>3\u3001\u5728\u5ba2\u6237\u7aef\u8bbf\u95ee <a href=\"http:\/\/X.X.X.X:4876\">http:\/\/X.X.X.X:4876<\/a><br \/>\n\u9ed8\u8ba4\u7528\u6237\u540dadmin@localhost\u5bc6\u7801admin<br \/>\n\u767b\u5f55web\u9875\u9762\u6210\u529f\u540e\uff0c\u5373\u53ef\u6dfb\u52a0\u591a\u4e2a\u7528\u6237<\/p>\n<h1>\u4f7f\u7528\u65b9\u6cd5<\/h1>\n<p>\u5728joplin\u5ba2\u6237\u7aef\uff0c\u5207\u5230\u9009\u9879\/\u540c\u6b65<br \/>\n\u540c\u6b65\u76ee\u6807\uff1a\u9009\u62e9 Joplin Server<br \/>\nJpolin\u670d\u52a1\u5668URL\uff1a\u9009\u62e9 <a href=\"http:\/\/X.X.X.X:4876\">http:\/\/X.X.X.X:4876<\/a><br \/>\nJoplin\u670d\u52a1\u5668\u90ae\u7bb1\uff1a\u9009\u62e9admin@localhost\u6216\u8005\u5728\u7ba1\u7406\u9875\u9762\u81ea\u884c\u521b\u5efa<br \/>\nJpolin\u670d\u52a1\u5668\u5bc6\u7801\uff1a\u9009\u62e9admin\u6216\u8005\u5728\u7ba1\u7406\u9875\u9762\u81ea\u884c\u521b\u5efa<br \/>\n\u70b9\u201c\u68c0\u67e5\u540c\u6b65\u914d\u7f6e\u201d\uff0c\u663e\u793a\u201c\u6210\u529f\uff01\u540c\u6b65\u914d\u7f6e\u770b\u8d77\u6765\u6ca1\u95ee\u9898\u201d\u5373\u53ef<\/p>\n<p>\u7136\u540e\u5728\u5ba2\u6237\u7aef\u70b9\u540c\u6b65\u5373\u53ef<\/p>\n<h1>\u6570\u636e\u5907\u4efd<\/h1>\n<p>\u5728\/data\/joplin\/\u76ee\u5f55\u4e2d\uff0c\u5148\u505c\u6b62\u670d\u52a1<\/p>\n<pre><code>docker-compose stop<\/code><\/pre>\n<p>\u7136\u540e\u628a\u76ee\u5f55 \/data\/joplin\/data \u6253\u4e2a\u5305\u5907\u4efd\u597d\u5c31\u884c<\/p>\n<pre><code>tar -cvf note.tar data\/<\/code><\/pre>\n<p>\u7136\u540e\u518d\u6b21\u542f\u52a8\u670d\u52a1<\/p>\n<pre><code>docker-compose up -d<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u670d\u52a1\u5668\u524d\u7f6e\u8981\u6c42\u73af\u5883 centos docker docker_componse \u6b65\u9aa4 1\u3001\u5efa\u7acb \/data\/j [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/4963"}],"collection":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4963"}],"version-history":[{"count":5,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/4963\/revisions"}],"predecessor-version":[{"id":5019,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/4963\/revisions\/5019"}],"wp:attachment":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4963"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4963"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}