/docker-php

Primary LanguageDockerfile

docker-php

It's a docker project containing the basic stuff to develop something using:

  • PHP 7.4 + FPM (running on port 9000)
  • Nginx (running on port 80)
  • MySQL (running on port 3306)
  • Maildev (running on port 1080 and 1025)

Running the project

Considering that you already have the docker tool (including docker-compose) installed in your operating system, in order to initialize the services you have to just run this command in the root folder of this project:

docker-compose up -d

And to stop the execution of the services:

docker-compose down

To gain access to one container you can run the following command:

docker-compose run php bash

Considering that the services are running, then you can access them using a browser through the following address http://localhost/.

Feel free to use this receipt or modify it according to your requirements.