一直用joplin做云笔记本,完全免费开源,同步一般用onedrive,用onedrive同步速度慢,而且容易出错。现在可以自己架设自己的同步服务器。

还是用docker安装,安装方法https://www.0514.eu.org/?p=17

建个目录,建个docker-compose.yml文件,编辑docker-compose.yml

# 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://[hostname]: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:15
        volumes:
            - ./data/postgres:/var/lib/postgresql/data
        ports:
            - "5432:5432"  # 左边的端口可以更换,右边不要动!
        restart: unless-stopped
        environment:
            - POSTGRES_PASSWORD=xxxxxx # 改成你自己的密码
            - POSTGRES_USER=xxxxxx  # 改成你自己的用户名
            - POSTGRES_DB=joplin
    app:
        image: joplin/server:latest
        depends_on:
            - db
        ports:
            - "22300:22300" # 左边的端口可以更换,右边不要动!
        restart: unless-stopped
        environment:
            - APP_PORT=22300
            - APP_BASE_URL=https://??.??.eu.org # 改成反代的域名
            - DB_CLIENT=pg
            - POSTGRES_PASSWORD=xxxxxx # 与上面的密码对应!
            - POSTGRES_DATABASE=joplin
            - POSTGRES_USER=xxxxxx  # 与上面的用户名对应!
            - POSTGRES_PORT=5432 # 与上面右边的对应!
            - POSTGRES_HOST=db

再用Nginx Proxy Manager做个反代
file
file

默认账号:admin@localhost

默认密码:admin

file

最后修改日期: 2023/07/10

作者

留言

撰写回覆或留言

发布留言必须填写的电子邮件地址不会公开。