How to Install Wallabag on Your Synology NAS

How to Install Wallabag on Your Synology NAS

Wallabag is a web application allowing you to save web pages for later reading. Click, save and read it when you want. It extracts content so that you won’t be distracted by pop-ups and ads. The alternative to Wallabag is Shiori. In this step by step guide I will show you how to install Wallabag on your Synology NAS using Docker.

Note: This guide works perfectly with the latest Wallabag 2.5.1 release.

  • STEP 1

Please Support My work by Making a Donation.

  • STEP 2

Install Docker via Synology “Package Center”.

  • STEP 3

Install Portainer using my step by step guide. If you already have Portainer installed on your Synology NAS, skip this STEP.

  • STEP 4

Go to File Station and open the docker folder. Inside the docker folder, create two new folders and name one wallabag and the other one wallabagdb. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.

Wallabag Synology NAS Set up 1

  • STEP 5

Now create two new folders inside the wallabag folder that you created at STEP 4 name one “data” and the other “images“. Follow the instructions in the image below.
Note: Be careful enter only lowercase, not uppercase letters.

Wallabag Synology NAS Set up 2

  • STEP 6

Log into Portainer using your username and password. On the left sidebar in Portainer, click on Stacks then + Add stack. Follow the instructions in the image below.

Wallabag Synology NAS Set up 3

  • STEP 7

In the Name field type in wallabag. Follow the instructions in the image below.

Note: Copy Paste the code below in the Portainer Stacks Web editor.

version: '3.7'
services:
  wallabag:
    image: wallabag/wallabag
    container_name: wallabag
    restart: always
    environment:
      - MYSQL_ROOT_PASSWORD=wallaroot
      - SYMFONY__ENV__DATABASE_DRIVER=pdo_mysql
      - SYMFONY__ENV__DATABASE_HOST=db
      - SYMFONY__ENV__DATABASE_PORT=3306
      - SYMFONY__ENV__DATABASE_NAME=wallabag
      - SYMFONY__ENV__DATABASE_USER=wallabag
      - SYMFONY__ENV__DATABASE_PASSWORD=wallapass
      - SYMFONY__ENV__DATABASE_CHARSET=utf8mb4
      - SYMFONY__ENV__DOMAIN_NAME=http://192.168.1.18:6749
      - SYMFONY__ENV__SERVER_NAME=mariushosting
      - SYMFONY__ENV__FOSUSER_CONFIRMATION=false
      - SYMFONY__ENV__TWOFACTOR_AUTH=false
    ports:
      - 6749:80
    volumes:
      - /volume1/docker/wallabag/images:/var/www/wallabag/web/assets/images
      - /volume1/docker/wallabag/data:/var/www/wallabag/data
     
    depends_on:
     - db
     - redis
  db:
    image: mariadb
    container_name: wallabag-db
    restart: always
    environment:
      - MYSQL_ROOT_PASSWORD=wallaroot
      - TZ=Europe/Bucharest
    volumes:
      - /volume1/docker/wallabagdb:/var/lib/mysql
  redis:
    image: redis:alpine
    container_name: wallabag-redis
    restart: always

Note: Before you paste the code above in the Web editor area, change the values for SYMFONY__ENV__DOMAIN_NAME and add your own NAS IP followed by :6749 http://192.168.1.18 is my NAS IP. You should use your own NAS IP followed by :6749
Note: Before you paste the code above in the Web editor area below, change the value for SYMFONY__ENV__SERVER_NAME and add your own server name. mariushosting is an example of a server name; you have to add your own server name.
Note: Before you paste the code above in the Web editor area, change the value for TZ with your own time zone value. (Select your current Time Zone from this list.)

Wallabag Synology NAS Set up 4

  • STEP 8

Scroll down on the page until you see a button named Deploy the stack. Click on it. Follow the instructions in the image below. The installation process can take up to a few minutes. It will depend on your Internet speed connection.

Wallabag Synology NAS Set up 5

  • STEP 9

If everything goes right, you will see the following message at the top right of your screen: “Stack successfully deployed“.

Wallabag Synology NAS Set up 6

  • STEP 10

Go back to STEP 1 or you will deal with karma 🙂.

  • STEP 11

Please wait approximately 3 minutes for the installation to be completed or you will get a blank page if you try to connect too soon. Now open your browser and type in http://Synology-ip-address:6749 Click REGISTER. Follow the instructions in the image below.

Wallabag Synology NAS Set up 7

  • STEP 12

Add your own Email, Username and Password. Click REGISTER. Follow the instructions in the image below.

Wallabag Synology NAS Set up 8

  • STEP 13

Click GO TO YOUR ACCOUNT. Follow the instructions in the image below.

Wallabag Synology NAS Set up 9

  • STEP 14

You can start adding your first website link. Click the + icon at the top right of the page. Follow the instructions in the image below.

Wallabag Synology NAS Set up 10

  • STEP 15

Your Wallabag dashboard will look like the screenshot below.

Wallabag Synology NAS Set up 11

  • STEP 16

You can set the Dark theme by clicking the profile icon at the top right of the page. Follow the instructions in the image below.

Wallabag Synology NAS Set up 12

Enjoy Wallabag!

Note: If you want to run the Wallabag container over HTTPS, check my guide on How to Run Docker Containers Over HTTPS. To make sure https will work without any issue with Wallabag, remember to change the environment variable – SYMFONY__ENV__DOMAIN_NAME at STEP 7 pointing to your synology.me DDNS instead of your local IP. You need to update your stack.

Note: Can I run Docker on my Synology NAS? See the supported models.
Note: Find out how to update the Wallabag container with the latest image.
Note: How to Free Disk Space on Your NAS if You Run Docker.
Note: How to Schedule Start & Stop For Docker Containers.
Note: How to Activate Email Notifications.
Note: How to Add Access Control Profile on Your NAS.
Note: How to Change Docker Containers Restart Policy.
Note: How to Use Docker Containers With VPN.
Note: Convert Docker Run Into Docker Compose.
Note: How to Clean Docker.
Note: Some Docker Containers Need WebSocket.

This post was updated on Thursday / August 4th, 2022 at 12:01 PM