Detect database configuration from Docker link