Skip to content

Commit

Permalink
feat: added configurability to docker containers
Browse files Browse the repository at this point in the history
  • Loading branch information
Kammerlo committed May 7, 2024
1 parent a054319 commit b9f9b66
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .env.IntegrationTest
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ CARDANO_NODE_DB="node/db"
CARDANO_CONFIG="./config/${NETWORK}"

#api env
API_DOCKER_IMAGE_TAG="main"
API_SPRING_PROFILES_ACTIVE_API="dev"
API_PORT="8081"
TRANSACTION_TTL=3000
Expand All @@ -44,6 +45,7 @@ GENESIS_CONWAY_PATH=/config/${NETWORK}/conway-genesis.json
PRINT_EXCEPTION=true

#yaci env
INDEXER_DOCKER_IMAGE_TAG="main"
YACI_SPRING_PROFILES="postgres" # database profiles: h2, postgres
INDEXER_NODE_PORT=3001
INITIAL_BALANCE_CALCULATION_BLOCK=0
Expand Down
2 changes: 2 additions & 0 deletions .env.docker-compose
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ CARDANO_NODE_DB="./node/db"
CARDANO_CONFIG="./config/${NETWORK}"

#api env
API_DOCKER_IMAGE_TAG="main"
API_SPRING_PROFILES_ACTIVE_API="dev" # staging. Additional profiles: mempool (if mempool should be activated)
API_PORT=8081
TRANSACTION_TTL=3000
Expand All @@ -43,6 +44,7 @@ API_NODE_SOCKET_PATH=./node/node.socket
PRINT_EXCEPTION=true

#yaci env
INDEXER_DOCKER_IMAGE_TAG="main"
YACI_SPRING_PROFILES="postgres" # database profiles: h2, postgres
INDEXER_NODE_PORT=3001
MEMPOOL_ENABLED=false
Expand Down
2 changes: 2 additions & 0 deletions .env.h2
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ NODE_SUBMIT_API_PORT=8090
CARDANO_NODE_SOCKET=./node-ipc

#api env
API_DOCKER_IMAGE_TAG="main"
API_SPRING_PROFILES_ACTIVE=h2
API_SPRING_PROFILES_ACTIVE_API=dev
API_EXPOSED_PORT=8081
Expand All @@ -42,6 +43,7 @@ GENESIS_CONWAY_PATH=config/${NETWORK}/conway-genesis.json
PRINT_EXCEPTION=true

#yaci env
INDEXER_DOCKER_IMAGE_TAG="main"
API_SPRING_PROFILES_ACTIVE_YACI_INDEXER=postgres # database profiles: h2, postgres
INDEXER_NODE_PORT=3001
INITIAL_BALANCE_CALCULATION_BLOCK=0
2 changes: 2 additions & 0 deletions docker-api-indexer.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
version: '3.8'
services:
api:
image: cardanofoundation/cardano-rosetta-java-api:${API_DOCKER_IMAGE_TAG}
build:
context: ./
dockerfile: ./api/Dockerfile
Expand Down Expand Up @@ -45,6 +46,7 @@ services:
db:
condition: service_healthy
yaci-indexer:
image: cardanofoundation/cardano-rosetta-java-indexer:${INDEXER_DOCKER_IMAGE_TAG}
build:
context: ./
dockerfile: ./yaci-indexer/Dockerfile
Expand Down

0 comments on commit b9f9b66

Please sign in to comment.