Centos 7 搭建 Joplin Server

搭建 Joplin Server

创建 /data/joplin/ 目录,在目录中创建 /data/joplin/docker-compose.yml 文件

1
2
3
4
5
mkdir -p /data/joplin

cd data/joplin

vim docker-compose.yml
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
version: '3'
services:
    db:
        image: postgres:13
        volumes:
            - ./data/postgres:/var/lib/postgresql/data
        ports:
            - "5432:5432"
        restart: unless-stopped
        environment:
            - POSTGRES_PASSWORD=joplin
            - POSTGRES_USER=joplin
            - 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://IP:22300  # 改为自己的
            - DB_CLIENT=pg
            - POSTGRES_PASSWORD=joplin
            - POSTGRES_DATABASE=joplin
            - POSTGRES_USER=joplin
            - POSTGRES_PORT=5432
            - POSTGRES_HOST=db

/data/joplin/ 目录下,执行 docker compose up -d

在浏览器导航栏访问 http://IP:22300 (本机 IP 加上端口号)

  • 用户名:admin@localhost
  • 密码:admin

更改密码

/images/documents/Centos7搭建JoplinServer/1.jpg
(图1)

客户端配置同步

/images/documents/Centos7搭建JoplinServer/2.jpg
(图2)
/images/documents/Centos7搭建JoplinServer/3.jpg
(图3)
/images/documents/Centos7搭建JoplinServer/4.jpg
(图4)

0%