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

CONFIGURATION QUESTION #5

Open
maraymer opened this issue Mar 7, 2018 · 3 comments
Open

CONFIGURATION QUESTION #5

maraymer opened this issue Mar 7, 2018 · 3 comments

Comments

@maraymer
Copy link

maraymer commented Mar 7, 2018

Hi,

I'm loving your docker image. Very easy to use.

How would I configure the docker run so that I could access the JSON RPC server from curl outside?

I've attempted to add -p 9332:9332 and added a -v to point to a local litecoin.conf then set curl to make a request.

Matthew

@salessandri
Copy link
Owner

Just to make sure: does your litecoin.conf have the following lines?

 server=1
 rpcuser=<username>
 rpcpassword=<password>

If yes, then I need to look into it because what you are doing is correct.

@maraymer
Copy link
Author

maraymer commented Mar 8, 2018

My litecoin.conf is

maxconnections=25
server=1
rpcuser=
rpcpassword=

Just for completeness I started it like this --

docker run -d --name litecoind-node -v litecoind-data:/litecoin -v /home/myaccount/litecoin/litecoin.conf:/litecoin/litecoin.conf -p 9333:9333 -p 9332:9332 --restart unless-stopped -e ENABLE_WALLET=1 salessandri/docker-litecoind

Thanks for the reply!

@maraymer
Copy link
Author

btw, I do have rpcuser and rpcpassword filled -- just realized I didn't leave placeholders when I pasted it.

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

No branches or pull requests

2 participants