Skip to content

Changing localhost port

ContestedWheel edited this page Jun 28, 2025 · 4 revisions

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 has been already not running, 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

I still can't get access to my new port!

If you cannot get access to the new port you put, shut down the bot using docker compose down and do the following:

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

  2. 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.

image

  1. Save your changes and turn your bot on again using docker compose up -d. You will be now able to access the new port.
Clone this wiki locally