peppermint icon indicating copy to clipboard operation
peppermint copied to clipboard

Changing default port: 3000 to 3001?

Open dallascao opened this issue 2 years ago • 1 comments

I edited the yaml file and changed the line:

3000:3000

to

3001:3001

It runs but I when I

curl http://localhost:3001

I got a "reset by peer" error.

dallascao avatar Jan 09 '24 09:01 dallascao

Try changing that line to

3001:3000

3001 is what your host will listen to externally, the host port; 3000 is what the app is listening to internal to the Docker environment, the container port. See documentation here: https://docs.docker.com/compose/networking/

If you want to change the container port, I believe you can set the PORT env var: https://github.com/Peppermint-Lab/peppermint/blob/5fd53aae2525b6a316609d3149543a99b82ca49d/ecosystem.config.js#L13

rtertiaer avatar Jan 09 '24 15:01 rtertiaer

Thanks @rtertiaer

potts99 avatar Mar 26 '24 09:03 potts99