-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy path.env.docker-compose-preprod
More file actions
135 lines (113 loc) · 3.7 KB
/
Copy path.env.docker-compose-preprod
File metadata and controls
135 lines (113 loc) · 3.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
## Main variables
API_SPRING_PROFILES_ACTIVE=online
LOG=INFO
NETWORK=preprod
# mainnet, preprod, preview, devkit
PROTOCOL_MAGIC=1
# mainnet 764824073, preprod 1, preview 2, devkit 42
## Postgres image
PG_VERSION_TAG=REL_18_0
## Postgres variables
DB_NAME=rosetta-java
DB_USER=rosetta_db_admin
DB_SECRET=weakpwd#123_d
DB_HOST=db
# Service name in docker-compose or local db
DB_PORT=5432
DB_SCHEMA=public
DB_PATH=/opt/rosetta-java-preprod/sql_data
## Cardano Node variables
CARDANO_NODE_HOST=cardano-node
# Service name in docker-compose or local cardano node
CARDANO_NODE_PORT=3001
# Uncomment if you are using local cardano node
CARDANO_NODE_VERSION=11.0.1
CARDANO_NODE_SUBMIT_HOST=cardano-submit-api
NODE_SUBMIT_API_PORT=8090
CARDANO_NODE_DIR=/opt/rosetta-java-preprod/node_data
CARDANO_NODE_SOCKET_PATH=${CARDANO_NODE_DIR}/node.socket
CARDANO_NODE_DB=${CARDANO_NODE_DIR}/db
CARDANO_CONFIG=./config/node/${NETWORK}
CARDANO_CONFIG_CONTAINER_PATH=/config
## Mithril
MITHRIL_SYNC=true
MITHRIL_VERSION=2617.0
SNAPSHOT_DIGEST=latest
# if not set standard values will be used
AGGREGATOR_ENDPOINT=
# if not set standard values will be used
GENESIS_VERIFICATION_KEY=
ANCILLARY_VERIFICATION_KEY=
## Release version (used for API and Indexer docker image tags)
RELEASE_VERSION=2.3.0
## Api env
# staging, h2, test. Additional profiles: mempool (if mempool should be activated)
API_PORT=8082
PRINT_EXCEPTION=true
TOPOLOGY_FILEPATH=/config/topology.json
GENESIS_SHELLEY_PATH=/config/shelley-genesis.json
GENESIS_BYRON_PATH=/config/byron-genesis.json
GENESIS_ALONZO_PATH=/config/alonzo-genesis.json
GENESIS_CONWAY_PATH=/config/conway-genesis.json
SEARCH_LIMIT=100
## Yaci Indexer env
REMOVE_SPENT_UTXOS=false
#The number of safe blocks to keep in the store. 129600 blocks *(20 seconds/block in average)=30 days
REMOVE_SPENT_UTXOS_LAST_BLOCKS_GRACE_COUNT=129600
REMOVE_SPENT_UTXOS_BATCH_SIZE=3000
BLOCK_TRANSACTION_API_TIMEOUT_SECS=5
INDEX_STALL_TIMEOUT_MINUTES=360
INDEX_FAILED_RETRY_MAX_ATTEMPTS=3
INDEX_FAILED_RETRY_DELAY_MINUTES=5
INDEX_QUERY_TIMEOUT_SECONDS=21600
YACI_SPRING_PROFILES=postgres,n2c-socket
# database profiles: h2, h2-testdata, postgres
MEMPOOL_ENABLED=false
## Devkit env
DEVKIT_ENABLED=false
DEVKIT_URL=yaci-cli
DEVKIT_PORT=3333
## Logger Config
LOG_FILE_PATH=/var/log/rosetta-java
LOG_FILE_NAME=/var/log/rosetta-java/rosetta-java.log
LOG_FILE_MAX_SIZE=10MB
LOG_FILE_MAX_HISTORY=10
YACI_HTTP_BASE_URL=http://yaci-indexer:9095/api/v1
YACI_INDEXER_PORT=9095
HTTP_CONNECT_TIMEOUT_SECONDS=5
HTTP_REQUEST_TIMEOUT_SECONDS=5
## DB tuning / debugging
API_DB_SHOW_SQL=false
API_DB_MONITOR_PERFORMANCE=false #only needed for debugging and diagnostics
## Basic db pool tuning, generally should not be changed but can be changed rarely if needed
API_DB_POOL_MAX_LIFETIME_MS=2000000
API_DB_POOL_CONNECTION_TIMEOUT_MS=100000
API_DB_KEEP_ALIVE_MS=60000
API_DB_LEAK_CONNECTIONS_WARNING_MS=60000
## Indexer DB tuning / debugging
INDEXER_DB_SHOW_SQL=false
INDEXER_DB_MONITOR_PERFORMANCE=false
## Indexer DB pool tuning
INDEXER_DB_POOL_MIN_COUNT=12
INDEXER_DB_POOL_MAX_COUNT=12
INDEXER_DB_POOL_MAX_LIFETIME_MS=2000000
INDEXER_DB_POOL_CONNECTION_TIMEOUT_MS=100000
INDEXER_DB_KEEP_ALIVE_MS=60000
INDEXER_DB_LEAK_CONNECTIONS_WARNING_MS=60000
SYNC_GRACE_SLOTS_COUNT=200
## When set to true, the parsing / processing blockchain data even if an error occurs.
CONTINUE_PARSING_ON_ERROR=false
## Indexer sync starts after node is at tip. Set false for offline mode.
SYNC=true
## Monitoring variables
PROMETHEUS_PORT=9090
GRAFANA_PORT=3000
POSTGRESQL_EXPORTER_PORT=9187
## Peer Discovery
PEER_DISCOVERY=true
## Token Registry
TOKEN_REGISTRY_ENABLED=false
TOKEN_REGISTRY_BASE_URL=
TOKEN_REGISTRY_CACHE_TTL_HOURS=1
TOKEN_REGISTRY_LOGO_FETCH=true
TOKEN_REGISTRY_REQUEST_TIMEOUT_SECONDS=2