(HTTP code 500) server error - Ports are not available: exposing port TCP 0.0.0.0:54322 -> 0.0.0.0:0: listen tcp 0.0.0.0:54322: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
What could be the core problem in my case when I'm trying to run the app which hasn't been touched for several months? When I'm trying to run postgres container i see this notification with error.
Project structure Docker container
Here is the instruction: Launch Locally for development
- Copy app.env.example to app.env. Fill it out
- At the root, write
docker-compose up. When changing thepackage.jsonoryarn.lock' must be restarted with thedocker-compose up --buildflag for reassembly. To install the new package innode_modules'. - On the local machine, go to the
appfolder, and make ayarn installthere. This is necessary so that the IDE can prompt. because inside the docker container there is its own foldernode_modules, which is in no way related to the one that is available on the local machine. This is necessary because the encoder uses Linux, and our local machines may have windows/mac os installed, and they will need different packages. - Write code. It is pushed to ports nodejs - 30000, postgres - 54322
If somebody knows a method, please share it, cause it's been a week already since I try to fix this error.