@fairmint/canton-node-sdk
Version:
Canton Node SDK
97 lines (85 loc) • 2.44 kB
Plain Text
include required(file("/app/storage.conf"))
canton {
# required for key export
features {
enable-preview-commands = yes
}
parameters {
manual-start = no
non-standard-config = yes
timeouts.processing.slow-future-warn = 20.seconds
}
# We run sequencer and mediator in one docker container
# because bootstrapping the domain initially gets
# even more complicated otherwise.
sequencers {
sequencer {
init = {
generate-topology-transactions-and-keys = false
identity.type = manual
}
storage = ${_storage}
storage.config.properties {
serverName = ${CANTON_DOMAIN_POSTGRES_SERVER}
portNumber = ${CANTON_DOMAIN_POSTGRES_PORT}
databaseName = ${?CANTON_SEQUENCER_POSTGRES_DB}
currentSchema = "sequencer"
user = "cnadmin"
password = "cnadmin"
user = ${?CANTON_DOMAIN_POSTGRES_USER}
password = ${?CANTON_DOMAIN_POSTGRES_PASSWORD}
}
public-api {
address = "0.0.0.0"
port = 5008
}
admin-api {
address = "0.0.0.0"
port = 5009
}
monitoring.grpc-health-server {
address = "0.0.0.0"
port = 5062
}
sequencer {
config {
storage = ${_storage}
storage.config.properties {
serverName = ${CANTON_DOMAIN_POSTGRES_SERVER}
portNumber = ${CANTON_DOMAIN_POSTGRES_PORT}
currentSchema = "sequencer_driver"
databaseName = ${?CANTON_SEQUENCER_POSTGRES_DB}
user = ${?CANTON_DOMAIN_POSTGRES_USER}
password = ${?CANTON_DOMAIN_POSTGRES_PASSWORD}
}
}
type = reference
}
}
}
mediators {
mediator {
init = {
generate-topology-transactions-and-keys = false
identity.type = manual
}
storage = ${_storage}
storage.config.properties {
serverName = ${CANTON_DOMAIN_POSTGRES_SERVER}
portNumber = ${CANTON_DOMAIN_POSTGRES_PORT}
currentSchema = "mediator"
databaseName = ${?CANTON_MEDIATOR_POSTGRES_DB}
user = ${?CANTON_DOMAIN_POSTGRES_USER}
password = ${?CANTON_DOMAIN_POSTGRES_PASSWORD}
}
admin-api {
address = "0.0.0.0"
port = 5007
}
monitoring.grpc-health-server {
address = "0.0.0.0"
port = 5061
}
}
}
}