收起左侧

部署joplin资源错误

5
回复
1064
查看
[ 复制链接 ]

2

主题

0

回帖

0

牛值

江湖小虾

2024-11-15 15:25:20 显示全部楼层 阅读模式

飞牛本地存储好像用的是sql用了5432端口,我自己改用5433端口打开不了网站用的文档是:

version: '3' services: db: image: postgres:13 volumes:

  • ./data/postgres:/var/lib/postgresql/data ports:
  • "5433:5433" 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=https://joplin.cpolar.cn
  • DB_CLIENT=pg
  • POSTGRES_PASSWORD=joplin
  • POSTGRES_DATABASE=joplin
  • POSTGRES_USER=joplin
  • POSTGRES_PORT=5433
  • POSTGRES_HOST=db

后面改用mysql做数据库安装不起来卡在安装。文档

1, docker pull mysql:latest 2, docker run -name MysQL --restart always -p 3306:3306 -e MYSQL ROOT PASSWORD=[密码]mysql:lastest 3,docker pull joplin/server:latest 4, docker run -d --name Joplin --restart always -p 2230:22300 -eAPP BASE URL="[同步网址]’ -eAPP PORT=22300e DB CLIENT=mysql -e MYSQL DB=Joplin -e MYSQL PASSWORD=[密码] -e MYSQL USER=[用户] -eMYSQL PORT=3306 -e MYSQL HOST=MySQL -eTZ=Asia/Shanghai joplin/server:latest

收藏
送赞 1
分享

10

主题

388

回帖

200

牛值

社区共建团

社区上线纪念勋章社区共建团荣誉勋章

2024-11-15 18:02:27 显示全部楼层
试试linuxserver的
# 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 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:16
        volumes:
            - ./data/postgres:/var/lib/postgresql/data
        ports:
            - "5432:5432"
        restart: unless-stopped
        environment:
            - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
            - POSTGRES_USER=${POSTGRES_USER}
            - POSTGRES_DB=${POSTGRES_DATABASE}
    app:
        image: joplin/server:latest
        depends_on:
            - db
        ports:
            - "22300:22300"
        restart: unless-stopped
        environment:
            - APP_PORT=22300
            - APP_BASE_URL=${APP_BASE_URL}
            - DB_CLIENT=pg
            - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
            - POSTGRES_DATABASE=${POSTGRES_DATABASE}
            - POSTGRES_USER=${POSTGRES_USER}
            - POSTGRES_PORT=${POSTGRES_PORT}
            - POSTGRES_HOST=db

2

主题

8

回帖

0

牛值

江湖小虾

2024-12-18 17:32:18 显示全部楼层
Joplin  有人部署功能吗? 飞牛的docker ,识别不了数据库的主机
我部署成功了,需要docker先部署postegresql,再用Joplin去连接端口。 参考https://post.smzdm.com/p/avp6re8m/ 需要注意的是教程里postegre端口被占用了,改成其他的就行了。  详情 回复
2025-2-24 11:40

0

主题

2

回帖

0

牛值

江湖小虾

2025-2-24 11:40:17 显示全部楼层
我部署成功了,需要docker先部署postegresql,再用Joplin去连接端口。
参考https://post.smzdm.com/p/avp6re8m/
需要注意的是教程里postegre端口被占用了,改成其他的就行了。
多谢,我试试  详情 回复
2025-2-28 15:58

2

主题

8

回帖

0

牛值

江湖小虾

2025-2-28 15:58:08 显示全部楼层
多谢,我试试

0

主题

2

回帖

0

牛值

江湖小虾

2025-5-23 23:05:37 显示全部楼层
joplin一直重启,报错。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则