CryptoGnome / LimitSwap

LimitSwap is fully functional DeFi Trading Bot. No fees. You just need to hold LIMIT Utility token in your wallet to use.
https://www.limitswap.com/
276 stars 148 forks source link

Add Dockerfile #395

Closed vlameiras closed 2 years ago

vlameiras commented 2 years ago

Hi there!

PR to add Docker support to LimitSwap. Haven't updated the README with instructions on how to run it, but I'll write them down here.

Requirements

Usage

Navigate into the bot directory and build the Docker image by executing the following command:

docker build -t limit_swap_v4 .

(For MacOS and Linux) Still within the main directory you can run Docker via:

docker run --rm --name limit-swap_v4 -it -v $(pwd)/settings.json:/app/settings.json -v $(pwd)/tokens.json:/app/tokens.json limit_swap_v4

(For Windows with Powershell)

docker run --rm --name limit-swap_v4 -it -v $PWD/settings.json:/app/settings.json -v $PWD/tokens.json:/app/tokens.json limit_swap_v4

If you wish to run the container in the background please include -d for detached.

The streaming container logs can be visualised with docker logs -f limit_swap_v4.

To stop the bot docker stop limit_swap_v4.

great job with the bot!

CryptoGnome commented 2 years ago

Thank you so much I have never used docker did not realize how simple it was!