Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# PowerSync Self Hosted Example

## 2025-11-25

### Postgres 18 Upgrade

Updated Postgres demos for Postgres 18 compatibility. Postgres 18 contains breaking changes for Docker volume mount points. First time demo runners should be able to start the demo using the standard `docker compose up` commands.

Users with existing configurations should either:

#### Start from a clean slate

With the relevant demo directory as the current working directory, run:

```bash
# Clear previous data (this deletes Docker volumes)
docker compose down --volumes

# Run the demo
docker compose up
```

#### Migrate existing data

See https://github.com/docker-library/postgres/issues/37 for options.

## 2025-05-13

- Updated YAML config files to use published schema
Expand Down
8 changes: 6 additions & 2 deletions demos/nodejs-postgres-bucket-storage/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ services:
- ../nodejs/init-scripts:/docker-entrypoint-initdb.d

pg-storage:
image: postgres:latest
image: postgres:18
restart: always
environment:
- POSTGRES_USER=${PG_STORAGE_DATABASE_USER}
Expand All @@ -39,7 +39,11 @@ services:
ports:
- "${PG_STORAGE_DATABASE_PORT}:${PG_STORAGE_DATABASE_PORT}"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${PG_STORAGE_DATABASE_USER} -d ${PG_STORAGE_DATABASE_NAME}"]
test:
[
"CMD-SHELL",
"pg_isready -U ${PG_STORAGE_DATABASE_USER} -d ${PG_STORAGE_DATABASE_NAME}",
]
interval: 5s
timeout: 5s
retries: 5
Expand Down
2 changes: 1 addition & 1 deletion services/postgres.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
pg-db:
image: postgres:latest
image: postgres:18
restart: always
environment:
- POSTGRES_USER=${PG_DATABASE_USER}
Expand Down