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-traefikNavigate to the repository folder:
cd supabase-traefikIf you haven't set up Traefik before, navigate to the Traefik directory:
cd traefikCopy the example environment variables:
cp .env.example .envIn 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 -dGet the Supabase code by cloning the Supabase repository:
git clone --depth 1 https://github.com/supabase/supabaseNavigate to the Docker folder:
cd supabase/dockerCopy the example environment variables:
cp .env.example .envIn the docker-compose.yml file, add the following to each service:
networks:
- supabaseChange 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