I was hoping for some sort of docker setup.
I made short guide about setup Electrum using docker few months ago.
Honestly if the VPS use linux, you can use easy installer/docker (which i mentioned above), which is very easy to use.
I saw the docker, but I haven't ever used docker in the past for setups. Would you mind guiding me a hand? There's no steps, just a “
docker run /” script.
I rarely use Docker, but here's short guide (i've tested it on my device, but don't know whether it runs on WSL)
1. Install docker
sudo apt install docker.io
2. Test whether docker run correctly
sudo docker run hello-world
If you see message "Hello from Docker!", then Docker run correctly.
3. Create directory which used to store
electrumx data
cd /home/user
mkdir electrumx
4. Run this command
sudo docker run \
-v /home/user/electrumx:/data \
--net="host" \
-e DAEMON_URL=username:password@localhost \
-e COIN=Bitcoin \
-e NET=testnet \
-p 50002:50002 \
lukechilds/electrumx
Here's short explanation
1.
--net="host", this command is used to ensure the container can access host port.
2.
-e used to configure environment for
electrumx.
3.
-p HOST_PORT:CONTAINER_PORT is used to expose and link port between host and container.
4.
-v HOST_DIRECTORY:CONTAINER_DIRECTORY is used to link host directory on the container.
5.
lukechilds/electrumx means container we're going to use
P.S. If you want ElectrumX container to automatically start after boot, add
--restart=always when you run docker.