basicswap_miserver/doc/docker.md
2020-12-02 23:19:10 +02:00

1.6 KiB

Docker Setup

Build the images

$ docker-compose build

Prepare the binaries, coin dirs and settings

$ docker run -t --name swap_prepare -v /tmp/coindata:/coindata i_swapclient basicswap-prepare --datadir=/coindata --withcoins=monero --withoutcoins=litecoin

Record the mnemonic from the output of the above command.

Remove swap_prepare container (and logs):

$ docker rm swap_prepare

Running on windows 10

Work in progress - doesn't work reliably.

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.

Right click -> properties on the coindata folder, in the security tab make sure all users have 'Modify' rights.

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.