跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • Joplin全平台笔记软件同步服务器搭建
未分類
21 1 月 2023

Joplin全平台笔记软件同步服务器搭建

30K的K3很流畅 大佬有话说 :

Joplin全平台笔记软件同步服务器搭建

本帖最后由 30K的K3很流畅 于 2023-1-20 22:41 编辑

1:安装Docker.

2:安装docker-compose
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:设置文件权限
sudo chmod +x /usr/local/bin/docker-compose

4:新建joplin文件夹和docker-compose.yml文件
# This is a sample docker-compose file that can be used to run Joplin Server
# along with a PostgreSQL server.
#
# Update the following fields in the stanza below:
#
# POSTGRES_USER
# POSTGRES_PASSWORD
# APP_BASE_URL
#
# APP_BASE_URL: This is the base public URL where the service will be running.
#- If Joplin Server needs to be accessible over the internet, configure APP_BASE_URL as follows: https://example.com/joplin.
#- If Joplin Server does not need to be accessible over the internet, set the the APP_BASE_URL to your server’s hostname.
#   For Example: http://:22300. The base URL can include the port.
# APP_PORT: The local port on which the Docker container will listen.
#- This would typically be mapped to port to 443 (TLS) with a reverse proxy.
#- If Joplin Server does not need to be accessible over the internet, the port can be mapped to 22300.
version: ‘3’
services:
    db:
      image: postgres:13
      volumes:
            – ./data/postgres:/var/lib/postgresql/data
      ports:
            – "5432:5432"
      restart: unless-stopped
      environment:
            – POSTGRES_PASSWORD=mjj
            – POSTGRES_USER=mjj
            – POSTGRES_DB=joplin
    app:
      image: joplin/server:latest
      depends_on:
            – db
      ports:
            – "22300:22300"
      restart: unless-stopped
      environment:
            – APP_PORT=22300
            – APP_BASE_URL=http://1.1.1.1:22300
            – DB_CLIENT=pg
            – POSTGRES_PASSWORD=mjj
            – POSTGRES_DATABASE=joplin
            – POSTGRES_USER=mjj
            – POSTGRES_PORT=5432
            – POSTGRES_HOST=db

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

5:cd到joplin目录,执行以下命令开始运行:
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

[MJJ] 大佬有话说 :

技术贴 支持~https://cdn.jsdelivr.net/gh/master-of-forums/master-of-forums/public/images/patch.gif

Suchn 大佬有话说 :

好帖顶一下,可惜转到obsidian了

qrk 大佬有话说 :

顶一下,但用的是obsidian,可惜了

大喵先生 大佬有话说 :

joplin还可以,一直在用,辛苦分享

louiejordan 大佬有话说 :

已经改用notion了https://cdn.jsdelivr.net/gh/master-of-forums/master-of-forums/public/images/patch.gif

weixiangnan 大佬有话说 :

可以Joplin

包子打的 大佬有话说 :

一直在用自建的joplin

comet 大佬有话说 :

不知为啥装完之后跑不起来,端口看着是跑起来了,页面打开空白

30K的K3很流畅 大佬有话说 :

comet 大佬有话说 : 2023-1-21 02:29
不知为啥装完之后跑不起来,端口看着是跑起来了,页面打开空白

查看Docker日志,看看具体报错,然后处理

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具