Self-host Joplin Server

Sync server for the Joplin note-taking apps, with user accounts and note sharing, run in Docker with SQLite or PostgreSQL. Run your own Joplin Server on an always-on EnvHaven workspace by asking its coding agent: one request installs it, puts it on an HTTPS address and locks it down. What the agent takes care of, and the manual route.

Updated November 23, 2026

Running your own Joplin Server usually means a list of server chores: a machine that stays on, Docker or a runtime, a reverse proxy with certificates, a domain, and the settings that make Joplin Server behave behind all of it. On an EnvHaven workspace you skip the list. You ask the coding agent, and it does the work while you watch.

Just ask your agent

Open a Plus workspace (Joplin Server runs in Docker, which Plus and Pro include), tap Launch to start any coding agent (Claude Code, Codex, OpenCode or another), and ask it:

Set up Joplin Server on this workspace and give me the link. Follow https://envhaven.com/self-host/joplin-server.md

Then open the link it sends and create your Joplin Server account straight away, before anyone else finds the address. That is the whole request: the address in it is this page’s Markdown copy, and the agent follows the instructions for it further down, with every setting Joplin Server’s docs require.

Or keep it private with Tailscale

The preview URL puts Joplin Server on the public internet, which suits something other people need to reach. For an app only you and your household use, your tailnet is the better home: Tailscale gives Joplin Server an HTTPS address that only your own devices, signed in to your Tailscale account, can open. Save a Tailscale auth key in the workspace’s Vars pane as TS_AUTHKEY, and ask the agent:

Set up Joplin Server on my tailnet instead of the preview URL. Follow https://envhaven.com/self-host/joplin-server.md and https://envhaven.com/guides/self-host-privately-with-tailscale.md
  • A Tailscale container runs beside Joplin Server, so it keeps its private address through workspace restarts and updates, and every app you set up this way gets an address of its own.
  • Anything other services have to reach, such as a webhook, still needs a public address. Keep self-hosted apps private with Tailscale covers both, and what Tailscale’s free plan includes.
At a glance
What it isFiles, photos and documents
LicenseJoplin Server Personal Use License v.1: personal, non-commercial use only
Runs asDocker (joplin/server)
MemoryNot documented
Plan that fitsPlus or larger
Web port22300
Documentationgithub.com/laurent22/joplin/blob/server-v3.7.6/packages/server/README.md

What your agent takes care of

  • Installing it. Joplin Server runs from the official image, joplin/server, with its data in folders under ~/apps/joplin-server.
  • Putting it on an HTTPS address. The workspace’s preview URL serves it, and your own domain can too.
  • Locking it down first. What Joplin Server’s docs say to set before it faces the internet, below.
  • Telling you what to back up: the PostgreSQL database (./data/postgres in the sample compose file), which holds item contents by default and the filesystem path set in STORAGE_DRIVER, if item contents are stored outside the database (docs).

The settings it needs behind a proxy

  • APP_BASE_URL: Base public URL where the service runs; for internet access it is set to a URL such as https://example.com/joplin, otherwise to the host name with the port. (docs)
  • APP_PORT: Local port the container listens on; typically mapped to 443 behind a reverse proxy, or 22300 when not on the internet. (docs)
  • X-Real-IP: The reverse proxy has to set this header to the client address, replacing any client value; Joplin Server uses it for rate limiting and logging. (docs)

Before it faces the internet

  • The server starts with admin user admin@localhost and password admin; change the credentials on the admin page before exposing it. (docs)
  • Use a separate non-admin user for syncing. (docs)
  • The proxy must overwrite X-Real-IP, otherwise clients can pick their own IP address and bypass rate limits. (docs)
  • The sample database password is joplin; the docs say to update POSTGRES_USER and POSTGRES_PASSWORD in the compose file. (docs)

Things to ask next

Everything after the install is one more sentence to the agent. Some that come up:

  • “Import the files in ~/artifacts, keeping their folders.”
  • “Check how much disk it uses, and warn me when the workspace passes 80 percent.”
  • “Move Joplin Server to app.example.com.” Add the domain on the dashboard’s Domains page with a CNAME to domains.envhaven.app, and the agent changes Joplin Server’s address settings to match.
  • “Update Joplin Server to the latest release.” It pulls the new image and recreates the container, data kept.

Instructions for the agent

The agent reads these from the page’s Markdown copy. They also work pasted on their own, if you would rather give them in your own words.

Set up Joplin Server on this workspace and serve it at my preview URL.
- Use Docker Compose with the official image, joplin/server, starting from the docs' compose file: https://github.com/laurent22/joplin/blob/server-v3.7.6/docker-compose.server.yml. If `docker compose` is missing, install the Compose plugin into ~/.docker/cli-plugins first.
- The docs' setup includes: db (postgres:16 in the sample compose file; SQLite is the default for testing).
- Keep the compose file in ~/apps/joplin-server and all of its data in folders there (bind mounts, not named volumes), with restart: unless-stopped on every service.
- This server has no firewall, so publish no port on its public IP, and drop host networking and privileged mode from the docs' compose file. Docker runs on the host: connect this workspace to the compose network and relay my preview URL's port to Joplin Server's port 22300.
- The preview URL terminates HTTPS in front of Joplin Server: serve plain HTTP on its port, and trust the forwarded headers the relay passes on.
- Set what "The settings it needs behind a proxy" lists on https://envhaven.com/self-host/joplin-server.md for the preview URL, as Joplin Server's docs describe for running behind a proxy; skip any that apply only when Joplin Server serves HTTPS itself.
- Before the preview URL serves it, apply what "Before it faces the internet" lists on https://envhaven.com/self-host/joplin-server.md.
- When it answers at the preview URL, send me the link and tell me what to back up.
- If I asked for my tailnet instead of the preview URL, set Joplin Server up the same way but follow https://envhaven.com/guides/self-host-privately-with-tailscale.md for the network: no preview URL, no relay.

What to know

  • In Docker, Joplin Server’s containers keep running when the workspace restarts or updates. The relay from the preview URL is a process in the workspace, so after a restart or an update, ask the agent to restore it.
  • The server license allows personal, non-commercial use only; the commercial licence is Joplin Server Business. (docs)
  • SQLite is the default and meant for testing; production use should connect to a database. (docs)
  • Item contents are stored in the database by default and can be moved to the filesystem or S3 with STORAGE_DRIVER because they can be large. (docs)
  • The docs say nothing about request or upload size limits, Cloudflare, chunking or email (SMTP) settings: checked the server README, the sample compose file and .env-sample. (docs)
  • A workspace has one preview URL and one custom domain, both serving the same port, so it puts one app on a public address at a time.

Without a workspace

The manual route, on a server you run:

  1. Rent a Linux VPS, secure SSH, and create a user for the app.
  2. Install Docker and write a compose file from the official image.
  3. Put a reverse proxy in front (Caddy, nginx or Traefik), get certificates, and point a domain at the server.
  4. Set the proxy settings listed above for that domain, and pass WebSocket upgrades through the proxy if the app uses them.
  5. Keep the firewall closed except for the proxy, and schedule backups and updates.

Joplin Server’s own documentation covers each step for its install methods.

Sources

Facts about Joplin Server come from its own documentation, checked on 2026-11-23: