Changing localhost port - ContestedWheel/Some-BD-Tutorials GitHub Wiki
If you are getting "Port already allocated" when creating a second dex, you will need to change the port number of the admin panel. This is a very easy thing to do and requires little effort.
Changing the port
-
Open
docker-compose.ymlin your text editor. -
Scroll down a bit until you see
"8000:8000". Change it to"8001:8000".
[!IMPORTANT]
Make sure you are changing the correct ports. The line you should be changing should be under theadmin-panelcategory as seen below.
- Save your changes and restart your bot using
docker compose restart. If your bot wasn't running when you were following this tutorial, dodocker compose up -dinstead.
After changing the port, you will need to create a new account on that port. Click here to be redirected to a tutorial on how to make an account if you don't know how to. (local accounts recommended for beginners)