Files
Rico Berger 8fc68951b0 Simplify Self Hosting of Edge Functions (#253)
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.
2025-04-26 15:38:59 +02:00
..
2025-04-24 09:03:08 +02:00

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.

  1. Clone the repository and switch into the feeddeck/supabase/hosting directory:

    git clone https://github.com/feeddeck/feeddeck.git
    cd feeddeck/supabase/hosting
    
  2. Copy all edge functions into the correct directory:

    cp -r ../functions/. volumes/functions/
    
  3. Create a .env file and adjust the environment variables as needed:

    cp .env.example .env
    
  4. Start FeedDeck and Supabase via Docker Compose:

    docker compose -f docker-compose.yaml up -d --build --force-recreate
    
  5. Check that all containers are running:

    docker compose ps
    
  6. 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
    
  7. Afterwards FeedDeck is available at http://localhost:8080 and the Supabase Studio at http://localhost:8000.

  8. 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/