resolve redis port and host from environment