There are contractible compacta without the fixed point property. In fact,
Theorem (Kinoshita): There is a contractible compact subset of $\mathbb{R}^3$ which does not posses the fixed-point property. $\square$
In a positive direction, here is a result which generalises John Palmieri's answer and follows directly from the Brouwer fixed point theorem. The idea hinges on the following observation.
If $Y$ is a space with the fixed-point property, and $X\subseteq Y$ is a retract of $Y$, then $X$ has the fixed-point property.
To leverage this we have:
Any compact CW complex $X$ embeds in $D^n$ for some $n\in\mathbb{N}$. If $X$ is contractible, then it is a retract of $D^n$.
In fact every locally-finite CW complex of dimension $n$ embeds in $\mathbb{R}^{2n+1}$ as a neighbourhood retract (see Fritsch, Piccinini, Cellular Structures in Topology Th.1.5.15). Of course every compact CW complex is finite-dimensional, and has bounded image under the previous embedding. That a finite complex should be a retract of any disc in which it embeds is a consequence of Paul's answer here.
Now, in light of the previous two observations we use Brouwer's fixed point theorem to conclude the following.
Every compact CW complex (triangulable or not) which is contractible has the fixed-point propety. $\square$
Of course the full machinery is more powerful, and has application outside the realm of CW complexes.
Every finite-dimensional compact metric space which is both contractible and locally contractible has the fixed-point property.
The argument is as before. Show that the spaces in question embed in some disc as a retract and quote the Brouwer fixed point theorem.