How to Install Teable on Your Synology NAS

How to Install Teable on Your Synology NAS

Teable is a super fast, real-time, professional, developer-friendly, no-code database built on PostgreSQL. It uses a simple, spreadsheet-like interface to create complex enterprise-level database applications. Unlock efficient app development with no code, free from data security and scalability hurdles. You can think of it as migrating the powerful capabilities of Airtable onto PostgreSQL while inheriting exceptional performance and stability from the physical databases. In this step by step guide I will show you how to install Teable on your Synology NAS using Docker & Portainer.

💡Note: This guide works perfectly with the latest Teable v1.5.2 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

Make sure you have a synology.me Wildcard Certificate. Follow my guide to get a Wildcard Certificate. If you already have a synology.me Wildcard certificate, skip this STEP.

  • STEP 4

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

Teable Synology NAS Set up 1

  • STEP 5

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

Teable Synology NAS Set up 2

  • STEP 6

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 Teable. After that, add the following instructions:

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

Check Enable HSTS

Destination:
Protocol: HTTP
Hostname: localhost
Port: 3322

Teable Synology NAS Set up 3

  • STEP 7

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.

Synology Proxy WebSocket

  • STEP 8

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

Teable Synology NAS Set up 4

  • STEP 9

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

Teable 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 teable. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.

Teable Synology NAS Set up 6

  • STEP 11

Now create three new folders inside the teable folder that you created at STEP 10 and name them data, db, redis. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.

Teable Synology NAS Set up 7

  • STEP 12

Follow my step by step guide on how to activate SMTP for your Gmail account. This step is mandatory. Note: If you don’t want to use the easiest way for SMTP with Google and you already have SMTP details from your own Mail Server, you can just skip this STEP and use your personalized email SMTP details instead.

  • STEP 13

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 14

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

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

version: '3.9'
services:
  teable:
    image: ghcr.io/teableio/teable-ee:latest
    container_name: Teable
    restart: on-failure:5
    ports:
      - 3322:3000
    volumes:
      - /volume1/docker/teable/data:/app/.assets:rw
    env_file:
      - stack.env
    environment:
      - NEXT_ENV_IMAGES_ALL_REMOTE=true
      - BACKEND_MAIL_HOST=smtp.gmail.com
      - BACKEND_MAIL_PORT=465
      - BACKEND_MAIL_SECURE=true
      - BACKEND_MAIL_SENDER=Your-own-gmail-address
      - BACKEND_MAIL_SENDER_NAME=mariushosting
      - BACKEND_MAIL_AUTH_USER=Your-own-gmail-address
      - BACKEND_MAIL_AUTH_PASS=Your-own-app-password
    networks:
      - teable
    depends_on:
      teable-db-migrate:
        condition: service_completed_successfully
      teable-cache:
        condition: service_healthy
    healthcheck:
      test: ['CMD', 'curl', '-f', 'http://localhost:3000/health']
      start_period: 5s
      interval: 5s
      timeout: 3s
      retries: 3

  teable-db:
    image: postgres:16
    container_name: Teable-DB
    restart: on-failure:5
    volumes:
      - /volume1/docker/teable/db:/var/lib/postgresql/data:rw
    environment:
      - POSTGRES_DB=teable
      - POSTGRES_USER=teableuser
      - POSTGRES_PASSWORD=teablepass
    networks:
      - teable
    healthcheck:
      test: ["CMD", "pg_isready", "-q", "-d", "teable", "-U", "teableuser"]
      interval: 45s
      timeout: 10s
      retries: 10
      
  teable-db-migrate:
    image: ghcr.io/teableio/teable-db-migrate-ee:latest
    container_name: Teable-MIGRATE
    environment:
      - PRISMA_DATABASE_URL=postgresql://teableuser:teablepass@teable-db:5432/teable
    networks:
      - teable
    depends_on:
      teable-db:
        condition: service_healthy

  teable-cache:
    image: redis:7.2.4
    container_name: Teable-REDIS
    restart: on-failure:5
    volumes:
      - /volume1/docker/teable/redis:/data:rw
    networks:
      - teable
    command: redis-server --appendonly yes --requirepass redispassenv
    healthcheck:
      test: ['CMD', 'redis-cli', '--raw', 'incr', 'ping']
      interval: 10s
      timeout: 3s
      retries: 3

networks:
  teable:
    name: teable-network

Note: Before you paste the code above in the Web editor area below, change the value for BACKEND_MAIL_SENDER and type in your own Gmail address. STEP 12.
Note: Before you paste the code above in the Web editor area below, change the value for BACKEND_MAIL_SENDER_NAME and type in your own username. mariushosting is an example for a username.
Note: Before you paste the code above in the Web editor area below, change the value for BACKEND_MAIL_AUTH_USER and type in your own Gmail address. STEP 12.
Note: Before you paste the code above in the Web editor area below, change the value for BACKEND_MAIL_AUTH_PASS and type in your own Gmail app password. STEP 12.

Teable Synology NAS Set up 8 new 2025

  • STEP 15

Click the Upload button after Web editor. Download the stack.env file by clicking the blue link below and then upload it from your computer in the “Load variables from .env files“. Follow the instructions in the image below. 🔒Note: Support my work to unlock the password. You can use this password to download any file on mariushosting forever!

👉🏻Download stack.env file

Environment Variables Portainer Synology

  • STEP 16

Note: On the Environment variables change the value for SECRET_KEY and add your own SECRET KEY. MariushostingMariushostingMari13 is an example for a SECRET KEY. You should invent your own Value. Add 32 random characters, both letters and numbers.
Note: On the Environment variables change the value for PUBLIC_ORIGIN. Type in your own synology.me DDNS that you have previously created at STEP 6 with https at the beginning.

Teable Synology NAS Set up 10

  • STEP 17

After you make the changes, click the Web editor button. Follow the instructions in the image below.

Teable Synology NAS Set up 11 new 2025

  • STEP 18

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.

Teable Synology NAS Set up 12

  • STEP 19

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

Teable Synology NAS Set up 13

⌛Now just wait because the Teable images is about 2.5GB.

  • STEP 20

Your Teable-MIGRATE container will be marked as exited. This is normal behavior for this container. Go straight to the next STEP.

Teable Synology NAS Set up 14

  • STEP 21

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

  • STEP 22

Now open your browser and type in your HTTPS/SSL certificate like this https://teable.yourname.synology.me In my case it’s https://teable.mariushosting.synology.me If everything goes right, you will see the Teable Login page. At the top right of the page, click Sign up, then type in your own Email Address and Password. Click Sign up. Follow the instructions in the image below.

Teable Synology NAS Set up 15

  • STEP 23

Your Teable dashboard at a glance!

Teable Synology NAS Set up 16

  • STEP 24

On the left sidebar, click on the user icon then Settings. A new pop up window will open. Click My Settings then select the theme for the Teable app. Follow the instructions in the image below.

Teable Synology NAS Set up 17

  • STEP 25

You can also disable user registration for Teable. On the left sidebar, click Admin Panel then Settings. Click to disable the “Allow creating new accounts” option. Follow the instructions in the image below.

Teable Synology NAS Set up 18

  • STEP 26

Select your favorite space to invite new people on your team. At the top right of the page, click Invite. In the email area, type in the user email address that you want to invite, then click Send invite. Follow the instructions in the image below.

Teable Synology NAS Set up 19

  • STEP 27

The user will receive an email within seconds with the invitation link to join your Teable space.

Teable Synology NAS Set up 20

  • STEP 28

Enjoy Teable with your Team!

Teable Synology NAS Set up 21

Enjoy Teable!

🆘TROUBLESHOOTING

If you encounter issues by using this container, make sure to check out the Common Docker issues article.

Note: Can I run Docker on my Synology NAS? See the supported models.
Note: How to Back Up Docker Containers on your Synology NAS.
Note: Find out how to update the Teable 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 Friday / December 6th, 2024 at 2:28 PM