Skip to main content

Environment variables

With environment variables the behaviour of the compiled application can be configured. The following table lists the available environment variables and their default values.

Within root folder of the project there are example .env files, which can be copied and adjusted to fit the needs of the deployment.

  • .env.IntegrationTest - Is used for integration tests with yaci devkit
  • .env.docker-compose - Is used for standard docker-compose setup (Copy this file and adjusted it to your needs)
VariableDescriptionDefault
LOGLog levelINFO
NETWORKNetworkmainnet
MITHRIL_SYNCSync from Mithril snapshottrue
PROTOCOL_MAGICCardano protocol magic764824073
DB_IMAGE_NAMEPostgres docker image namepostgres
DB_IMAGE_TAGPostgres docker image tag14.11-bullseye
DB_NAMEPostgres databaserosetta-java
DB_USERPostgres admin userrosetta_db_admin
DB_SECRETPostgres admin secretweakpwd#123_d
DB_HOSTPostgres hostdb
DB_PORTPostgres port5432
DB_SCHEMADatabase schemamainnet
DB_PATHDatabase path/data
CARDANO_NODE_HOSTCardano node hostcardano-node
CARDANO_NODE_PORTCardano node port3001
CARDANO_NODE_VERSIONCardano node version8.9.2
CARDANO_NODE_SUBMIT_HOSTCardano node submit api hostcardano-submit-api
NODE_SUBMIT_API_PORTCardano node submit api port8090
CARDANO_NODE_SOCKET_PATHCardano node socket path/node
CARDANO_NODE_SOCKETCardano node socket file/node/node.socket
CARDANO_NODE_DBCardano node db path/node/db
CARDANO_CONFIGCardano node config path/config/mainnet
API_DOCKER_IMAGE_TAGDocker Tag for API Imagemain
API_SPRING_PROFILES_ACTIVEApi spring profilestaging
API_PORTRosetta api exposed port8082
ROSETTA_VERSIONRosetta version1.4.13
TOPOLOGY_FILEPATHTopology file path./config/mainnet/topology.json
GENESIS_SHELLEY_PATHGenesis file path./config/mainnet/shelley-genesis.json
GENESIS_BYRON_PATHGenesis file path./config/mainnet/byron-genesis.json
GENESIS_ALONZO_PATH Genesis file path./config/mainnet/alonzo-genesis.json
GENESIS_CONWAY_PATHGenesis file path./config/mainnet/conway-genesis.json
INDEXER_DOCKER_IMAGE_TAGYaci indexer Docker versionmain
PRUNING_ENABLEDIf pruning should be enabledtrue
YACI_SPRING_PROFILESYaci indexer spring profilepostgres
DEVKIT_ENABLEDDevkit enabledfalse