diff --git a/docker-compose.harmony.yml b/docker-compose.harmony.yml index c43a66f3..8bba3486 100644 --- a/docker-compose.harmony.yml +++ b/docker-compose.harmony.yml @@ -3,7 +3,7 @@ version: '3.1' services: harmony-mainnet: build: ./harmony/build - command: bash -c "/harmony.sh && /binary --log.dir /harmony/log --run.shard 1 --dns.zone t.hmny.io --http.ip 0.0.0.0 --datadir /harmony" + command: bash -c "/harmony.sh && /binary -c /harmony.conf --log.dir /harmony/log --run.shard 1 --dns.zone t.hmny.io --http.ip 0.0.0.0 --datadir /harmony" sysctls: net.core.somaxconn: 1024 # net.core.netdev_max_backlog: 65536 @@ -28,6 +28,7 @@ services: - harmony_data:/harmony/ - ./harmony/keyfiles:/.hmy/blskeys - ./harmony/log:/harmony/log + - ./harmony/harmony.conf:/harmony.conf - ./bootstrap_skript/harmony.sh:/harmony.sh restart: unless-stopped diff --git a/harmony/harmony.conf b/harmony/harmony.conf new file mode 100644 index 00000000..db87203b --- /dev/null +++ b/harmony/harmony.conf @@ -0,0 +1,95 @@ +Version = "2.5.0" + +[BLSKeys] + KMSConfigFile = "" + KMSConfigSrcType = "shared" + KMSEnabled = false + KeyDir = "./.hmy/blskeys" + KeyFiles = [] + MaxKeys = 10 + PassEnabled = true + PassFile = "" + PassSrcType = "auto" + SavePassphrase = false + +[DNSSync] + Client = true + LegacySyncing = false + Port = 6000 + Server = true + ServerPort = 6000 + Zone = "t.hmny.io" + +[General] + DataDir = "./" + EnablePruneBeaconChain = true + IsArchival = false + IsBackup = false + IsBeaconArchival = false + IsOffline = false + NoStaking = false + NodeType = "validator" + ShardID = -1 + +[HTTP] + AuthPort = 9501 + Enabled = true + IP = "127.0.0.1" + Port = 9500 + RosettaEnabled = false + RosettaPort = 9700 + +[Log] + FileName = "harmony.log" + Folder = "./latest" + RotateCount = 0 + RotateMaxAge = 0 + RotateSize = 100 + Verbosity = 3 + + [Log.VerbosePrints] + Config = true + +[Network] + BootNodes = ["/dnsaddr/bootstrap.t.hmny.io"] + NetworkType = "mainnet" + +[P2P] + DiscConcurrency = 0 + IP = "0.0.0.0" + KeyFile = "./.hmykey" + MaxConnsPerIP = 10 + Port = 9000 + +[Pprof] + Enabled = false + Folder = "./profiles" + ListenAddr = "127.0.0.1:6060" + ProfileDebugValues = [0] + ProfileIntervals = [600] + ProfileNames = [] + +[RPCOpt] + DebugEnabled = false + RateLimterEnabled = true + RequestsPerSecond = 1000 + +[Sync] + Concurrency = 6 + DiscBatch = 8 + DiscHardLowCap = 6 + DiscHighCap = 128 + DiscSoftLowCap = 8 + Downloader = false + Enabled = false + InitStreams = 8 + MinPeers = 6 + +[TxPool] + BlacklistFile = "./.hmy/blacklist.txt" + +[WS] + AuthPort = 9801 + Enabled = true + IP = "127.0.0.1" + Port = 9800