飞牛本地存储好像用的是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 |