-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Update docker compose files and Store dependency (#165)
* chore: Bump Store version (Utxo balance snapshot, Auto recovery) * chore: Added additional env variables * chore: Aggregation app specific properties * chore: Healthcheck and dependency added for postgres * chore: Create different docker compose files to reuse
- Loading branch information
Showing
15 changed files
with
229 additions
and
288 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
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
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,37 @@ | ||
version: '3.9' | ||
|
||
services: | ||
ledger-sync-aggregation: | ||
image: cardanofoundation/ledger-sync-aggregation:dev | ||
container_name: ledger-sync-aggregation-${NETWORK:-mainnet} | ||
# build: | ||
# context: . | ||
# dockerfile: Dockerfile | ||
# target: aggregation | ||
environment: | ||
- SPRING_DATASOURCE_URL=${SPRING_DATASOURCE_URL:-jdbc:postgresql://ledger-sync-postgres:5432/ledger_sync?currentSchema=aggregation} | ||
- SPRING_DATASOURCE_USERNAME=${SPRING_DATASOURCE_USERNAME:-cardano-master} | ||
- SPRING_DATASOURCE_PASSWORD=${SPRING_DATASOURCE_PASSWORD:-dbpass} | ||
- STORE_CARDANO_HOST=${STORE_CARDANO_HOST:-relays-new.cardano-mainnet.iohk.io} | ||
- STORE_CARDANO_PORT=${STORE_CARDANO_PORT:-3001} | ||
- STORE_CARDANO_PROTOCOLMAGIC=${STORE_CARDANO_PROTOCOLMAGIC:-764824073} | ||
- NETWORK=${NETWORK:-mainnet} | ||
- HEALTH_CHECK_ENABLED=${HEALTH_CHECK_ENABLED:-true} | ||
- EVENT_TIME_THRESHOLD_IN_SECOND=${EVENT_TIME_THRESHOLD_IN_SECOND:-600} | ||
- BLOCK_TIME_CHECK_ENABLED=${BLOCK_TIME_CHECK_ENABLED:-true} | ||
- BLOCK_TIME_THRESHOLD_IN_SECOND=${BLOCK_TIME_THRESHOLD_IN_SECOND:-180} | ||
- STORE_ACCOUNT_INITIALBALANCESNAPSHOTBLOCK=${STORE_ACCOUNT_INITIALBALANCESNAPSHOTBLOCK:-0} | ||
- STORE_ACCOUNT_BALANCECALCJOBBATCHSIZE=${STORE_ACCOUNT_BALANCECALCJOBBATCHSIZE:-500} | ||
- STORE_ACCOUNT_BALANCECALCJOBPARTITIONSIZE=${STORE_ACCOUNT_BALANCECALCJOBPARTITIONSIZE:-5} | ||
- STORE_ADMIN_HEALTHCHECKINTERVAL=${STORE_ADMIN_HEALTHCHECKINTERVAL:-120} | ||
- STORE_ADMIN_AUTORECOVERYENABLED=${STORE_ADMIN_AUTORECOVERYENABLED:-true} | ||
ports: | ||
- ${PORT:-8081}:8080 | ||
volumes: | ||
- $PWD/logs:/app/logs | ||
|
||
logging: | ||
driver: "json-file" | ||
options: | ||
max-size: "1m" | ||
max-file: "50" |
This file was deleted.
Oops, something went wrong.
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,32 @@ | ||
version: '3.9' | ||
|
||
networks: | ||
ledger-sync-net: | ||
|
||
services: | ||
ledger-sync-postgres: | ||
extends: | ||
file: postgres-compose.yml | ||
service: ledger-sync-postgres | ||
networks: | ||
- ledger-sync-net | ||
|
||
ledger-sync: | ||
extends: | ||
file: main-app-compose.yml | ||
service: ledger-sync | ||
depends_on: | ||
ledger-sync-postgres: | ||
condition: service_healthy | ||
networks: | ||
- ledger-sync-net | ||
|
||
ledger-sync-aggregation: | ||
extends: | ||
file: aggr-app-compose.yml | ||
service: ledger-sync-aggregation | ||
depends_on: | ||
ledger-sync-postgres: | ||
condition: service_healthy | ||
networks: | ||
- ledger-sync-net |
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,22 @@ | ||
version: '3.9' | ||
|
||
networks: | ||
ledger-sync-net: | ||
|
||
services: | ||
ledger-sync-postgres: | ||
extends: | ||
file: postgres-compose.yml | ||
service: ledger-sync-postgres | ||
networks: | ||
- ledger-sync-net | ||
|
||
ledger-sync-aggregation: | ||
extends: | ||
file: aggr-app-compose.yml | ||
service: ledger-sync-aggregation | ||
depends_on: | ||
ledger-sync-postgres: | ||
condition: service_healthy | ||
networks: | ||
- ledger-sync-net |
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,22 @@ | ||
version: '3.9' | ||
|
||
networks: | ||
ledger-sync-net: | ||
|
||
services: | ||
ledger-sync-postgres: | ||
extends: | ||
file: postgres-compose.yml | ||
service: ledger-sync-postgres | ||
networks: | ||
- ledger-sync-net | ||
|
||
ledger-sync: | ||
extends: | ||
file: main-app-compose.yml | ||
service: ledger-sync | ||
depends_on: | ||
ledger-sync-postgres: | ||
condition: service_healthy | ||
networks: | ||
- ledger-sync-net |
Oops, something went wrong.