QNAP: Running Joplin using Container Station

Evernote was a great notes taking application, with one of the best features set in the market and it has been there for years. Although Evernote exceeds in few options like the online editor and stuff, it has a paywall for extensive features.

Joplin is a perfect replacement for it with similar features for the self-hosting community. With Joplin you can just install the application and point it towards data storage location and it works mostly in the same way as any other online notes taking app. You can sync the data storage location to an online storage and have multiple devices point to it for storage, Or you can have your own Joplin server backend and sync all your devices with it’s API. As of now it doesn’t have a fully functional online interface but you can still do the administrative stuff.

You can host the Joplin server backend on your QNAP device using the following yaml:

version: '3'

name: joplin

services:
    db:
        container_name: joplin-db
        image: postgres:15-alpine
        volumes:
            - database:/var/lib/postgresql/data
        ports:
            - "5432:5432"
        restart: unless-stopped
        environment:
            - POSTGRES_PASSWORD= <enter secure password>
            - POSTGRES_USER=JoplinPGUser
            - POSTGRES_DB=JoplinDatabase
        networks:
          - joplinnet

    app:
        container_name: joplin-app
        image: joplin/server:latest
        depends_on:
            - db
        ports:
            - "32800:22300"
        restart: unless-stopped
        environment:
            - APP_PORT=22300
            - APP_BASE_URL=http://192.168.101.2:32800
            - DB_CLIENT=pg
            - POSTGRES_DATABASE=JoplinDatabase
            - POSTGRES_PASSWORD= <enter secure password>
            - POSTGRES_USER=JoplinPGUser
            - POSTGRES_PORT=5432
            - POSTGRES_HOST=db
        networks:
          - joplinnet

volumes:
    database:
    
networks:
    joplinnet: 
        name: joplinnet
        driver: bridge

Once hosted, just point all the applications to it for data storage.

Leave a Comment