PHPUnit

Simple and basic LAMP Docker environment.

Start container

  1. Create a new directory named "repo"
~ $ mkdir repo && cd repo
  1. Clone this repository:
~/repo $ git clone https://github.com/fagnerlopes/docker-lamp
  1. Enter into directory running the following command:
~/repo $ cd docker-lamp
  1. Copy .env.example to .env file:
~/repo $ cp .env.example .env
  1. Start the container with the following command:
~/repo/docker-lamp $ sudo docker-compose up -d
  1. Access the project in http://localhost:APP_PORT

  2. Put the PHP project files in the src folder:

    • /repo
      -- /docker-lamp
      --- /.docker (config files)
      --- /src (project files)

Stop container

To stop the container run the following command:

$ sudo docker-compose stop