Skip to content

Commit c95094e

Browse files
committed
apply formatting rules
1 parent 6a1a237 commit c95094e

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

samples/postgres-cdc/README.md

+13-12
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,20 @@ It relies on wal2json for change notifications, see https://github.com/eulerto/w
33
It uses redis-cli to publish the notifications.
44

55
Demo usage:
6-
- the CDC'ed database must pre-exist, it should first be created as follows
7-
- run `cd cdc`
8-
- run `docker run -p 5432:5432 -v ./postgres-data:/var/lib/postgresql/data -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres postgres:12.16`
9-
- using a postgresql client, create the 'test_db' database and a table
10-
- Ctrl-C the docker container started above
11-
- now run `docker compose up -d`
12-
- checking configuration:
136

14-
- from docker desktop, open a terminal to redis container
15-
- from that terminal, run `redis-cli SUBSCRIBE test_db_changes`
16-
- using a postgresql client, perform some inserts, updates or deletes in the 'test_db' database
7+
- the CDC'ed database must pre-exist, it should first be created as follows
8+
- run `cd cdc`
9+
- run `docker run -p 5432:5432 -v ./postgres-data:/var/lib/postgresql/data -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres postgres:12.16`
10+
- using a postgresql client, create the 'test_db' database and a table
11+
- Ctrl-C the docker container started above
12+
- now run `docker compose up -d`
13+
- checking configuration:
14+
15+
- from docker desktop, open a terminal to redis container
16+
- from that terminal, run `redis-cli SUBSCRIBE test_db_changes`
17+
- using a postgresql client, perform some inserts, updates or deletes in the 'test_db' database
1718

1819
Real usage:
19-
- you need to configure the env variables of the postgres service in the docker-compose.yml file
20-
- the database name should be set to the messages repository name configured for the mediator
2120

21+
- you need to configure the env variables of the postgres service in the docker-compose.yml file
22+
- the database name should be set to the messages repository name configured for the mediator

samples/postgres-cdc/docker-compose.yml

-2
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,3 @@ services:
2424
platform: linux/amd64
2525
ports:
2626
- 6379:6379
27-
28-

0 commit comments

Comments
 (0)