i’m pretty new to Docker and playing around. We have about 20 virtual machines with different Linux flavors (Suse, Ubuntu) in different versions, mostly with databases (Postgres, MySQL) and webservers (Apache, nginx, Tomcat). Because of load problems we want to migrate to containers in a HA solution.
I’m currently reading a lot and creating my first containers.
I stumbled across Dockerfile and docker-compose.yml. Both seem to be able to create images from which i derive containers. But which way is to prefer ?
What are the differences between them ?