Joplin is an open-source note-taking and to-do app that lets you organize Markdown-based notes in searchable notebooks and sync them across devices. It offers end-to-end encryption, a Web Clipper, and apps for Windows, macOS, Linux, Android, and iOS. Perfect for anyone who values privacy, flexibility, and full control over their data!
To keep your notes the same on all your devices, Joplin needs a synchronization target. With Joplin Server, you can host this target yourself on your VPS. This guide covers three options: Joplin Server as a One-Click App in just a few clicks, Joplin Server installed manually with Docker Compose, and the Joplin desktop app on a Linux server with a graphical interface. Afterward, you’ll connect your Joplin apps to your server.
- Your notes stay with you: Notes, attachments, and notebooks are stored in the database on your VPS, not with a cloud provider.
- Faster than WebDAV or file storage: Joplin Server is built for Joplin. The apps only check for changes instead of checking many individual files every time they run.
- Sharing requires Joplin Server: Sharing notebooks with other users and publishing individual notes as web pages are only possible with Joplin Server or Joplin Cloud.
- Multiple users: You can create accounts for family or your team and, if needed, set limits on individual file sizes and total storage.
- Available around the clock: Your smartphone can sync even when your PC is turned off.
Running your own Joplin Server is less suitable if you already run Nextcloud and only sync for yourself. In that case, Nextcloud is often enough as a synchronization target in Joplin. Joplin Server also won’t help if you want to edit notes in a browser, because it doesn’t have a browser editor.
Both are called Joplin, but they serve different purposes:
| Joplin Server | Joplin desktop app | |
|---|---|---|
| Purpose | Syncs notes between your devices | Write and organize notes |
| Runs on | VPS without a graphical interface (Docker) | Linux with a graphical interface |
| How you use it | Web interface for users and settings | Desktop window |
| Option in this guide | One-Click App or Docker Compose | Installation script |
For most people, Joplin Server is the right choice: it runs on the VPS, and you continue writing notes in the Joplin apps on your PC and smartphone.
The quickest way to run your own Joplin Server is through your VPS’s One-Click Apps. The app starts Joplin Server alongside a PostgreSQL database, is directly accessible via HTTPS when you use a domain, and automatically generates the admin password. You don’t need to set up a reverse proxy, certificate, or firewall rules.
- A Linux VPS (Debian or Ubuntu) with One-Click Apps set up. See Set up One-Click Apps for instructions.
- At least 1 GB of RAM; 2 GB of RAM is recommended. Right after startup, Joplin Server and PostgreSQL use just under 400 MB of RAM combined. Storage usage grows with your notes and, especially, attachments such as images and PDFs.
- Open your VPS in the ZapX dashboard and go to the One-Click Apps tab.
- Search the app catalog for Joplin and click Install app on its card.
- Use a custom subdomain or zap.cloud is already selected, with a random name. Leave the option enabled or enter your own name, for example
notes. With a domain, your server will be accessible via HTTPS. This is important because the Joplin apps send your password to this address. - You don’t need to enter anything under App configuration. It only contains automatically generated values.
- Click Queue installation.
Installation takes a few minutes. On the first startup, Joplin Server creates its database. Once the app is online, its address will redirect to the login page.
During installation, Joplin Server creates an admin account with the fixed email address admin@localhost. The One-Click App generates the password:
- Click the gear icon on the app card and go to App environment.
- Under Automatically generated values, find
SERVICE_PASSWORD_ADMIN. Click the eye icon to show the password, or click the icon next to it to copy it.SERVICE_USER_POSTGRESandSERVICE_PASSWORD_64_POSTGRESare the database credentials; you don’t need them. - Click Open login page on the app card or open the Access link.
- Sign in with
admin@localhostand the password from the App environment.
After you log in, Joplin Server displays the message “The default admin password has not been changed!” at the top. The generated password is Joplin’s initial password. Click Change it now, set your own password, and save it. You can also change the admin account’s email address on the same page. The password in the App environment will no longer work afterward; Joplin only uses it during the initial setup.
By default, Joplin Server sets the password to admin. The One-Click App replaces it with the generated password for new installations. If you can’t sign in with it, for example after reinstalling while keeping the data, the password is still admin. Sign in with it and change the password immediately. There is no public registration: only an admin can create new accounts.
Joplin recommends using a separate user without admin privileges for synchronization instead of the admin account:
- Click Admin at the top, then click Users on the left.
- Click Add user.
- Enter a Full name, Email, and a long password under Password and Repeat password. The email address is only used to sign in; Joplin won’t send emails unless you’ve set up a mail server.
- If needed, use Max item size and Max total size to limit the size of individual files and the user’s total storage. Leave these blank for no limits.
- Click Create user.
Create a separate account for each person. Use this account to sign in to the Joplin apps, as described below in “Sync Joplin apps with your server.”
Update Joplin Server in the app settings (gear icon) under App update. Click Check for updates, then install a new version with Apply update. If it says the app is up to date, there isn’t a newer version in the app catalog yet.
When a new version starts, Joplin Server automatically updates the database. After that, you can only go back to the old version by restoring a backup. So back up your VPS first, for example through Backups in the dashboard.
All notes, attachments, and users are stored in the app’s PostgreSQL database. It’s retained during updates. Each Joplin app also has a full copy of your notes. This still doesn’t replace a backup, because deleted notes disappear from all devices during the next synchronization.
To run Joplin Server without One-Click Apps, install it with Docker Compose. These steps use the same images as the One-Click App and follow the official Joplin Server guide.
| Hardware | Minimum | Recommended |
|---|---|---|
| CPU | 1 vCPU core | 2 vCPU cores |
| RAM | 1 GB | 2 GB |
| Storage | 5 GB | 20 GB or more, depending on attachments |
You’ll also need:
- A VPS running Debian or Ubuntu with root access over SSH.
- Docker with the Compose plugin. See Set up Docker on a Linux server for instructions.
- A domain or subdomain whose A record points to your VPS’s IP address, for example
joplin.example.com.
Joplin Server listens on port 22300. Don’t open this port to the outside: the container is only accessible locally, and external access goes through the reverse proxy over HTTPS. If you use ufw, allow only SSH, HTTP, and HTTPS:
sudo ufw allow OpenSSH
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw enable
Learn more about ports and firewalls in Open ports and manage the firewall on Linux.
Create a directory and a .env file with random passwords. Replace joplin.example.com with your domain:
mkdir -p /opt/joplin && cd /opt/joplin
printf 'APP_BASE_URL=https://joplin.example.com\nPOSTGRES_PASSWORD=%s\nDEFAULT_ADMIN_PASSWORD=%s\n' "$(openssl rand -hex 24)" "$(openssl rand -hex 16)" > .env
chmod 600 .env
Create a docker-compose.yml file in the same directory:
services:
db:
image: postgres:16
restart: unless-stopped
volumes:
- ./data/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_USER=joplin
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=joplin
healthcheck:
test: ["CMD", "pg_isready", "-U", "joplin", "-d", "joplin"]
interval: 10s
timeout: 5s
retries: 5
app:
image: joplin/server:3.7.5
restart: unless-stopped
depends_on:
db:
condition: service_healthy
ports:
- "127.0.0.1:22300:22300"
environment:
- APP_PORT=22300
- APP_BASE_URL=${APP_BASE_URL}
- DB_CLIENT=pg
- POSTGRES_HOST=db
- POSTGRES_PORT=5432
- POSTGRES_DATABASE=joplin
- POSTGRES_USER=joplin
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- DEFAULT_ADMIN_PASSWORD=${DEFAULT_ADMIN_PASSWORD}
The important lines:
APP_BASE_URLis your server’s public address. Joplin uses it to create all links and redirects. It must exactly match the address you’ll enter in the apps later.127.0.0.1:22300:22300makes Joplin Server accessible only on the VPS itself. It can only be reached from outside through the reverse proxy.DB_CLIENT=pgand thePOSTGRES_*values connect Joplin Server to the database. Without them, Joplin uses an SQLite file, which isn’t intended for long-term use.DEFAULT_ADMIN_PASSWORDreplaces the publicly known initial passwordadmin. Joplin only uses it when the database is empty.- Joplin Server stores notes and attachments in the database, which is located in the
data/postgresdirectory.
Start the containers:
docker compose up -d
First, check on the VPS that Joplin Server is running:
curl http://127.0.0.1:22300/api/ping
The response should be {"status":"ok","message":"Joplin Server is running"}. Now set up the reverse proxy as described in the next section. Then open https://joplin.example.com and sign in with admin@localhost and the password shown by running grep DEFAULT_ADMIN_PASSWORD /opt/joplin/.env. Then change it using Change it now and create a separate user for synchronization, as described in the easy setup section.
The Joplin apps send your password and notes to the server. So always use HTTPS. An nginx server block looks like this:
server {
listen 80;
server_name joplin.example.com;
client_max_body_size 200M;
location / {
proxy_pass http://127.0.0.1:22300;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
client_max_body_size allows larger attachments. nginx’s default (1 MB) would interrupt uploads of images and PDFs. See Set up a reverse proxy with nginx on Linux for instructions on configuring nginx, and get a certificate with Create an SSL certificate (Let's Encrypt).
With Caddy, a two-line configuration is enough: joplin.example.com { reverse_proxy 127.0.0.1:22300 }. Caddy will obtain the certificate automatically.
Back up the database regularly with pg_dump:
cd /opt/joplin
docker compose exec -T db pg_dump -U joplin joplin > joplin-$(date +%F).sql
Also keep a copy of .env and docker-compose.yml. Don’t store backups only on the VPS itself; copy them to another system.
- Back up the database as described above.
- Read the changes in the new version and enter the new tag in
docker-compose.yml, for examplejoplin/server:3.7.6. - Download the image and restart:
docker compose pull
docker compose up -d
When it starts, Joplin Server automatically updates the database. Then check that it’s running without errors with docker compose logs app.
On your PC and smartphone, use the regular Joplin apps from joplinapp.org. To sign in, you’ll need your server address—the One-Click App’s Access link or your domain—and the credentials of the user you created.
- In Joplin, open Tools > Options (on macOS, open Settings from the Joplin menu) and select Synchronisation.
- Under Synchronisation target, select Joplin Server.
- Enter your server address under Joplin Server URL, for example
https://notes-12345.zap.cloud, without a trailing slash. - Enter your user’s credentials under Joplin Server email and Joplin Server password.
- Click Check synchronisation configuration. If successful, Joplin will report that the configuration appears to be correct.
- Click OK to save, then click Synchronise.
In the Android or iOS app, open the side menu, tap Configuration, then Synchronisation. Select Joplin Server as the Synchronisation target and enter the same address and credentials as on your PC. Test the connection with Check synchronisation configuration.
Your notes are stored unencrypted in the database on your server unless you enable encryption. In an app, go to Encryption > Enable encryption and set a master password. Then enter the same master password on all your other devices. If you forget it, no one can decrypt your notes—not even you as the server admin.
- Joplin Server doesn’t have a browser editor. Under Items, you can only see the raw stored data.
- The Web Clipper for Firefox and Chrome communicates with the desktop app, not directly with the server.
- Joplin Server only sends invitation and password-reset emails if you configure a mail server using
MAILER_*variables. Without a mail server, reset passwords as an admin under Users.
If you want to use the Joplin desktop app directly on a Linux server, for example through a remote desktop connection, install it manually. This isn’t Joplin Server: the app needs its own synchronization target, such as your Joplin Server.
The following steps install the Joplin desktop app, not Joplin Server. The app can only be installed and used on a Linux system with a graphical user interface, such as Ubuntu Desktop 24.04 LTS.
| Hardware | Minimum | ZAP-Hosting recommendation |
|---|---|---|
| CPU | 1 vCPU core | 4 vCPU cores |
| RAM | 2 GB | 4 GB |
| Disk space | 250 MB | 250 MB |
Operating system: Linux with desktop support
From version 3.7.10 onward, the desktop app no longer requires libfuse2. Only if you’re installing an older version does this package need to be present: sudo apt install -y libfuse2 (on Ubuntu 24.04, the package is called libfuse2t64).
To make sure your system has the latest software and security updates, update it first. Run the following command:
sudo apt update && sudo apt upgrade -y
Once all the requirements are met, install Joplin as a regular user, not as root, with the following command:
wget -O - https://raw.githubusercontent.com/laurent22/joplin/dev/Joplin_install_and_update.sh | bash
Joplin will be downloaded and installed using the official installation script. Let the process finish; afterward, you can start the application right away. You can use the same command to update the app later.
After installation, adjust the basic settings to tailor Joplin to your workflow. You’ll find the configuration under Tools > Options.
Synchronization
Joplin supports several sync targets, including Joplin Server, Nextcloud, Dropbox, OneDrive, and WebDAV. To use your own Joplin Server, follow the steps in “Connect the desktop app” above.
Encryption
To protect your synced notes, enable end-to-end encryption in the “Encryption” settings. Then set up the master password on all devices that access your notes.
Editor & appearance
Joplin uses Markdown for notes. In the “Editor” settings, you can choose whether to show the preview automatically and adjust the font and font size.
Plugins & extensions
The built-in plugin manager lets you install additional features, such as diagram support, calendar integration, or advanced tag management.
Web Clipper
Optionally, you can enable the “Joplin Web Clipper” browser extension to save entire web pages or excerpts directly as notes.
With your own Joplin Server, you can sync your notes across all your devices without handing them over to a cloud provider. The quickest option is the One-Click App: it includes HTTPS and a generated admin password, so all you need to do is create your user and connect the apps. With Docker Compose, you have full control over every setting. Find help with Joplin itself in the Joplin Help Center; the guide to the desktop app on Windows is Use Joplin on a Windows Server.
