Changing port after running install.sh

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/sentry.config.py 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 0.0.0.0:9000: bind: address already in use

Where is my mistake?

You also need to change this line: https://github.com/getsentry/onpremise/blob/1ee602110aa4ecf48014240a46c7e68b662fafa8/docker-compose.yml#L140

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: https://github.com/getsentry/onpremise/pull/306