-
Notifications
You must be signed in to change notification settings - Fork 0
Changing localhost port
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.
-
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 the admin-panel category as seen below.

- Save your changes and restart your bot using
docker compose restart. If your bot has been already not running, 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
If you cannot get access to the new port you put, shut down the bot using docker compose down and do the following:
-
Open
docker-compose.ymlin your text editor. -
Scroll down a bit until you see
"5432:5432". Change it to"5433:5432".
Important
Make sure you are changing the correct ports. The line you should be changing should be under the postgres-db category as seen below.

- Save your changes and turn your bot on again using
docker compose up -d. You will be now able to access the new port.
If you have any errors, join the Ballsdex Developers server by clicking this blue text.