mkdir supabase-for-my-app && cd "$_"
git clone -n --depth=1 --filter=tree:0 https://github.com/supabase/supabase .
git sparse-checkout set --no-cone docker
git checkout
cd docker
cp .env.example .env
nano .env
mv docker-compose.yml compose.yml
mv docker-compose.s3.yml compose.s3.yml
docker compose -f compose.yml -f compose.s3.yml up --detach # or up -d
docker compose -f compose.yml -f compose.s3.yml down
### Destroy analytics to transition to postgres self hosted solution without other data loss
# Enter the container and use your .env POSTGRES_PASSWORD value to login
docker exec -it $(docker ps | grep supabase-db | awk '{print $1}') psql -U supabase_admin --password
# Drop all the data in the _analytics schema
DROP PUBLICATION logflare_pub; DROP SCHEMA _analytics CASCADE; CREATE SCHEMA _analytics;\q
# Drop the analytics container
docker rm supabase-analytics --force
docker compose -f compose.yml -f compose.s3.yml start
docker compose -f compose.yml -f compose.s3.yml stop
docker compose -f compose.yml -f compose.s3.yml logs
You should be able to connect to the web interface exposed on port 3000