take ports from environment if defined
fix etcd data dir