Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to set different port for different node? #1

Closed
zqhxuyuan opened this issue Jul 2, 2021 · 2 comments · Fixed by #3
Closed

how to set different port for different node? #1

zqhxuyuan opened this issue Jul 2, 2021 · 2 comments · Fixed by #3

Comments

@zqhxuyuan
Copy link

zqhxuyuan commented Jul 2, 2021

My test node already took 9944, so the alice will fail.

Successfully built ade9e97efc96
Successfully tagged output_parachain-2000-2:latest
Creating output_relaychain-alice_1 ...
Creating output_relaychain-alice_1   ... error
Creating output_parachain-2000-2_1   ...
Creating output_relaychain-bob_1     ...
Creating output_parachain-2000-0_1   ...
Creating output_relaychain-charlie_1 ... done
Creating output_parachain-2000-2_1   ... done
Creating output_relaychain-bob_1     ... done
Creating output_parachain-2000-0_1   ... done
Creating output_parachain-2000-1_1   ... done

ERROR: for relaychain-alice  Cannot start service relaychain-alice: driver failed programming external connectivity on endpoint output_relaychain-alice_1 (676ada3124c18e8788fca06873bd7a8c1c534736f6a0d07e39babdb26d49963f): Error starting userland proxy: listen tcp4 0.0.0.0:9944: bind: address already in use
@zjb0807
Copy link
Contributor

zjb0807 commented Jul 2, 2021

Modify output/docker-compose.yml.
e.g.

version: "3.7"
services:
  relaychain-alice:
    ports:
      - 9944:9944
      - 9933:9933
      - 30333:30333
    volumes:
      - relaychain-alice:/data

9944:9944 -> 19944:9944

@xlc
Copy link
Member

xlc commented Jul 2, 2021

you can set wsPort in config
https://github.com/open-web3-stack/parachain-launch/blob/master/src/types.ts#L39

I will update the readme to include more examples

@xlc xlc mentioned this issue Jul 2, 2021
@xlc xlc closed this as completed in #3 Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants