DEV Community

Daniel Lintott
Daniel Lintott

Posted on

Virtual Hosts or Docker?

Since I taught myself web development I have always run my websites using Virtual Hosts and this works fine.

Recently I have been playing around more with docker and docker-compose.

I currently run 3 websites, all of which use PHP and MariaDB.

Looking online I couldn't find any recent discussion on the pros and cons of either Virtual Hosts or separate Docker containers, with a reverse proxy in front (Either Traefik or Nginx).

I'd be interested to hear peoples opinions on the two methods.

Top comments (0)