Based on docker-compose-lamp
To start Docker LAMP skeleton just type in the root directory of the project:
$ docker-compose up -d
Then, it will deploy:
- On port 80: The Webserver application.
- On port 8080: PHPmyadmin connected to the database.
- On port 3306: MySQL database.
Then if we want to import a database, example sample_database.sql
to MySQL. Run the following command:
$ docker exec -i lamp-db bash -c 'mysql -u root sample_database --password=tiger < /home/sample_database.sql'
- Docker - Contanier platform
- Docker-compose - Tool for defining and running multi-container Docker applications
- Apache - HTTP Server Project
- PHP
- MySQL
- Bootstrap - Frontend framework
- npm - Javascript package manager
- Fran Acién - Initial work - Github
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
The whole project is configured by Docker in the Dockerfile on ./bin
.
Npm modules are installed when the container starts, saved on /var/www/node_modules
inside the Docker machine. With Apache, modules are redirected on localhost/dep/
. See index.php for more information.