How to Install Mattermost on Your UGREEN NAS

How to Install Mattermost on Your UGREEN NAS

Mattermost is an open-source, self-hostable online chat service with file sharing, search, and integrations. It is designed as an internal chat for organizations and companies, and mostly markets itself as an open-source alternative to Slack and Microsoft Teams. In this step by step guide I will show you how to installĀ MattermostĀ on yourĀ UGREEN NASĀ using Docker and Portainer.

šŸ’”Note: This guide works perfectly with the latest Mattermost v10.12.4 release.

šŸ’”Note: Check out my guide on how to Install Mattermost on Your Synology NAS.

  • 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 UGREEN NAS, skip this STEP. Attention: Make sure you have installed the latest Portainer version.

  • STEP 3

āš ļøMandatory: Enable HTTPS on your UGREEN NAS.

  • STEP 4

Create a new hostname on the noip website using your noip account. For example, I have created mariusmostĀ as Host and I use the free ddns.net domain. In the IP Address area, type in your own IPV4 IP address from your ISP, then click Create. Follow the instructions in the image below.

Mattermost UGREEN NAS Set up 1

  • STEP 5

āš ļøMandatory: Add Read & Write Permissions to the Docker Folder.

  • STEP 6

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

Mattermost UGREEN NAS Set up 2

  • STEP 7

Now create seven new folders inside the mattermost folder that you created at STEP 6 and name them client, config, data, db, indexes, logs, plugins. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.

Mattermost UGREEN NAS Set up 3 new 2026

  • STEP 8

Log into Portainer using your username and password. On the left sidebar in Portainer, click onĀ HomeĀ thenĀ Live connect. Follow the instructions in the image below.

Portainer Add Stack NAS 1

On the left sidebar in Portainer, click on StacksĀ thenĀ + Add stack. Follow the instructions in the image below.

Portainer Add Stack NAS 2

  • STEP 9

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

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

services:
  mattermost-db:
    image: postgres:18
    container_name: Mattermost-DB
    hostname: mattermost-db
    user: 999:10
    security_opt:
      - no-new-privileges:true
    healthcheck:
      test: ["CMD", "pg_isready", "-q", "-d", "mattermost", "-U", "mattermostuser"]
      interval: 10s
      timeout: 5s
      retries: 5
    volumes:
      - /volume1/docker/mattermost/db:/var/lib/postgresql:rw
    environment:
       POSTGRES_DB: mattermost
       POSTGRES_USER: mattermostuser
       POSTGRES_PASSWORD: mattermostpw
       TZ: Europe/Bucharest
    restart: on-failure:5

  mattermost:
    image: mattermost/mattermost-team-edition:latest
    container_name: Mattermost
    hostname: mattermost
    security_opt:
      - no-new-privileges:true
    user: 0:0
    volumes:
      - /volume1/docker/mattermost/config:/mattermost/config:rw
      - /volume1/docker/mattermost/data:/mattermost/data:rw
      - /volume1/docker/mattermost/logs:/mattermost/logs:rw
      - /volume1/docker/mattermost/plugins:/mattermost/plugins:rw
      - /volume1/docker/mattermost/client:/mattermost/client/plugins:rw
      - /volume1/docker/mattermost/indexes:/mattermost/bleve-indexes:rw
    environment:
       TZ: Europe/Bucharest
       MM_SQLSETTINGS_DRIVERNAME: postgres
       MM_SQLSETTINGS_DATASOURCE: postgres://mattermostuser:mattermostpw@mattermost-db:5432/mattermost?sslmode=disable&connect_timeout=10
       MM_BLEVESETTINGS_INDEXDIR: /mattermost/bleve-indexes
       MM_SERVICESETTINGS_SITEURL: https://mariusmost.ddns.net
    ports:
      - 8401:8065
    restart: on-failure:5
    depends_on:
      mattermost-db:
        condition: service_started

Note: Before you paste the code above in the Web editor area below, change the value numbers for userĀ with your own values. (Follow my step by step guide on how to do this.) 999 is my personal PUID value and 10Ā is my personal PGID value. You have to type in your own values.
Note: Before you paste the code above in the Web editor area below, change the value for TZ.Ā (Select your current Time Zone from this list.)
Note: Before you paste the code above in the Web editor area below, change the value for MM_SERVICESETTINGS_SITEURL and type in your own NO IP DDNS with https:// at the beginning that you have previously created at STEP 4.

Mattermost UGREEN NAS Set up 4

  • STEP 10

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.

Mattermost UGREEN NAS Set up 5

  • STEP 11

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

Portainer Success Stack NAS

  • STEP 12

Open your Nginx Proxy Manager container that you have previously installed at STEP 3. Click Add Proxy Host. A new pop up window will open. Add the following details:

Domain Names: Type in your own noip domain name that you have previously created at STEP 4.
Scheme: http
Forward Hostname/IP: Type in the local NAS IP of your UGREEN NAS.
Forward Port: Type in the Mattermost local Port that is 8401
Check Block Common Exploits
Check Websockets Support
Click the SSL tab. Follow the instructions in the image below.

Mattermost UGREEN NAS Set up 6

  • STEP 13

After you click the SSL tab, add the following details:

SSL Certificate: Request a new SSL Certificate
Check: Force SSL
Check: HSTS Enabled
Check: HTTP/2 Support
Click Save. Follow the instructions in the image below.

Mattermost UGREEN NAS Set up 7

  • STEP 14

In the Proxy Hosts area, if everything goes right, you will see that your Mattermost hostname has been generated. Click on it. Follow the instructions in the image below.

Mattermost UGREEN NAS Set up 8

  • STEP 15

🟢Please Support My work by Making a Donation. Almost 99,9% of the people that install something using my guidesĀ forget to support my work, or justĀ ignoreĀ STEP 1. I’ve been very honest about this aspect of my work since the beginning: I don’t run any ADS, I don’t require subscriptions, paid or otherwise, I don’t collect IPs, emails, and I don’t have any referral links from Amazon or other merchants. I also don’t have any POP-UPs or COOKIES. I have repeatedly been told over the years how much I have contributed to the community. It’s something I love doing and have been honest about my passion since the beginning. But I also Need The Community to Support me Back to be able to continue doing this work.

  • STEP 16

Now open your browser and type in your HTTPS/SSL certificate like this https://nocodb.ddns.netĀ In my case it’s https://nocomarius.ddns.net If everything goes right, you will see the Mattermost Installation page. Click View in Browser. Follow the instructions in the image below.

Mattermost UGREEN NAS Set up 9

  • STEP 17

Add your own credentials. Email, Username and Password then click Create Account. Follow the instructions in the image below.

Mattermost UGREEN NAS Set up 10

  • STEP 18

Type in your organization name then click Continue. Follow the instructions in the image below.

Mattermost UGREEN NAS Set up 11

  • STEP 19

Click Continue or select the tools you work with. Follow the instructions in the image below.

Mattermost UGREEN NAS Set up 12

  • STEP 20

Click Finish setup. Follow the instructions in the image below.

Mattermost UGREEN NAS Set up 13

  • STEP 21

Your Mattermost dashboard at a glance!

Mattermost UGREEN NAS Set up 14

  • STEP 22

Set Up Email Notifications on Mattermost.

Enjoy Mattermost on Your UGREEN NAS!

šŸ†˜TROUBLESHOOTING

šŸ†™Note/Update/Container: How to Update Your Docker Containers on UGREEN NAS Using Portainer.
🐳Note: How to Create Docker Shortcuts on Desktop.
šŸ†•Note: How to Update Portainer to the latest version.
šŸ†•Note: How to Clean Docker.

This post was updated on Thursday / January 8th, 2026 at 10:51 PM