self-hosted-cookbook/apps/notes/joplin.md
Tomasz Borychowski 960d7d7502 joplin
2021-01-27 21:15:31 +00:00

1.2 KiB

Joplin Server

Joplin is a free note taking app, available for desktop & mobile. This is the Joplin sync server.


docker-compose.yml

---
version: '3'
services:
    db:
        image: postgres:13.1
        container_name: joplin-db
        ports:
            - "5432:5432"
        restart: unless-stopped
        environment:
            - POSTGRES_DB=joplin
            - POSTGRES_USER=joplin
			- POSTGRES_PASSWORD=joplin
        volumes:
		    - ./data:/var/lib/postgresql/data
    app:
        image: joplin/server:latest
        container_name: joplin
        depends_on:
            - db
        ports:
            - "22300:22300"
        restart: unless-stopped
        environment:
            - APP_BASE_URL=https://joplin.example.com
            - APP_PORT=22300
            - DB_CLIENT=pg
            - POSTGRES_HOST=db
            - POSTGRES_DATABASE=joplin
            - POSTGRES_USER=joplin
            - POSTGRES_PASSWORD=joplin
            - POSTGRES_PORT=5432

Login with

email: admin@localhost password: admin