Closed vlameiras closed 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.
sudo apt-get install docker.io
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.
docker logs -f limit_swap_v4
To stop the bot docker stop limit_swap_v4.
docker stop limit_swap_v4
great job with the bot!
Thank you so much I have never used docker did not realize how simple it was!
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
sudo apt-get install docker.io
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!