Skip to content

Commit

Permalink
feat: implement the kurtosis package for polkadex mainnet node setup
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiyana committed Nov 10, 2023
1 parent f19858c commit 35cb230
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions parachain/mainnet-setup/polkadex.star
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
def run_polkadex(plan):
exec_command = [
"--chain=mainnet",
"--collator",
"--rpc-external",
"--rpc-cors=all",
"--rpc-methods=unsafe",
"--unsafe-ws-external",
]

polkadex_service_config = ServiceConfig(
image = "polkadex/parachain:latest",
files = {
"/app": "configs",
},
ports = {
"ws": PortSpec(9944, transport_protocol = "TCP"),
"rpc": PortSpec(9933, transport_protocol = "TCP"),
},
public_ports = {
"ws": PortSpec(9432, transport_protocol = "TCP"),
"rpc": PortSpec(9431, transport_protocol = "TCP"),
},
cmd = exec_command,
entrypoint = ["/usr/local/bin/parachain-polkadex-node"]
)
plan.add_service(name = "polkadex-node", config = polkadex_service_config)

0 comments on commit 35cb230

Please sign in to comment.