Docker Compose
version: '3'
services:
db:
image: postgres:13
volumes:
- /path-to-data/Joplin:/var/lib/postgresql/data
ports:
- "5432:5432"
restart: unless-stopped
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=joplin
- POSTGRES_DB=postgres
app:
image: joplin/server:latest
ports:
- "22300:22300"
restart: unless-stopped
environment:
- APP_PORT=22300
- APP_BASE_URL=https://your.domain.com
- DB_CLIENT=pg
- POSTGRES_PASSWORD=password
- POSTGRES_DATABASE=postgres
- POSTGRES_USER=joplin
- POSTGRES_PORT=5432
- POSTGRES_HOST=db
No Comments