Post
Topic
Board Electrum
Re: [Questions] Running my own electrum server
by
ETFbitcoin
on 02/05/2021, 08:54:49 UTC
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

Code:
sudo apt install docker.io

2. Test whether docker run correctly

Code:
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

Code:
cd /home/user
mkdir electrumx

4. Run this command

Code:
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.