π§Ύ How to Install Wallabag with Docker (The Easy Way)
Wallabag is a self-hosted read-it-later app β like Pocket, but open source. This guide walks you through setting up Wallabag using Docker Compose on a new server (such as a DigitalOcean droplet or any Ubuntu machine). The goal: get it running first try, no surprises.
β What You Need
- A Linux server (Ubuntu 22.04 recommended)
- Docker and Docker Compose installed
- Basic terminal access (
ssh
) - Your serverβs IP address
ποΈ Step 1: Create a Project Directory
1 | mkdir wallabag && cd wallabag |
π Step 2: Create docker-compose.yaml
Create a new file called docker-compose.yaml
and paste this:
1 | services: |
π Step 3: Create configuration_wallabag.env
In the same folder, create a file named configuration_wallabag.env
with the following content:
1 | # PostgreSQL database settings |
π Replace
changeme
with a secure password.
π Replaceyour-server-ip
with your actual https domain name. I use cloudflared here to make it easy.
π Step 4: Launch the Stack
1 | docker-compose up -d |
Docker will pull the required images, set up volumes, and launch the services.
π οΈ Step 5: Initialize Wallabag
Now run the Wallabag installer to set up the database and create your admin account.
1 | docker exec -it wallabag sh |
Youβll be asked to confirm settings (theyβll pre-fill based on your .env
file), and then enter:
- Admin username
- Admin email
- Admin password
When itβs done, exit the container:
1 | exit |
π Step 6: Access Wallabag
In your browser, go to:
1 | https://yourdomain.com |
Youβll see the login screen. Use the credentials you just created.
π You now have a fully working Wallabag instance!
π¦ Optional: Backup Volumes
To back up your data:
1 | docker run --rm -v wallabag-db:/volume -v $(pwd):/backup alpine \ |
β Summary
Task | Command |
---|---|
Start Wallabag | docker-compose up -d |
Access app | https://yourdomain.com |
Run installer | docker exec -it wallabag sh && php bin/console wallabag:install --env=prod |
Restart Wallabag | docker restart wallabag |
π Next Steps (Optional)
- Set up Cloudflared
- Use Docker volumes for automated remote backups
- Set up Wallabag mobile or browser extensions