I've created dockerized bot + web interface to use for myself, but I'm happy to share it with you guys. This solution is perfect for people struggling to get bot + web up and running, my script simplifies this process to minimum.
First of all thanks to MFBot team for creating such awesome tool and for Bendas for helping me to sort out how to get web interface running. Bendas original topic - viewtopic.php?t=3087.
Prerequisites
To run docker container you'd obviously need Docker installed on your system.
For this please refer to Docker's documentation. https://docs.docker.com/get-docker/
To clone my repo you need git. https://git-scm.com/book/en/v2/Getting- ... alling-Git
Installation.
Prepare Acc.ini file on MFBot's Windows version. Go to the Settings > Network > Remote Access. Enable remote access - set IP to 127.0.0.1 and choose suitable port number, in my case it's 6969.
- Clone repo
Code: Alles auswählen
git clone https://github.com/mangunowsky/MFBotDocker.git
- Paste Acc.ini file into main repo folder
- Build Docker image
Code: Alles auswählen
docker build -t mfbot -f Dockerfile .
- Run Docker container
Code: Alles auswählen
docker run -dit mfbot
- Get containers IP address
Code: Alles auswählen
docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' <container ID>
- Open web interface in you browser. User and password is "admin" by default.
Code: Alles auswählen
http://<container IP>:8050
- Happy boting!
To change port on which web interface is listeing you need to edit globalVariables.py file located in Web/Functions/
Code: Alles auswählen
ADRESS = 'http://127.0.0.1:6969/' - change port to one set in Remote Access settings
Code: Alles auswählen
serverPort = 8050 - Web interface will be available at this port
I hope you'd find this guide useful. I'm happy to help in case of any questions.