Self-host wallabag
A self-hosted PHP application for saving web pages to read later; it extracts the article content and stores it with tags and annotations. Run your own wallabag 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 wallabag 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 wallabag 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 (wallabag 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 wallabag on this workspace and give me the link. Follow https://envhaven.com/self-host/wallabag.md
Then open the link it sends and create your wallabag 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 wallabag’s docs require.
Or keep it private with Tailscale
The preview URL puts wallabag 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 wallabag 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 wallabag on my tailnet instead of the preview URL. Follow https://envhaven.com/self-host/wallabag.md and https://envhaven.com/guides/self-host-privately-with-tailscale.md
- A Tailscale container runs beside wallabag, 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 is | Bookmarks, feeds and reading |
| License | MIT |
| Runs as | Docker (wallabag/wallabag) |
| Memory | Not documented |
| Plan that fits | Plus or larger |
| Web port | 80 |
| Documentation | doc.wallabag.org/admin/installation/installation/ |
What your agent takes care of
- Installing it. wallabag runs from the official image,
wallabag/wallabag, with its data in folders under~/apps/wallabag. - Putting it on an HTTPS address. The workspace’s preview URL serves it, and your own domain can too.
- Locking it down first. What wallabag’s docs say to set before it faces the internet, below.
- Telling you what to back up: the database (SQLite file under data/db in the Docker image volume /var/www/wallabag/data, or MySQL/MariaDB/PostgreSQL), web/assets/images (retrieved pictures; /var/www/wallabag/web/assets/images in Docker) and app/config/parameters.yml (native installs) (docs).
The settings it needs behind a proxy
- domain_name in app/config/parameters.yml (Docker env SYMFONY__ENV__DOMAIN_NAME): Full public URL of the instance; set it to the https address users open. (docs)
- SYMFONY__ENV__DOMAIN_NAME in the Docker example: The install example sets it to the address the browser uses. (docs)
- Environment variable prefix: Any parameter can be set as an environment variable with the SYMFONY__ prefix. (docs)
- Web root at the domain root: The sample virtual hosts assume wallabag is served from the root of a domain or subdomain. (docs)
Before it faces the internet
- A default account exists in the Docker image and the shared-hosting package; change its password at once. (docs)
- The package for shared hosting also ships a ready user. (docs)
- The Docker image’s default SECRET is a public value; set your own. (docs)
- The same published default secret appears in the parameters reference. (docs)
- Public registration is a setting; parameters.yml defaults it to on. (docs)
Things to ask next
Everything after the install is one more sentence to the agent. Some that come up:
- “Import the bookmarks file I dropped into the workspace.”
- “Add these ten feeds and sort them into folders by topic.”
- “Move wallabag to app.example.com.” Add the domain on the dashboard’s Domains page with a CNAME to
domains.envhaven.app, and the agent changes wallabag’s address settings to match. - “Update wallabag 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 wallabag on this workspace and serve it at my preview URL.
- Use Docker Compose with the official image, wallabag/wallabag, starting from the docs' compose file: https://github.com/wallabag/docker/blob/master/README.md. If `docker compose` is missing, install the Compose plugin into ~/.docker/cli-plugins first.
- The docs' setup includes: a database: SQLite is the default in the image; MariaDB/MySQL or PostgreSQL optional; redis (optional, for asynchronous imports).
- Keep the compose file in ~/apps/wallabag 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 wallabag's port 80.
- The preview URL terminates HTTPS in front of wallabag: 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/wallabag.md for the preview URL, as wallabag's docs describe for running behind a proxy; skip any that apply only when wallabag serves HTTPS itself.
- Before the preview URL serves it, apply what "Before it faces the internet" lists on https://envhaven.com/self-host/wallabag.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 wallabag 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, wallabag’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.
- Registration confirmation emails (fosuser_confirmation, default true) need a working mailer; the default mailer_dsn is smtp://127.0.0.1, a local SMTP server. (docs)
- Default mailer DSN. (docs)
- In the Docker image public registration defaults to false; the plain parameters.yml default is true. (docs)
- PHP memory limit in the image defaults to 256M. (docs)
- Redis or RabbitMQ is optional, for asynchronous tasks such as imports. (docs)
- Production PHP should not print errors into responses. (docs)
- wallabag expects its own host rather than a path under one, so it takes the workspace’s preview URL or a domain of its own.
- 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:
- Rent a Linux VPS, secure SSH, and create a user for the app.
- Install Docker and write a compose file from the official image.
- Put a reverse proxy in front (Caddy, nginx or Traefik), get certificates, and point a domain at the server.
- Set the proxy settings listed above for that domain, and pass WebSocket upgrades through the proxy if the app uses them.
- Keep the firewall closed except for the proxy, and schedule backups and updates.
wallabag’s own documentation covers each step for its install methods.
Sources
Facts about wallabag come from its own documentation, checked on 2026-11-23:
- doc.wallabag.org/admin/installation/installation
- doc.wallabag.org/admin/parameters
- doc.wallabag.org/admin/installation/virtualhosts
- doc.wallabag.org/admin/mailer
- github.com/wallabag/docker/blob/master/README.md
- doc.wallabag.org/admin/asynchronous
- doc.wallabag.org/admin/installation/requirements
- doc.wallabag.org/admin/backup