This repository has been archived by the owner on Feb 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* tune compose files * open preview * fix webhook url Signed-off-by: frank-bee <[email protected]>
- Loading branch information
Showing
7 changed files
with
49 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
backend/business-partner-agent/src/main/resources/application-dev.yml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,10 @@ | ||
# Compose file for frontent developers or for everyone else that needs the full stack up and running | ||
|
||
version: '3' | ||
|
||
version: "3.9" | ||
services: | ||
bpa: | ||
image: ${BPA_DOCKER_IMAGE} | ||
depends_on: | ||
- aca-py | ||
environment: | ||
JAVA_OPTS: > | ||
-Dbpa.acapy.url=http://aca-py:${ACAPY_ADMIN_PORT} | ||
-Dbpa.acapy.apiKey=${ACAPY_ADMIN_URL_API_KEY} | ||
-Dmicronaut.security.enabled=${BPA_SECURITY_ENABLED} | ||
-Dmicronaut.server.port=${BPA_PORT} | ||
-Dmicronaut.config.files=${BPA_CONFIG_FILES} | ||
-Dbpa.pg.url=jdbc:postgresql://${POSTGRESQL_HOST}/${POSTGRESQL_USER} | ||
-Dbpa.pg.username=${POSTGRESQL_USER} | ||
-Dbpa.pg.password=${POSTGRESQL_PASSWORD} | ||
-Dbpa.host=${BPA_HOST} | ||
BPA_WEB_MODE: ${BPA_WEB_MODE} | ||
BPA_RESOLVER_URL: ${BPA_RESOLVER_URL} | ||
BPA_LEDGER_BROWSER: ${BPA_LEDGER_BROWSER} | ||
BPA_DID_PREFIX: ${BPA_DID_PREFIX} | ||
BPA_BOOTSTRAP_UN: ${BPA_BOOTSTRAP_UN} | ||
BPA_BOOTSTRAP_PW: ${BPA_BOOTSTRAP_PW} | ||
ACAPY_ENDPOINT: ${ACAPY_ENDPOINT} | ||
AGENT_NAME: ${AGENT_NAME} | ||
BPA_IMPRINT_URL: ${BPA_IMPRINT_URL} | ||
BPA_PRIVACY_POLICY_URL: ${BPA_PRIVACY_POLICY_URL} | ||
BPA_CREDDEF_REVOCATION_REGISTRY_SIZE: ${BPA_CREDDEF_REVOCATION_REGISTRY_SIZE} | ||
ports: | ||
- ${BPA_PORT}:${BPA_PORT} | ||
restart: always | ||
aca-py: | ||
bpa-agent1: | ||
build: | ||
context: ${ACAPY_BUILD_CONTEXT} | ||
dockerfile: ${ACAPY_BUILD_DOCKERFILE_PATH} | ||
ports: | ||
- ${ACAPY_ADMIN_PORT}:${ACAPY_ADMIN_PORT} | ||
- ${ACAPY_HTTP_PORT}:${ACAPY_HTTP_PORT} | ||
depends_on: | ||
- postgres | ||
entrypoint: /bin/bash | ||
command: [ | ||
"-c", | ||
"sleep 1; | ||
aca-py start \ | ||
--arg-file acapy-static-args.yml \ | ||
--inbound-transport http '0.0.0.0' ${ACAPY_HTTP_PORT} \ | ||
--webhook-url http://bpa:${BPA_PORT}/log \ | ||
--genesis-url '${ACAPY_GENESIS_URL}' \ | ||
--endpoint ${ACAPY_ENDPOINT} \ | ||
--wallet-name '${ACAPY_WALLET_DATABASE}' \ | ||
--wallet-key '${ACAPY_WALLET_ENCRYPTION_KEY}' \ | ||
--wallet-storage-type '${ACAPY_WALLET_TYPE}' \ | ||
--wallet-storage-config '{\"url\":\"${POSTGRESQL_HOST}:${POSTGRESQL_PORT}\",\"max_connections\":5}' \ | ||
--wallet-storage-creds '{\"account\":\"${POSTGRESQL_USER}\",\"password\":\"${POSTGRESQL_PASSWORD}\",\"admin_account\":\"${POSTGRESQL_USER}\",\"admin_password\":\"${POSTGRESQL_PASSWORD}\"}' \ | ||
--seed '${ACAPY_SEED}' \ | ||
--admin '0.0.0.0' ${ACAPY_ADMIN_PORT} \ | ||
--label '${AGENT_NAME}' \ | ||
${ACAPY_ADMIN_CONFIG} \ | ||
${ACAPY_READ_ONLY_MODE} \ | ||
" | ||
] | ||
volumes: | ||
- "./acapy-static-args.yml:/home/indy/acapy-static-args.yml" | ||
postgres: | ||
image: "postgres:12-alpine" | ||
environment: | ||
- POSTGRES_USER=${POSTGRESQL_USER} | ||
- POSTGRES_PASSWORD=${POSTGRESQL_PASSWORD} | ||
ports: | ||
- ${POSTGRESQL_PORT}:${POSTGRESQL_PORT} | ||
volumes: | ||
- postgres-data:/var/lib/postgresql/data | ||
volumes: | ||
postgres-data: | ||
bpa-agent2: | ||
build: | ||
context: ${ACAPY_BUILD_CONTEXT} | ||
dockerfile: ${ACAPY_BUILD_DOCKERFILE_PATH} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
version: "3.9" | ||
services: | ||
####### | ||
# Business Partner 1 | ||
####### | ||
bpa1: | ||
image: ghcr.io/hyperledger-labs/business-partner-agent:local | ||
build: | ||
context: .. | ||
dockerfile: Dockerfile | ||
|
||
####### | ||
# Business Partner 2 (only started with "--profile second_bpa") | ||
####### | ||
bpa2: | ||
image: ghcr.io/hyperledger-labs/business-partner-agent:local | ||
build: | ||
context: .. | ||
dockerfile: Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters