Changing the Keycloak Port
06/10/2025
PoolParty comes with Keycloak as an authentication and authorization service. You can change the port on which Keycloak is running by modifying the relevant configuration files.
- Stop all PoolParty services: - /opt/poolparty/bin/poolparty stop 
 
- Open the Keycloak configuration file: - /opt/poolparty/auth_service/keycloak/conf/keycloak.conf 
 
- Change the port number in the - http-portproperty.- Caution- The port to which you are changing to must be free. - For example, if you want to change the port from 8181 to 8000, change it to - http-port=8000.
- If you run Keycloak in production: - rebuild Keycloak: - /opt/poolparty/auth_service/keycloak/bin/kc.sh build 
 
- start Keycloak to verify that is starts without any problems: - /opt/poolparty/auth_service/keycloak/bin/kc.sh start 
 
 
- Open the Keycloak configuration files for the individual PoolParty components ( - admin-keycloak.json, ppgs-keycloak.json, ppt-keycloak.json, ppx-keycloak.json):- /opt/poolparty/config/keycloak 
 
- Change the port to match the port number you specified in step 3. 
- If you configure PoolParty using environment variables: - Open the - .envfile
- Change the port number in the - PP_auth_server_urlproperty to match the port number you specified in step 3.
 
- Start all PoolParty services: - /opt/poolparty/bin/poolparty start