Skip to content

A CentOS 7 Docker LAMP suitable for local development.

Notifications You must be signed in to change notification settings

frantzcy/docker-centos-lamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

centos-lamp

A CentOS 7 Docker LAMP suitable for local PHP development

features

  • Centos 7
  • Apache 2.4
  • MariaDB 10.1
  • PHP 7.0
  • phpMyAdmin
  • Git
  • Drush
  • NodeJS
  • Composer

quickstart

cd project

# Start container
docker run -d -p 80:80 -v `pwd`:/var/www/html:Z -t andrewklau/centos-lamp

# Enter container
docker exec -it containername sh

example usage

Create a project folder and database folder.

mkdir -p project/database

Move into the project folder.

cd project

Run the command to launch the docker and map project and database directory.

docker run -d -p 8080:80 -v `pwd`:/var/www/html:Z -v `pwd`/database:/var/lib/phpMyAdmin/upload:Z -t andrewklau/centos-lamp

usage notes

Put a .sql dump into the database folder for import

url: http://localhost:8080 phpmyadmin: http://localhost:8080/phpmyadmin

About

A CentOS 7 Docker LAMP suitable for local development.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published