How to Install SerpBear on Your Synology NAS

How to Install SerpBear on Your Synology NAS

SerpBear is an Open Source Search Engine Position Tracking App. It allows you to track your website’s keyword positions in Google and get notified of their positions. In this step by step guide I will show you how to install SearBear on your Synology NAS using Docker and Portainer.

Note: This guide works perfectly with the latest SerpBear v0.2.3 release.

  • STEP 1

Please Support My work by Making a Donation.

  • STEP 2

Install Portainer using my step by step guide. If you already have Portainer installed on your Synology NAS, skip this STEP. Attention: Make sure you have installed the latest Portainer version.

  • STEP 3

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

SerpBear Synology NAS Set up 1

  • STEP 4

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.

1 Synology Portainer Add Stack

  • STEP 6

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

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

version: "3.9"
services:
  serpbear:
    image: towfiqi/serpbear:latest
    container_name: SerpBear
    hostname: serpbear
    security_opt:
      - no-new-privileges:true
    healthcheck:
      test: wget --no-verbose --tries=1 --spider http://localhost:3000/ || exit 1
    user: 1026:100
    ports:
      - 8495:3000
    environment:
      - USER=marius
      - PASSWORD=mariushosting
      - SECRET=4715aed3216f7b0a38e6b534a958362654e96d10fbc04700770d572af3dce43625dd
      - APIKEY=MariushostingMariushostingMari13
      - NEXT_PUBLIC_APP_URL=http://localhost:3000
    volumes:
      - /volume1/docker/serpbear:/app/data
    restart: always

Note: Before you paste the code above in the Web editor area below, change the value numbers for user with your own UID and GID values. (Follow my step by step guide on how to do this.) 1026 is my personal UID value and 100 is my personal GID value. You have to type in your own values.
Note: Before you paste the code above in the Web editor area, change the value for USER and add your own username. marius is an example for a username. You have to insert your own username.
Note: Before you paste the code above in the Web editor area, change the value for PASSWORD and add your own password. mariushosting is an example for a password. You have to insert your own password.
Note: Before you paste the code above in the Web editor area below, change the value for APIKEY and add your own APIKEY. MariushostingMariushostingMari13 is an example for an APIKEY. You should invent your own Value. Add 32 random characters, both letters and numbers.

SerpBear Synology NAS Set up 2

  • STEP 7

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.

SerpBear Synology NAS Set up 3

  • STEP 8

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

SerpBear Synology NAS Set up 4

  • STEP 9

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

  • STEP 10

The installation process can take up to a few seconds/minutes. It will depend on your Internet speed connection. Now open your browser and type in http://Synology-ip-address:8495 In the Username and Password area type in your own Username and Password that you have previously added at STEP 6. Click Login. Follow the instructions in the image below.

SerpBear Synology NAS Set up 5

  • STEP 11

On the Domain Name area type in your own Domain Name then click Add Domain. Follow the instructions in the image below.

SerpBear Synology NAS Set up 6

  • STEP 12

At the top right of the page click Settings. Follow the instructions in the image below.

SerpBear Synology NAS Set up 7

  • STEP 13

Click on the blue link below to create a free ScrapingAnt account.

ScrapingAnt

  • STEP 14

Check your email then confirm your email address to start using ScrapingAnt. Follow the instructions in the image below.

SerpBear Synology NAS Set up 8

  • STEP 15

On the ScrapingAnt account go to Dashboard then copy your own API token. Follow the instructions in the image below.

SerpBear Synology NAS Set up 9

  • STEP 16

Now open SerpBear then select ScrapingAnt as Scraping Method. Paste your own API Token that you have previously copied at STEP 15 in the appropriate area. Click Update Settings. Follow the instructions in the image below.

SerpBear Synology NAS Set up 10

  • STEP 17

After you click Update Settings at STEP 16 refresh the page then click Add Keyword. Type in the Keywords you want to monitor. Select the country where you want the keyword to be monitored then click Add Keywords. Follow the instructions in the image below.

SerpBear Synology NAS Set up 11

From now on, the keyword for your website will automatically monitored. You can see if the Keyword goes up or down on Google.

SerpBear Synology NAS Set up 12

Enjoy SerpBear!

Note: If you want to run the SerpBear container over HTTPS, check my guide on How to Run Docker Containers Over HTTPS.

Note: Can I run Docker on my Synology NAS? See the supported models.
Note: Find out how to update the SerpBear 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: How to Clean Docker Automatically.
Note: Best Practices When Using Docker and DDNS.
Note: Some Docker Containers Need WebSocket.
Note: Find out the Best NAS Models For Docker.
Note: Activate Gmail SMTP For Docker Containers.

This post was updated on Thursday / January 12th, 2023 at 11:26 PM