adapt to docker v1.0.0
use hostname  (link) for redis