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)
VariableDescriptionDefaultNotes
LOGLog levelINFOadded in release 1.0.0
NETWORKNetworkmainnetadded in release 1.0.0
MITHRIL_SYNCSync from Mithril snapshottrueadded in release 1.0.0
PROTOCOL_MAGICCardano protocol magic764824073added in release 1.0.0
DB_IMAGE_NAMEPostgres docker image namepostgresadded in release 1.0.0
DB_IMAGE_TAGPostgres docker image tag14.11-bullseyeadded in release 1.0.0
DB_NAMEPostgres databaserosetta-javaadded in release 1.0.0
DB_USERPostgres admin userrosetta_db_adminadded in release 1.0.0
DB_SECRETPostgres admin secretweakpwd#123_dadded in release 1.0.0
DB_HOSTPostgres hostdbadded in release 1.0.0
DB_PORTPostgres port5432added in release 1.0.0
DB_SCHEMADatabase schemamainnetadded in release 1.0.0
DB_PATHDatabase path/dataadded in release 1.0.0
CARDANO_NODE_HOSTCardano node hostcardano-nodeadded in release 1.0.0
CARDANO_NODE_PORTCardano node port3001added in release 1.0.0
CARDANO_NODE_VERSIONCardano node version8.9.2added in release 1.0.0
CARDANO_NODE_SUBMIT_HOSTCardano node submit API hostcardano-submit-apiadded in release 1.0.0
NODE_SUBMIT_API_PORTCardano node submit API port8090added in release 1.0.0
CARDANO_NODE_SOCKET_PATHCardano node socket path/nodeadded in release 1.0.0
CARDANO_NODE_SOCKETCardano node socket file/node/node.socketadded in release 1.0.0
CARDANO_NODE_DBCardano node db path/node/dbadded in release 1.0.0
CARDANO_CONFIGCardano node config path/config/mainnetadded in release 1.0.0
API_DOCKER_IMAGE_TAGDocker Tag for API Imagemainadded in release 1.0.0
API_SPRING_PROFILES_ACTIVEAPI spring profilestagingadded in release 1.0.0
API_PORTRosetta API exposed port8082added in release 1.0.0
ROSETTA_VERSIONRosetta version1.4.13added in release 1.0.0
TOPOLOGY_FILEPATHTopology file path./config/mainnet/topology.jsonadded in release 1.0.0
GENESIS_SHELLEY_PATHGenesis file path./config/mainnet/shelley-genesis.jsonadded in release 1.0.0
GENESIS_BYRON_PATHGenesis file path./config/mainnet/byron-genesis.jsonadded in release 1.0.0
GENESIS_ALONZO_PATHGenesis file path./config/mainnet/alonzo-genesis.jsonadded in release 1.0.0
GENESIS_CONWAY_PATHGenesis file path./config/mainnet/conway-genesis.jsonadded in release 1.0.0
INDEXER_DOCKER_IMAGE_TAGYaci indexer Docker versionmainadded in release 1.0.0
PRUNING_ENABLEDIf pruning should be enabledfalseadded in release 1.0.0
PRUNING_INTERVALThe pruning interval in seconds600added in release 1.2.4
PRUNING_SAFE_BLOCKSNumber of safe blocks to keep in the store2160added in release 1.2.4
YACI_SPRING_PROFILESYaci indexer spring profilepostgresadded in release 1.0.0
DEVKIT_ENABLEDDevkit enabledfalseadded in release 1.0.0
YACI_HTTP_BASE_URLYaci Indexer's URLhttp://yaci-indexer:9095/api/v1added in release 1.2.1
YACI_INDEXER_PORTYaci Indexer's port9095added in release 1.2.1
HTTP_CONNECT_TIMEOUT_SECONDSYaci connection timeout in seconds5added in release 1.2.1
HTTP_REQUEST_TIMEOUT_SECONDSYaci request timeout in seconds5added in release 1.2.1
API_DB_POOL_MIN_COUNTMinimum number of connections API↔DB12added in release 1.2.5
API_DB_POOL_MAX_COUNTMaximum number of connections API↔DB12added in release 1.2.5
API_DB_POOL_MAX_LIFETIME_MSDescription2000000added in release 1.2.5
API_DB_POOL_CONNECTION_TIMEOUT_MSConnection timeout in milliseconds100000added in release 1.2.5
API_DB_KEEP_ALIVE_MSKeep alive in milliseconds60000added in release 1.2.5
API_DB_LEAK_CONNECTIONS_WARNING_MSLeak connection warning threshold (ms)60000added in release 1.2.5
API_DB_MONITOR_PERFORMANCEMonitor performance enable?falseadded in release 1.2.5
DB_POSTGRES_MAX_CONNECTIONSMaximum concurrent database connections300 (mid-level profile)added in release 1.2.6
DB_POSTGRES_SHARED_BUFFERSMemory for caching4GB (mid-level profile)added in release 1.2.6
DB_POSTGRES_EFFECTIVE_CACHE_SIZEDisk cache size8GB (mid-level profile)added in release 1.2.6
DB_POSTGRES_WORK_MEMMemory per operation for query processing64MB (mid-level profile)added in release 1.2.6
DB_POSTGRES_MAINTENANCE_WORK_MEMMemory for maintenance tasks like index creation512GB (mid-level profile)added in release 1.2.6
DB_POSTGRES_WAL_BUFFERSWrite-ahead log buffer memory512MB (mid-level profile)added in release 1.2.6
DB_POSTGRES_CHECKPOINT_COMPLETION_TARGETTarget checkpoint completion0.7 (mid-level profile)added in release 1.2.6
DB_POSTGRES_RANDOM_PAGE_COSTCost estimate for random disk page access1.3 (mid-level profile)added in release 1.2.6
DB_POSTGRES_EFFECTIVE_IO_CONCURRENCYConcurrent I/O for table scans2 (mid-level profile)added in release 1.2.6
DB_POSTGRES_PARALLEL_TUPLE_COSTCost per tuple in parallel queries0.05 (mid-level profile)added in release 1.2.6
DB_POSTGRES_PARALLEL_SETUP_COSTCost for initiating parallel query workers500 (mid-level profile)added in release 1.2.6
DB_POSTGRES_MAX_PARALLEL_WORKERS_PER_GATHERParallel workers per query4 (mid-level profile)added in release 1.2.6
DB_POSTGRES_MAX_PARALLEL_WORKERSTotal parallel workers across all queries8 (mid-level profile)added in release 1.2.6
DB_POSTGRES_SEQ_PAGE_COSTCost estimate for sequential disk page access1.0added in release 1.2.6
DB_POSTGRES_JITJust-In-Time compilation settingoffadded in release 1.2.6
DB_POSTGRES_BGWRITER_LRU_MAXPAGESMax pages for background writer per cycle100 (mid-level profile)added in release 1.2.6
DB_POSTGRES_BGWRITER_DELAYDelay between background writer cycles200ms (mid-level profile)added in release 1.2.6