Until now we had a `find` command to delete existing edge functions before copying them for the self hosting set up. This command is now removed, because we also moved the `main` function to the existing functions directory and just not push it as function to Supabase.
Hosting
The following guide can be used to self-host FeedDeck. The set up uses a Docker Compose file to run all FeedDeck and Supabase components. More information can be found in the FeedDeck contributing guide and the Supabase documentation.
-
Clone the repository and switch into the
feeddeck/supabase/hostingdirectory:git clone https://github.com/feeddeck/feeddeck.git cd feeddeck/supabase/hosting -
Copy all edge functions into the correct directory:
cp -r ../functions/. volumes/functions/ -
Create a
.envfile and adjust the environment variables as needed:cp .env.example .env -
Start FeedDeck and Supabase via Docker Compose:
docker compose -f docker-compose.yaml up -d --build --force-recreate -
Check that all containers are running:
docker compose ps -
Switch into the root directory of the repository and apply all database migrations:
cd ../.. supabase db push --db-url postgresql://postgres.your-tenant-id:your-super-secret-and-long-postgres-password@localhost:5432/postgres -
Afterwards FeedDeck is available at http://localhost:8080 and the Supabase Studio at http://localhost:8000.
-
Clean up: To stop all Docker containers and remove all volumes, use the following commands:
docker compose down -v rm -rf volumes/db/data/ rm -rf volumes/storage/ rm -rf volumes/functions/