全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 2573|回复: 20

[经验] Joplin全平台笔记软件同步服务器搭建

[复制链接]
发表于 2023-1-20 22:38:12 | 显示全部楼层 |阅读模式
本帖最后由 30K的K3很流畅 于 2023-1-20 22:41 编辑

1:安装Docker.

2:安装docker-compose
  1. sudo curl -L "https://github.com/docker/compose/releases/download/v2.15.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
复制代码


3:设置文件权限
  1. sudo chmod +x /usr/local/bin/docker-compose
复制代码


4:新建joplin文件夹和docker-compose.yml文件
  1. # This is a sample docker-compose file that can be used to run Joplin Server
  2. # along with a PostgreSQL server.
  3. #
  4. # Update the following fields in the stanza below:
  5. #
  6. # POSTGRES_USER
  7. # POSTGRES_PASSWORD
  8. # APP_BASE_URL
  9. #
  10. # APP_BASE_URL: This is the base public URL where the service will be running.
  11. #  - If Joplin Server needs to be accessible over the internet, configure APP_BASE_URL as follows: https://example.com/joplin.
  12. #  - If Joplin Server does not need to be accessible over the internet, set the the APP_BASE_URL to your server's hostname.
  13. #     For Example: http://[hostname]:22300. The base URL can include the port.
  14. # APP_PORT: The local port on which the Docker container will listen.
  15. #  - This would typically be mapped to port to 443 (TLS) with a reverse proxy.
  16. #  - If Joplin Server does not need to be accessible over the internet, the port can be mapped to 22300.
  17. version: '3'
  18. services:
  19.     db:
  20.         image: postgres:13
  21.         volumes:
  22.             - ./data/postgres:/var/lib/postgresql/data
  23.         ports:
  24.             - "5432:5432"
  25.         restart: unless-stopped
  26.         environment:
  27.             - POSTGRES_PASSWORD=mjj
  28.             - POSTGRES_USER=mjj
  29.             - POSTGRES_DB=joplin
  30.     app:
  31.         image: joplin/server:latest
  32.         depends_on:
  33.             - db
  34.         ports:
  35.             - "22300:22300"
  36.         restart: unless-stopped
  37.         environment:
  38.             - APP_PORT=22300
  39.             - APP_BASE_URL=http://1.1.1.1:22300
  40.             - DB_CLIENT=pg
  41.             - POSTGRES_PASSWORD=mjj
  42.             - POSTGRES_DATABASE=joplin
  43.             - POSTGRES_USER=mjj
  44.             - POSTGRES_PORT=5432
  45.             - POSTGRES_HOST=db
复制代码

修改POSTGRES_USER、POSTGRES_PASSWORD、APP_BASE_URL,其中APP_BASE_URL填写你的服务器IP:端口。

5:cd到joplin目录,执行以下命令开始运行:
  1. docker-compose up -d
复制代码



6:登陆 web 管理页面:
https://你的IP:22300/login,默认帐号 admin@localhost,默认密码 admin。修改密码,添加用户。

7:设置joplin同步。

文档参考:
https://wzfou.com/joplin-tongbu/#ftoc-heading-7
https://github.com/laurent22/joplin/blob/dev/packages/server/README.md

软件下载:
https://joplinapp.org/download/

笔记文档:https://doc.yqm.co/web/#/p/9807b4c4cba6ff7697534036b5631604
视频记录;https://www.bilibili.com/video/BV1n84y1j7Rq

 楼主| 发表于 2023-1-22 04:28:04 | 显示全部楼层
Myan 发表于 2023-1-21 13:09
楼主视频里边的这款快捷整合很多软件的软件是啥名字??

CLaunch
https://hp.vector.co.jp/authors/VA018351/claunch.html
发表于 2023-1-20 22:39:17 | 显示全部楼层
技术贴 支持~
发表于 2023-1-20 22:50:46 | 显示全部楼层
好帖顶一下,可惜转到obsidian了
发表于 2023-1-20 22:51:42 | 显示全部楼层
顶一下,但用的是obsidian,可惜了
发表于 2023-1-20 23:08:28 | 显示全部楼层
joplin还可以,一直在用,辛苦分享
发表于 2023-1-20 23:09:09 | 显示全部楼层
已经改用notion了
发表于 2023-1-20 23:49:17 来自手机 | 显示全部楼层
可以Joplin
发表于 2023-1-20 23:56:25 | 显示全部楼层
一直在用自建的joplin

发表于 2023-1-21 02:29:03 来自手机 | 显示全部楼层
不知为啥装完之后跑不起来,端口看着是跑起来了,页面打开空白
 楼主| 发表于 2023-1-21 02:46:00 | 显示全部楼层
comet 发表于 2023-1-21 02:29
不知为啥装完之后跑不起来,端口看着是跑起来了,页面打开空白

查看Docker日志,看看具体报错,然后处理
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-17 23:15 , Processed in 0.089474 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表