From 87fe23f01a06a535a67822d0ff5014da58299c9d Mon Sep 17 00:00:00 2001 From: Bill Date: Tue, 17 Sep 2024 21:44:32 -0400 Subject: [PATCH] Updated docker usage --- README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 366d16b..3114eab 100644 --- a/README.md +++ b/README.md @@ -6,12 +6,15 @@ Docker image for running an Electrum server. ## Usage ``` -docker run \ - -v /home/username/electrumx:/data \ - -e DAEMON_URL=http://user:pass@host:port \ - -e COIN=BitcoinSegwit \ - -p 50002:50002 \ - lukechilds/electrumx +electrum: + image: git.prettyhefty.com/bill/electrumx-docker:1.16.0 + restart: unless-stopped + container_name: electrum + environment: + - COIN=Bitcoin + - DAEMON_URL=username:password@bitcoin-core + volumes: + - ${DATA_DIR}/electrum:/db ``` If there's an SSL certificate/key (`electrumx.crt`/`electrumx.key`) in the `/data` volume it'll be used. If not, one will be generated for you.