Skip to content

Commit b81a831

Browse files
committed
Cleanup demo postgres dependencies
Signed-off-by: Ian Costanzo <ian@anon-solutions.ca>
1 parent f741798 commit b81a831

5 files changed

Lines changed: 15 additions & 18 deletions

File tree

demo/docker-agent/docker-compose.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,10 @@ services:
3232
- ./ngrok-wait.sh:/home/indy/ngrok-wait.sh
3333

3434
wallet-db:
35-
image: vcr-postgresql
35+
image: postgres:12
3636
environment:
37-
- POSTGRESQL_USER=DB_USER
38-
- POSTGRESQL_PASSWORD=DB_PASSWORD
39-
- POSTGRESQL_DATABASE=DB_USER
40-
- POSTGRESQL_ADMIN_PASSWORD=mysecretpassword
37+
- POSTGRES_USER=DB_USER
38+
- POSTGRES_PASSWORD=DB_PASSWORD
4139
ports:
4240
- 5433:5432
4341
volumes:

demo/docker-agent/ngrok-wait.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ exec aca-py start \
3737
--wallet-key "secret_key" \
3838
--wallet-storage-type "postgres_storage" \
3939
--wallet-storage-config "{\"url\":\"wallet-db:5432\",\"max_connections\":5}" \
40-
--wallet-storage-creds "{\"account\":\"DB_USER\",\"password\":\"DB_PASSWORD\",\"admin_account\":\"postgres\",\"admin_password\":\"mysecretpassword\"}" \
40+
--wallet-storage-creds "{\"account\":\"DB_USER\",\"password\":\"DB_PASSWORD\",\"admin_account\":\"DB_USER\",\"admin_password\":\"DB_PASSWORD\"}" \
4141
--admin '0.0.0.0' 8010 \
4242
--label "test_author" \
4343
--admin-insecure-mode \

demo/docker/docker-compose.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# To shut down the services run `docker-compose rm` - this will retain the postgres database, so you can change aca-py startup parameters
44
# and restart the docker containers without losing your wallet data
55
# If you want to delete your wallet data just run `docker volume ls -q | xargs docker volume rm`
6+
7+
# Note this requires von-network (https://github.com/bcgov/von-network) and indy-tails-server (https://github.com/bcgov/indy-tails-server) are already running
8+
69
version: "3"
710
services:
811
vcr-agent:
@@ -41,7 +44,7 @@ services:
4144
--wallet-key 'key' \
4245
--wallet-storage-type 'postgres_storage' \
4346
--wallet-storage-config '{\"url\":\"wallet-db:5432\",\"max_connections\":5}' \
44-
--wallet-storage-creds '{\"account\":\"DB_USER\",\"password\":\"DB_PASSWORD\",\"admin_account\":\"postgres\",\"admin_password\":\"mysecretpassword\"}' \
47+
--wallet-storage-creds '{\"account\":\"DB_USER\",\"password\":\"DB_PASSWORD\",\"admin_account\":\"DB_USER\",\"admin_password\":\"DB_PASSWORD\"}' \
4548
--admin '0.0.0.0' 8010 \
4649
--admin-insecure-mode \
4750
--label 'tester_agent' \
@@ -58,12 +61,10 @@ services:
5861
# --genesis-transactions-list 'ledgers.yaml' \
5962

6063
wallet-db:
61-
image: vcr-postgresql
64+
image: postgres:12
6265
environment:
63-
- POSTGRESQL_USER=DB_USER
64-
- POSTGRESQL_PASSWORD=DB_PASSWORD
65-
- POSTGRESQL_DATABASE=DB_USER
66-
- POSTGRESQL_ADMIN_PASSWORD=mysecretpassword
66+
- POSTGRES_USER=DB_USER
67+
- POSTGRES_PASSWORD=DB_PASSWORD
6768
ports:
6869
- 5433:5432
6970
volumes:

demo/multi-demo/docker-compose.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,10 @@ services:
3232
- ./ngrok-wait.sh:/home/indy/ngrok-wait.sh
3333

3434
wallet-db:
35-
image: vcr-postgresql
35+
image: postgres:12
3636
environment:
37-
- POSTGRESQL_USER=DB_USER
38-
- POSTGRESQL_PASSWORD=DB_PASSWORD
39-
- POSTGRESQL_DATABASE=DB_USER
40-
- POSTGRESQL_ADMIN_PASSWORD=mysecretpassword
37+
- POSTGRES_USER=DB_USER
38+
- POSTGRES_PASSWORD=DB_PASSWORD
4139
ports:
4240
- 5433:5432
4341
volumes:

demo/multi-demo/ngrok-wait.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ exec aca-py start \
3737
--wallet-key "secret_key" \
3838
--wallet-storage-type "postgres_storage" \
3939
--wallet-storage-config "{\"url\":\"wallet-db:5432\",\"max_connections\":5,\"scheme\":\"MultiWalletSingleTable\"}" \
40-
--wallet-storage-creds "{\"account\":\"DB_USER\",\"password\":\"DB_PASSWORD\",\"admin_account\":\"postgres\",\"admin_password\":\"mysecretpassword\"}" \
40+
--wallet-storage-creds "{\"account\":\"DB_USER\",\"password\":\"DB_PASSWORD\",\"admin_account\":\"DB_USER\",\"admin_password\":\"DB_PASSWORD\"}" \
4141
--admin '0.0.0.0' 8010 \
4242
--label "test_multi" \
4343
--admin-insecure-mode \

0 commit comments

Comments
 (0)