Changing port after running

Hi there, I tried to install sentry on my web server with default port 9000 . I then realised, that the port was already in use… Thus, I changed the port in the config file sentry/ to 9001 as described in the docs and wanted to actually update the settings via:

docker-compose down
docker-compose build
docker-compose up -d

I still get the error
Creating sentry_onpermise_web_1 ... error
Error starting user land proxy: listen tcp bind: address already in use

Where is my mistake?

You also need to change this line:

I’d say you can use a docker-compose.override.yml but I think for ports, it would just add another port and not override the old definition so you’d still get an error.

There’s also this abandoned PR which took a shot at it: