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.
First, clone this repository:
git clone --depth 1 https://github.com/supabase-community/supabase-traefik
Navigate to the repository folder:
cd supabase-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
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