Skip to content

supabase-community/supabase-traefik

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Supabase Docker with Traefik

Note: this setup is unofficial. It is supported by the Supabase community only.

This guide is covering a self-hosted Supabase setup with Traefik as a reverse proxy.

Please make sure you read the self-hosting guide.

Setup Instructions

Cloning the Repository

First, clone this repository:

git clone --depth 1 https://github.com/supabase-community/supabase-traefik

Navigate to the repository folder:

cd supabase-traefik

Setting Up Traefik

If you haven't set up Traefik before, navigate to the Traefik directory:

cd traefik

Copy the example environment variables:

cp .env.example .env

In the .env, replace all the variable values with your own.

After configuring all the files, you can start Traefik using Docker Compose:

docker-compose up -d

Setting Up Supabase

Get the Supabase code by cloning the Supabase repository:

git clone --depth 1 https://github.com/supabase/supabase

Navigate to the Docker folder:

cd supabase/docker

Copy the example environment variables:

cp .env.example .env

In the docker-compose.yml file, add the following to each service:

networks:
  - supabase

Change the network name to match the one used by Traefik if necessary.

After configuring all the files, you can start the Supabase services using Docker Compose:

docker-compose up -d