Skip to content

Easy to use LAMP stack for local development with Docker. (PHP 7.2, MySQL 5.7)

License

Notifications You must be signed in to change notification settings

hasancanboga/docker-lamp-scaffold

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker LAMP Scaffolding

Easy to use LAMP stack for local development with Docker.

Includes PHP 7.2, Apache 2.4, MySQL 5.7, PMA 5.1, Composer 2.0.


The PHP version can be changed in the Dockerfile.

Apache is installed by the PHP image. The document root can be changed inside the Dockerfile.

The MySQL version needs to be changed in docker-compose.yml file

phpMyAdmin will run on port 3000. can be changed in docker-compose.yml file


To run the containers:

docker compose up

If you can see the MYSQL version when you go to http://127.0.0.1 then your container installation was successful.


To run PHP / Apache / Composer commands, go into the main container shell:

docker exec -it php72 bash

Note that the php72 is the container_name configured inside docker-compose.yml file


To run MySQL commands:

docker exec -it mysql57 bash

License

This project is licensed under GNU GPLv3.0.

About

Easy to use LAMP stack for local development with Docker. (PHP 7.2, MySQL 5.7)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published