Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 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
56 changes: 56 additions & 0 deletions docker/docker-compose-issuer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
services:
issuer-aca-py:
image: ghcr.io/openwallet-foundation/acapy-agent:py3.12-1.3.1
environment:
- ACAPY_LABEL=${ISSUER_AGENT_NAME:-Trusted Verifier Issuer}
- ACAPY_ENDPOINT=${ISSUER_AGENT_ENDPOINT:-http://issuer-aca-py:8031}
- ACAPY_WALLET_NAME=issuer_agent_wallet
- ACAPY_WALLET_TYPE=askar
- ACAPY_WALLET_KEY=${ISSUER_WALLET_ENCRYPTION_KEY:-issuer_wallet_key_change_me}
- ACAPY_WALLET_SEED=${ISSUER_AGENT_WALLET_SEED:-000000000000000000000000Issuer01}
- ACAPY_AUTO_ACCEPT_INVITES=true
- ACAPY_AUTO_ACCEPT_REQUESTS=true
- ACAPY_AUTO_PING_CONNECTION=true
- ACAPY_WALLET_STORAGE_TYPE=postgres_storage
- ACAPY_GENESIS_TRANSACTIONS_LIST=/tmp/ledgers.yaml
- ACAPY_LOG_LEVEL=info
- ACAPY_AUTO_PROVISION=true
- POSTGRESQL_WALLET_HOST=issuer-wallet-db
- POSTGRESQL_WALLET_PORT=5432
- POSTGRESQL_WALLET_USER=${ISSUER_POSTGRESQL_WALLET_USER:-issuer_wallet_user}
- POSTGRESQL_WALLET_PASSWORD=${ISSUER_POSTGRESQL_WALLET_PASSWORD:-issuer_wallet_password}
ports:
- ${ISSUER_AGENT_ADMIN_PORT:-8078}:8078
- ${ISSUER_AGENT_HTTP_PORT:-8031}:8031
networks:
- vc_auth
volumes:
- ./agent/config/ledgers.yaml:/tmp/ledgers.yaml
depends_on:
- issuer-wallet-db
entrypoint: /bin/bash
command:
[
"-c",
'sleep 15; aca-py start --inbound-transport http ''0.0.0.0'' 8031 --outbound-transport http --wallet-storage-config ''{"url":"issuer-wallet-db:5432","max_connections":5}'' --wallet-storage-creds ''{"account":"${ISSUER_POSTGRESQL_WALLET_USER:-issuer_wallet_user}","password":"${ISSUER_POSTGRESQL_WALLET_PASSWORD:-issuer_wallet_password}","admin_account":"${ISSUER_POSTGRESQL_WALLET_USER:-issuer_wallet_user}","admin_password":"${ISSUER_POSTGRESQL_WALLET_PASSWORD:-issuer_wallet_password}"}'' --admin ''0.0.0.0'' 8078 --admin-insecure-mode',
]

issuer-wallet-db:
image: postgres:15.1-alpine
environment:
- POSTGRES_USER=${ISSUER_POSTGRESQL_WALLET_USER:-issuer_wallet_user}
- POSTGRES_PASSWORD=${ISSUER_POSTGRESQL_WALLET_PASSWORD:-issuer_wallet_password}
- POSTGRES_DB=${ISSUER_POSTGRESQL_WALLET_DATABASE:-issuer_wallet}
networks:
- vc_auth
ports:
- 5434:5432
volumes:
- issuer-wallet-db:/var/lib/pgsql/data

networks:
vc_auth:
driver: bridge

volumes:
issuer-wallet-db:
4 changes: 3 additions & 1 deletion docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ services:
- ACAPY_WALLET_SEED=${AGENT_WALLET_SEED}
- ACAPY_WALLET_LOCAL_DID=true
- ACAPY_AUTO_VERIFY_PRESENTATION=true
- ACAPY_AUTO_RESPOND_CREDENTIAL_OFFER=true
- ACAPY_AUTO_STORE_CREDENTIAL=true
- ACAPY_WALLET_STORAGE_TYPE=${WALLET_TYPE}
- ACAPY_READ_ONLY_LEDGER=true
- ACAPY_GENESIS_TRANSACTIONS_LIST=/tmp/ledgers.yaml
Expand Down Expand Up @@ -208,4 +210,4 @@ volumes:
controller-db-data:
keycloak-db-data:
agent-wallet-db:
redis-data:
redis-data:
17 changes: 17 additions & 0 deletions docker/manage
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ usage() {
Automatically fixes formatting issues.

$0 format
bootstrap - Bootstrap trusted verifier credential (requires issuer agent running).

$0 bootstrap

logs - Display the logs from the docker compose run (ctrl-c to exit).

Expand Down Expand Up @@ -523,6 +526,20 @@ single-pod)
docker-compose up -d ${DEFAULT_CONTAINERS} ${ACAPY_CONTAINERS} ${PROD_CONTAINERS}
docker-compose logs -f
;;
bootstrap)
configureEnvironment $@

echoInfo "Starting issuer agent and dependencies..."
docker-compose -f docker-compose-issuer.yaml up -d

echoInfo "Waiting for agents to be ready..."
sleep 10

echoInfo "Running bootstrap script..."
poetry run ../scripts/bootstrap-trusted-verifier.py

echoSuccess "Bootstrap complete!"
;;
*)
usage
;;
Expand Down
Loading