Simple and basic LAMP Docker environment.
- Create a new directory named "repo"
~ $ mkdir repo && cd repo
- Clone this repository:
~/repo $ git clone https://github.com/fagnerlopes/docker-lamp
- Enter into directory running the following command:
~/repo $ cd docker-lamp
- Copy .env.example to .env file:
~/repo $ cp .env.example .env
- Start the container with the following command:
~/repo/docker-lamp $ sudo docker-compose up -d
-
Access the project in http://localhost:APP_PORT
-
Put the PHP project files in the src folder:
- /repo
-- /docker-lamp
--- /.docker (config files)
--- /src (project files)
- /repo
To stop the container run the following command:
$ sudo docker-compose stop