This is a demo for using Postgres as the sync bucket storage driver with PowerSync.
Separate Postgres servers are required for the bucket storage and replication data source.
The .env
file contains default configuration for the services. Reference this to connect to any services locally.
This demo can be started by running the following in this demo directory
docker compose up
or in the root directory run
docker compose -f demos/nodejs-postgres-bucket-storage/docker-compose.yaml up
The frontend can be accessed at http://localhost:3039
in a browser.
The Postgres databases can be accessed at the following URIs
Application data: postgres://postgres:postgres@localhost:5432/postgres
bucket storage: postgres://postgres:postgres@localhost:5431/postgres
Bucket storage tables are located in the powersync
schema.