Replace the variable "/path/to/config" with your choice of folder on your system. That is where the config and the library files will reside, and they will survive an update, reinstallation, etc. of the container.
To change the port, modify the port listed on the left side in the run command, that is the host side.