peppermint
peppermint copied to clipboard
Changing default port: 3000 to 3001?
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.
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
Thanks @rtertiaer