Don’t bother setting up Docker. Google a tutorial for setting up something like this on your favorite Linux distribution of choice.
You certainly can set up Docker. “A Web server and its database” is kind of Docker’s bread and butter, and you can find tons of tutorials on doing this too. A mail server is much less routine. But, an apt-get install for a one-off is just as easy as a docker run, you will have to do just as much configuration of the SMTP and HTTP daemons, and you will have to learn all of the things that are weird about Docker compared to a plain Linux install.
If you needed something more repeatable, or more scalable, or that had some custom application code underneath it, Docker might make more sense. For what you’re describing, especially if the Web server only has static content…if I had to do it once only I’d do it at the command line, twice I’d automate it using Ansible, three times build an image like an Amazon AMI, but I probably wouldn’t dive into Docker just for this.