How to Install Leantime on Your Synology NAS

How to Install Leantime on Your Synology NAS

Leantime is an open source project management system for small teams and startups written in PHP, JavaScript and using MySQL as the database. It combines lean product development and agile project management into one platform so that users have the right features from start to finish. In this step by step guide I will show you how to install Leantime on your Synology NAS using Docker & Portainer.

Note: This guide works perfectly with the latest Leantime v.2.2.4 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.

  • STEP 3

Enable synology.me DDNS. If you already have a synology.me DDNS, skip this STEP.

  • STEP 4

Go to Control Panel / Network / Connectivity tab/ Check Enable HTTP/2 then click Apply. Follow the instructions in the image below.

Leantime Synology NAS Set up 1

  • STEP 5

Go to Control Panel / Security / Advanced tab/ Check Enable HTTP Compression then click Apply. Follow the instructions in the image below.

Leantime Synology NAS Set up 2

  • STEP 6

Go to Control Panel / Login Portal / Advanced Tab / click Reverse Proxy. Follow the instructions in the image below.

Leantime Synology NAS Set up 4a

  • STEP 7

Now click the “Create” button. Follow the instructions in the image below.

Leantime Synology NAS Set up 4b

  • STEP 8

After you click the Create button, the window below will open. Follow the instructions in the image below.

On the General area, set the Reverse Proxy Name description: type in Leantime. After that, add the following instructions:

Source:
Protocol: HTTPS
Hostname: leantime.yourname.synology.me
Port: 443

Check Enable HSTS.

Destination:
Protocol: HTTP
Hostname: localhost
Port: 4805

Leantime Synology NAS Set up 4c

  • STEP 9

On the Reverse Proxy Rules click the Custom Header tab. Click Create and then, from the drop-down menu, click WebSocket. After you click on WebSocket, two Header Names and two Values will be automatically added. Click Save. Follow the instructions in the image below.

Leantime Synology NAS Set up 5

  • STEP 10

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

Leantime Synology NAS Set up 3 new

  • STEP 11

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.

Leantime Synology NAS Set up 6

  • STEP 12

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

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

version: '3.3'

services:
   db:
     image: mysql:5.7
     container_name: mysql_leantime
     volumes:
       - /volume1/docker/leantimedb:/var/lib/mysql
     restart: always
     environment:
         MYSQL_ROOT_PASSWORD: 321.qwerty
         MYSQL_DATABASE: leantime
         MYSQL_USER: admin
         MYSQL_PASSWORD: 321.qwerty
     command: --character-set-server=utf8 --collation-server=utf8_unicode_ci
   web:
     image: leantime/leantime
     container_name: leantime
     environment:
         LEAN_DB_HOST: mysql_leantime
         LEAN_DB_USER: admin
         LEAN_DB_PASSWORD: 321.qwerty
         LEAN_DB_DATABASE: leantime
     ports:
       - 4805:80
     depends_on:
       - db
volumes:
    db_data: {}

Leantime Synology NAS Set up 7

  • STEP 13

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.

Leantime Synology NAS Set up 8

  • STEP 14

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

Leantime Synology NAS Set up 9

  • STEP 15

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

  • STEP 16

Now open your browser and type in your HTTPS/SSL certificate like this https://leantime.yourname.synology.me/install In my case it’s https://leantime.mariushosting.synology.me/install If everything goes right, you will see the leantime installation page. Type in your own Email and Password in the Login Info area. Type in your own Name and Company name in the User Info area. Click Install. Follow the instructions in the image below.

Leantime Synology NAS Set up 10

  • STEP 17

Wait approximately 30 seconds for the installation to be completed. Now remove the /install part from the link in the browser and refresh the page. The link should be https://leantime.yourname.synology.me without the /install part at the end. In my case it’s https://leantime.mariushosting.synology.me/ In the Login field type in your own Email and your own Password you have previously created at STEP 16. Click Login. Follow the instructions in the image below.

Leantime Synology NAS Set up 11

  • STEP 18

Take the Full Tour to learn how to use Leantime or Skip the tour and Start a Project. Follow the instructions in the image below.

Leantime Synology NAS Set up 12

Enjoy Leantime!

Leantime Synology NAS Set up 13

Troubleshooting: If you experience connection issues with Leantime, make sure Rule 5 is correctly applied on your Synology NAS Firewall configuration.

Note: Find out how to update the Leantime container with the latest image.
Note: Can I run Docker on my Synology NAS? See the supported models.
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 Wednesday / August 3rd, 2022 at 2:45 AM