From 6bc0b59eae513197d53fc2b259c1fe84e90daf6b Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Thu, 16 May 2019 07:33:46 +0700 Subject: [PATCH] Enable RPC port --- Dockerfile | 4 ++-- README.md | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index fd2a129..2a46c93 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,12 +19,12 @@ VOLUME ["/data"] ENV HOME /data ENV ALLOW_ROOT 1 ENV DB_DIRECTORY /data -ENV SERVICES=tcp://:50001,ssl://:50002,wss://:50004 +ENV SERVICES=tcp://:50001,ssl://:50002,wss://:50004,rpc://:8000 ENV SSL_CERTFILE ${DB_DIRECTORY}/electrumx.crt ENV SSL_KEYFILE ${DB_DIRECTORY}/electrumx.key ENV HOST "" WORKDIR /data -EXPOSE 50001 50002 50004 +EXPOSE 50001 50002 50004 8000 CMD ["init"] diff --git a/README.md b/README.md index 320ebc7..02bf9b1 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,12 @@ By default only the SSL port is exposed. You can expose the unencrypted TCP port You can expose the WebSocket port with `-p 50004:50004`. +### RPC Port + +To access RPC from your host machine, you'll also need to expose port 8000. You probably only want this available to localhost: `-p 127.0.0.1:8000:8000`. + +If you're only accessing RPC from within the container, there's no need to expose the RPC port. + ### Version You can also run a specific version of ElectrumX if you want.