Post
Topic
Board Electrum
Re: [Questions] Running my own electrum server
by
ETFbitcoin
on 07/05/2021, 08:48:35 UTC
Was there such configuration file for electrumx? In the docs you linked it says that there should be different files for each environment variable. For example, it says that you'll have to create the COIN, DB_DIRECTORY and DAEMON_URL necessarily and some others optionally.

Different setup (systemd, docker and svscan) use different way to configure the environment variable.

Anyway, yes, if I understood your question correctly, docker does allow you to do that. You just need to add parameters on your script. Three posts above, @ETFbitcoin included the DONATION_ADDRESS param. You can do the same for the banner:

Code:
-e BANNER_FILE=LOCATION_OF_YOUR_BANNER_FILE

Note that the location starts from the electrumx data directory which means that if you enter BANNER_FILE=banner.txt, it'll search for /home/user/electrumx:/data/banner.txt

Yeah, that was my question.  I guess it does simplify the installation by using the docker image.  I'm just so used to systemd, and I find it simple to enable a process to run at machine startup.

Using docker is simpler (even if you barely know how to use docker), but you also need to trust lukechilds who made the docker image (unless you inspect the docker image).

But i also prefer systemd for elecrrumx, since it's easier to manage the service (enable/start/stop) and environment variable.