--- title: "How to Install Wallabag with Docker on Ubuntu 24.04" description: "Self-host Wallabag, an open source read-it-later app, on Ubuntu 24.04 with Docker Compose, MariaDB and Redis, then add HTTPS, browser extensions and API access." category: "Self-Hosted Productivity" language: en source: https://cubepath.com/docs/self-hosted-productivity/wallabag-read-it-later-installation updated: 2026-09-25 --- # How to Install Wallabag with Docker on Ubuntu 24.04 Wallabag is an open source read-it-later application: you send it the URL of an article, it extracts the readable content and stores it on your server so you can read it later on the web, in mobile apps or as an e-book. It is a self-hosted alternative to services like Pocket or Instapaper. In this tutorial you will deploy Wallabag with MariaDB and Redis using Docker Compose on Ubuntu 24.04, publish it over HTTPS with Nginx, secure the default account, and connect the browser extension and the API. ## Prerequisites To follow this guide you need: - A server running Ubuntu 24.04 LTS with at least 1 GB of RAM, for example a CubePath VPS. - A non-root user with `sudo` privileges. - Docker Engine and the Docker Compose plugin installed from Docker's official repository. - A domain name with an A record pointing to your server. This guide uses `wallabag.your_domain`; replace it with your own hostname. - Ports 80 and 443 reachable from the internet. ## Step 1 - Creating the project directory and secrets Create a directory for the Compose file, the database files and the images Wallabag downloads from saved articles: ```bash sudo mkdir -p /opt/wallabag/db /opt/wallabag/images cd /opt/wallabag ``` Generate the database passwords and a Symfony application secret, and store them in a `.env` file that Docker Compose reads automatically: ```bash sudo tee /opt/wallabag/.env > /dev/null < Warning: Anyone who knows the default credentials can log in until you change the password, so do this right after the certificate is issued. To add accounts for other people, open **Users management** from the menu (visible to administrators) and create them there. ## Step 6 - Saving articles To test the setup, click the **+** icon at the top of the article list, paste the URL of any article and press Enter. Wallabag downloads the page, extracts the main content and shows it in a clean reading view with an estimated reading time. From the article view you can: - Mark it as read (archive) or star it. - Add tags with the tag icon. - Select text and add an annotation, which is stored with the article. ### Automatic tagging rules Tagging rules apply tags to new articles automatically. Go to **Config > Tagging rules** and add rules such as: | Rule | Tags | |------|------| | `domainName = "github.com"` | `code` | | `readingTime >= 10` | `long-read` | | `title matches "kubernetes"` | `devops` | Rules are applied when an article is saved. Existing articles can be retagged from the same page. ### RSS feeds Wallabag can publish your unread, starred and archived lists as feeds. In **Config > Feeds**, generate a feed token; the page then shows the feed URLs for each list, which you can add to any RSS reader. ## Step 7 - Connecting the browser extension and mobile apps Browser extensions and apps authenticate through OAuth, so each one needs an API client: 1. Open **API clients management** from the menu. 2. Click **Create a new client**, name it (for example "Firefox"), and leave the redirect URI empty. 3. Copy the **Client ID** and **Client secret**. Install the **Wallabagger** extension, available for Firefox and Chromium-based browsers. In its options, enter `https://wallabag.your_domain`, check the URL, then fill in the client ID, client secret, your username and password, and click **Get token**. A green status means the extension can save pages with one click. The official wallabag apps for Android (Google Play and F-Droid) and iOS ask for the same five values. ## Step 8 - Using the REST API The same client credentials work for scripts. Request an access token with the password grant (install `jq` with `sudo apt install jq` if needed): ```bash TOKEN=$(curl -s -X POST https://wallabag.your_domain/oauth/v2/token \ -d grant_type=password \ -d client_id=your_client_id \ -d client_secret=your_client_secret \ -d username=your_username \ -d password=your_password | jq -r .access_token) ``` Save an article with tags: ```bash curl -s -X POST https://wallabag.your_domain/api/entries.json \ -H "Authorization: Bearer $TOKEN" \ -d url=https://example.com/ \ -d tags=test,api | jq '{id, title, domain_name}' ``` ```output { "id": 3, "title": "Example Domain", "domain_name": "example.com" } ``` Access tokens expire after one hour. Scripts should request a new one, or use the `refresh_token` returned with it. ## Step 9 - Importing and exporting **Import** (in the user menu) lists the services Wallabag can import from, including another wallabag instance, Instapaper, Pinboard and browser bookmark exports. Upload the export file from the old service and Wallabag fetches each article in the background through the Redis queue. To export, open any list (unread, starred, a tag or a search) and use the export menu in the sidebar to download it in formats such as EPUB, PDF, JSON or CSV. For a full backup of the server, dump the database and archive the images directory: ```bash cd /opt/wallabag sudo docker compose exec -T db sh -c 'mariadb-dump -u root -p"$MARIADB_ROOT_PASSWORD" wallabag' | gzip > ~/wallabag-db-$(date +%F).sql.gz sudo tar -czf ~/wallabag-images-$(date +%F).tar.gz -C /opt/wallabag images ``` ## Troubleshooting **The page loads without styles or redirects to `http://`.** `SYMFONY__ENV__DOMAIN_NAME` does not match the public URL. Set it to `https://wallabag.your_domain` and run `sudo docker compose up -d` to recreate the container. **Some articles are saved empty or truncated.** A few sites block server-side fetching or need a site-specific extraction rule. Use **Re-fetch content** from the article menu; if that fails, the browser extension can send the page content as rendered in your browser. **Wallabagger reports an authentication error.** Check that the client ID and secret belong to the same API client and that the URL uses `https://`. Creating a new client in **API clients management** is often the quickest fix. ## Conclusion You have a private read-it-later service running on Ubuntu 24.04 with Docker Compose, protected by HTTPS, with the default password changed and the browser extension and API connected. As next steps, configure a real SMTP DSN so you can enable two-factor authentication, schedule the backup commands, and import your existing reading list from your previous service.