Added notes to run the docker example on windows.

Set the log file to append.
Set docker example config to listen on all interfaces.
docker-compose is setup to bind the port only to localhost, on windows
docker runs in a virtualbox instance and the swap client must listen on
all interfaces to pass through the connection: host -> vbox -> docker -> swapserver
2024-05-20_merge
tecnovert 6 years ago
parent 21b23fe865
commit 818b5f1ab2
No known key found for this signature in database
GPG Key ID: 13F13651C9CF0D6B
  1. 2
      bin/basicswap_run.py
  2. 34
      doc/run.docker.example.txt
  3. 2
      docker/coindata/basicswap/basicswap.json

@ -165,7 +165,7 @@ def main():
if not os.path.exists(data_dir):
os.makedirs(data_dir)
with open(os.path.join(data_dir, 'basicswap.log'), 'w') as fp:
with open(os.path.join(data_dir, 'basicswap.log'), 'a') as fp:
print(os.path.basename(sys.argv[0]) + ', version: ' + __version__ + '\n\n')
runClient(fp, data_dir, chain)

@ -0,0 +1,34 @@
Running on windows 10
Install the latest docker toolbox from:
https://github.com/docker/toolbox/releases
Start docker through the desktop icon, it should open a terminal
Download basicswap
https://github.com/tecnovert/basicswap/archive/master.zip
Extract it.
Navigate to the docker folder.
If you have an existing litecoin chain, copy the contents of your datadir excluding litecoin.conf and any wallets to coindata/litecoin
If your litecoin chain is pruned create a new wallet in the existing datadir to avoid having to resync the chain.
Run the script: dockerbuild.bat
It should open a new terminal window and start building the container.
Once that completes run: dockerup.bat
In the terminal that opened for docker toolbox, find the line:
docker is configured to use the default machine with IP 192.168.99.100
And open the ip address it displays at port 12700 in a browser:
192.168.99.100:12700
Should show some html.
Now go to the view wallets page, and wait for all chains to completely sync.

@ -1,7 +1,7 @@
{
"zmqhost": "tcp://127.0.0.1",
"zmqport": 20792,
"htmlhost": "localhost",
"htmlhost": "0.0.0.0",
"htmlport": 12700,
"network_key": "7sW2UEcHXvuqEjkpE5mD584zRaQYs6WXYohue4jLFZPTvMSxwvgs",
"network_pubkey": "035758c4a22d7dd59165db02a56156e790224361eb3191f02197addcb3bde903d2",

Loading…
Cancel
Save