GitHub原项目地址:https://github.com/laurent22/joplin
Docker镜像地址:https://hub.docker.com/r/joplin/server
官网地址:joplinapp.org

搭建

# 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://[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=${POSTGRES_PASSWORD}	#你的数据库密码
            - POSTGRES_USER=${POSTGRES_USER}	#你的数据库用户名
            - POSTGRES_DB=joplin	#你的数据库
    app:
        image: joplin/server:latest
        depends_on:
            - db
        ports:
            - "22300:22300"
        restart: unless-stopped
        environment:
            - APP_PORT=22300
            - APP_BASE_URL=${APP_BASE_URL}	#你的反向代理域名注意是https://域名
            - DB_CLIENT=pg
            - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}	#上面的密码
            - POSTGRES_DATABASE=joplin	#上面的数据库
            - POSTGRES_USER=${POSTGRES_USER}	#上面的用户名
            - POSTGRES_PORT=${POSTGRES_PORT}	#上面的端口(右边的docker内端口)
            - POSTGRES_HOST=db

然后运行

docker-compose up -d

虽然运行了,但想成功使用,还得去反向代理一下,配置成上面的域名

登录默认邮箱密码

邮箱:admin@localhost
密码:admin

后面自己去修改密码,邮箱好像改不了,虽然给了修改的框,但改不了