Skip to content

Instantly share code, notes, and snippets.

@rcmorano
Created May 20, 2025 18:55
Show Gist options
  • Save rcmorano/061a0ba0c24703c6818ad2df37f76c36 to your computer and use it in GitHub Desktop.
Save rcmorano/061a0ba0c24703c6818ad2df37f76c36 to your computer and use it in GitHub Desktop.
services:
yaci-cli:
restart: unless-stopped
image: bloxbean/yaci-cli:0.10.2
networks:
- lob
env_file:
- ./yaci-config/env
- ./yaci-config/node.properties
volumes:
- ./yaci-config/node.properties:/app/config/node.properties
- yaci-data:/clusters
ports:
- "3001:3001"
- "8081:8080"
entrypoint: [ "/app/yaci-cli", "create-node", "-o", "--start" ]
yaci-viewer:
restart: unless-stopped
image: bloxbean/yaci-viewer:0.10.2
ports:
- "5173:5173"
env_file:
- ./yaci-config/env
environment:
PUBLIC_INDEXER_BASE_URL: ${PUBLIC_INDEXER_BASE_URL:-http://yaci-cli:8080/api/v1}
PUBLIC_INDEXER_WS_URL: ${PUBLIC_INDEXER_WS_URL:-ws://localhost:8080/ws/liveblocks}
volumes:
yaci-data:
yaci_store_enabled=true
ogmios_enabled=true
kupo_enabled=false
node=node1
yaci_cli_mode=native
yaci_store_mode=native
#######################################################
# Ports
#######################################################
HOST_N2N_PORT=3001
HOST_N2C_SOCAT_PORT=3333
HOST_STORE_API_PORT=8081
HOST_VIEWER_PORT=5173
HOST_CLUSTER_API_PORT=10000
HOST_SUBMIT_API_PORT=8090
HOST_OGMIOS_PORT=1337
HOST_KUPO_PORT=1442
#######################################################
# Viewer Config - DON'T CHANGE
#######################################################
PUBLIC_INDEXER_BASE_URL=http://yaci-cli:8080/api/v1
PUBLIC_INDEXER_WS_URL=ws://localhost:${HOST_STORE_API_PORT}/ws/liveblocks
IS_DOCKER=true
#######################################################
# Default Addreses
# Add or remove addresses to topup ada during first run
# Format: <address1>:<ada_amount>,<address2>:<ada_amount>,...
#######################################################
#topup_addresses=addr_test1qzlwg5c3mpr0cz5td0rvr5rvcgf02al05cqgd2wzv7pud6chpzk4elx4jh2f7xtftjrdxddr88wg6sfszu8r3gktpjtqrr00q9:2000,addr_test1qqwpl7h3g84mhr36wpetk904p7fchx2vst0z696lxk8ujsjyruqwmlsm344gfux3nsj6njyzj3ppvrqtt36cp9xyydzqzumz82:1000
topup_addresses=addr_test1qppcuzs25ghufz2mzg37hcm77px4matwz2hz072z4ms7umqasylaf2uure0h5dw6zmm4ctnxfm0m9gf8lst6fflthlhq5hrg7w:1000
############################################################
#To configure an external database for Yaci Store (Indexer),
#uncomment the following properties and provide the required values
#Only PostgreSQL is supported for now for external database
############################################################
#yaci_store_db_url=jdbc:postgresql://192.168.0.68:5433/yaci_indexer?currentSchema=dev
#yaci_store_db_username=user
#yaci_store_db_password=
################################################################################################################
## Following genesis configurations can be changed for the devnet
## In Yaci DevKit's Docker version, protocolMagic is set to 42 and networkId is set to Testnet. These values are not configurable in the Docker version.
## To create a custom network with different protocolMagic and networkId, you can use Yaci CLI binary directly.
#################################################################################################################
#maxKESEvolutions=60
#securityParam=80
#slotsPerKESPeriod=129600
#updateQuorum=1
#peerSharing=true
## Shelley Genesis
#maxLovelaceSupply=45000000000000000
#poolPledgeInfluence=0
#decentralisationParam=0
#eMax=18
#keyDeposit=2000000
#maxBlockBodySize=65536
#maxBlockHeaderSize=1100
#maxTxSize=16384
#minFeeA=44
#minFeeB=155381
#minPoolCost=340000000
#minUTxOValue=1000000
#nOpt=100
#poolDeposit=500000000
#protocolMajorVer=8
#protocolMinorVer=0
#monetaryExpansionRate=0.003f
#treasuryGrowthRate=0.20f
##Default addresses
#initialAddresses[0].address=addr_test1qzx9hu8j4ah3auytk0mwcupd69hpc52t0cw39a65ndrah86djs784u92a3m5w475w3w35tyd6v3qumkze80j8a6h5tuqq5xe8y
#initialAddresses[0].balance=450000000
#initialAddresses[0].staked=true
#
#initialAddresses[1].address=addr_test1qqwpl7h3g84mhr36wpetk904p7fchx2vst0z696lxk8ujsjyruqwmlsm344gfux3nsj6njyzj3ppvrqtt36cp9xyydzqzumz82
#initialAddresses[1].balance=250000000
#initialAddresses[1].staked=false
##Alonzo
#collateralPercentage=150
#prMem=5.77e-2
#prSteps=7.21e-5
#lovelacePerUTxOWord=34482
#maxBlockExUnitsMem=62000000
#maxBlockExUnitsSteps=20000000000
#maxCollateralInputs=3
#maxTxExUnitsMem=14000000
#maxTxExUnitsSteps=10000000000
#maxValueSize=5000
##Conway
#pvtcommitteeNormal=0.51f
#pvtCommitteeNoConfidence=0.51f
#pvtHardForkInitiation=0.51f
#pvtMotionNoConfidence=0.51f
#pvtPPSecurityGroup=0.51f
#dvtMotionNoConfidence=0.51f
#dvtCommitteeNormal=0.51f
#dvtCommitteeNoConfidence=0.51f
#dvtUpdateToConstitution=0.51f
#dvtHardForkInitiation=0.51f
#dvtPPNetworkGroup=0.51f
#dvtPPEconomicGroup=0.51f
#dvtPPTechnicalGroup=0.51f
#dvtPPGovGroup=0.51f
#dvtTreasuryWithdrawal=0.51f
#committeeMinSize=0
#committeeMaxTermLength=200
#govActionLifetime=10
#govActionDeposit=1000000000
#dRepDeposit=2000000
#dRepActivity=20
#constitutionScript=7713eb6a46b67bfa1ca082f2b410b0a4e502237d03f7a0b7cbf1b025
#constitutionUrl=https://devkit.yaci.xyz/constitution.json
#constitutionDataHash=f89cc2469ce31c3dfda2f3e0b56c5c8b4ee4f0e5f66c30a3f12a95298b01179e
## CC Members
#ccMembers[0].hash=scriptHash-8fc13431159fdda66347a38c55105d50d77d67abc1c368b876d52ad1
#ccMembers[0].term=340
########################################################################################################
# Workaround for : https://github.com/bloxbean/yaci-devkit/issues/65
#
# The following parameters are enabled for a V2 cost model-related issue where there are 10 extra elements if the devnet
# is started with the Conway era at epoch 0. The following parameters are enabled to configure the Conway era hard fork (HF) at epoch 1.
# The network will start in the Babbage era and then hard fork (HF) to the Conway era at epoch 1.
# The shiftStartTimeBehind=true flag is enabled to shift the start time of the network to a time behind the current time by adjusting security parameter
# which changes the stability window. This is to speed up the process of reaching the Conway era.
#
# This should only be done in a development environment because if the stability window is larger than the epoch length, the reward/treasury calculations will be incorrect or ignored.
# Therefore, for a real multi-node network, you should start the network at the current time and allow it to reach the Conway era at epoch 1.
# So, the shiftStartTimeBehind flag should be "false" for non-development / multi-node networks.
#
#########################################################################################################
conwayHardForkAtEpoch=1
shiftStartTimeBehind=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment