change port in spring boot in docker code example Example: change port in spring boot server.port=8081