forked from hyperledger/aries-cloudagent-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
80 lines (76 loc) · 2.91 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Sample docker-compose to start a local aca-py in multi-ledger mode
# To start aca-py and the postgres database, just run `docker-compose up`
# To shut down the services run `docker-compose rm` - this will retain the postgres database, so you can change aca-py startup parameters
# and restart the docker containers without losing your wallet data
# If you want to delete your wallet data just run `docker volume ls -q | xargs docker volume rm`
version: "3"
services:
vcr-agent:
build:
context: ../../
dockerfile: docker/Dockerfile.run
ports:
- 8010:8010
- 8001:8001
depends_on:
- wallet-db
entrypoint: /bin/bash
command: [
"-c",
"sleep 5; \
aca-py start \
--auto-provision \
--seed '00000000o_faber_secondary_school' \
--inbound-transport http '0.0.0.0' 8001 \
--endpoint 'http://host.docker.internal:8001' \
--outbound-transport http \
--genesis-url 'https://raw.githubusercontent.com/sovrin-foundation/sovrin/master/sovrin/pool_transactions_builder_genesis' \
--auto-accept-invites \
--auto-accept-requests \
--auto-ping-connection \
--auto-respond-messages \
--auto-respond-credential-proposal \
--auto-respond-credential-offer \
--auto-respond-credential-request \
--auto-verify-presentation \
--tails-server-base-url 'https://tails-test.vonx.io' \
--notify-revocation \
--monitor-revocation-notification \
--wallet-type 'askar' \
--wallet-name 'acapy_agent_wallet' \
--wallet-key 'key' \
--wallet-storage-type 'postgres_storage' \
--wallet-storage-config '{\"url\":\"wallet-db:5432\",\"max_connections\":5}' \
--wallet-storage-creds '{\"account\":\"DB_USER\",\"password\":\"DB_PASSWORD\",\"admin_account\":\"postgres\",\"admin_password\":\"mysecretpassword\"}' \
--admin '0.0.0.0' 8010 \
--admin-insecure-mode \
--label 'tester_agent' \
--log-level 'info' ",
]
volumes:
- ./ledgers.yaml:/home/indy/ledgers.yaml
networks:
- tails-network
# note - if you want to start aca-py in single-ledger mode, replace the `--genesis-transactions-list` parameter above with:
# --genesis-url 'https://raw.githubusercontent.com/sovrin-foundation/sovrin/master/sovrin/pool_transactions_builder_genesis' \
# --genesis-url 'http://host.docker.internal:9000/genesis' \
# --genesis-transactions-list 'ledgers.yaml' \
wallet-db:
image: vcr-postgresql
environment:
- POSTGRESQL_USER=DB_USER
- POSTGRESQL_PASSWORD=DB_PASSWORD
- POSTGRESQL_DATABASE=DB_USER
- POSTGRESQL_ADMIN_PASSWORD=mysecretpassword
ports:
- 5433:5432
volumes:
- wallet-db-data:/var/lib/pgsql/data
networks:
- tails-network
volumes:
wallet-db-data:
networks:
tails-network:
external:
name: docker_tails-server