readme improve readability

This commit is contained in:
Sam Hadow 2025-03-12 16:20:56 +01:00
parent 3efc800f3f
commit 4b7d9f363d

View File

@ -22,18 +22,18 @@ podman build -t e2ee-messaging-service .
```
podman pod create --name=e2ee -p 3333:3333
podman run -d --pod=e2ee \
-e POSTGRES_PASSWORD="password" \
-e POSTGRES_DB="e2ee" \
-e POSTGRES_USER="e2ee" \
-e POSTGRES_INITDB_ARGS="--encoding=UTF-8 --lc-collate=C --lc-ctype=C" \
-v /PATH/TO/DB:/var/lib/postgresql/data:Z \
--name=e2ee-db docker.io/library/postgres:16
-e POSTGRES_PASSWORD="password" \
-e POSTGRES_DB="e2ee" \
-e POSTGRES_USER="e2ee" \
-e POSTGRES_INITDB_ARGS="--encoding=UTF-8 --lc-collate=C --lc-ctype=C" \
-v /PATH/TO/DB:/var/lib/postgresql/data:Z \
--name=e2ee-db docker.io/library/postgres:16
podman run -d --pod=e2ee \
-e POSTGRES_PASSWORD="password" \
-e POSTGRES_DB="e2ee" \
-e POSTGRES_USER="e2ee" \
-e SHARED_SECRET="change-me" \
--name=e2ee-app e2ee-messaging-service:latest
-e POSTGRES_PASSWORD="password" \
-e POSTGRES_DB="e2ee" \
-e POSTGRES_USER="e2ee" \
-e SHARED_SECRET="change-me" \
--name=e2ee-app e2ee-messaging-service:latest
```
notes:
1) You can use docker instead of podman provided the e2ee nodejs app can communicate with the database with a network or changing the POSTGRES_HOST env variable accordingly.