Home > Blockchain >  I have a question related to laravel setup on docker-compose
I have a question related to laravel setup on docker-compose

Time:01-02

I want to setup a laravel environment on docker.

In a video of building a laravel environment, a centos images is created and apache and mysql are installed in it.

On the other hand, using docker-compose.yml, create an apache container and a MySQL container.

What is the difference between these?

CodePudding user response:

When you use centOS Image, it acts as a single docker component, which includes both the web server and database.

If, You use docker-compose, Apache and MySQL store as two separate containers.

And It's always recommended to use docker-compose

  • Related