From 728780177c410dc4a53144c04f3bc9ed4a82509b Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Thu, 16 May 2019 07:28:12 +0700 Subject: [PATCH] Enable WebSocket port --- Dockerfile | 4 ++-- README.md | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7ffd348..fd2a129 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 +ENV SERVICES=tcp://:50001,ssl://:50002,wss://:50004 ENV SSL_CERTFILE ${DB_DIRECTORY}/electrumx.crt ENV SSL_KEYFILE ${DB_DIRECTORY}/electrumx.key ENV HOST "" WORKDIR /data -EXPOSE 50001 50002 +EXPOSE 50001 50002 50004 CMD ["init"] diff --git a/README.md b/README.md index a115cd5..320ebc7 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,10 @@ You can view all ElectrumX environment variables here: https://github.com/kyuupi By default only the SSL port is exposed. You can expose the unencrypted TCP port with `-p 50001:50001`, although this is strongly discouraged. +### WebSocket Port + +You can expose the WebSocket port with `-p 50004:50004`. + ### Version You can also run a specific version of ElectrumX if you want.