i run redis in docker .my docker ip is 192.168.99.100 and redis port 32768

but my spring session default host & port is 127.0.0.1 and 6379 

for change redis port in docker i run container by " docker-compose up " command

using this file docker-compose.yml


redis:

  image: redis

  ports:

     - "6379:6379"

after run docker i can monitor to redis by this command
telnet 192.168.99.100 6379
and redis is ok


but after run spring session and redis i can not connect to them 
after search i know that how change default host in spring boot application.yml

spring:

  redis:

    host: 192.168.99.100