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

  1. Open docker-compose.yml in your text editor.

  2. 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 the admin-panel category as seen below.

image

  1. Save your changes and restart your bot using docker compose restart. If your bot wasn't running when you were following this tutorial, do docker compose up -d instead.

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)