Skip to content

Single container that can conveniently run PHP-MySQL apps.

License

Notifications You must be signed in to change notification settings

istvan-antal/php-nginx-mariadb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-nginx-mariadb

Single container that can conveniently run PHP-MySQL apps.

The default database password is root.

Using

docker run --rm -d -v `pwd`/www:/www -v `pwd`/db:/var/lib/mysql -p=3306:3306 -p=8080:8080 php-app -f
docker run --rm -d -v `pwd`/www:/www -v `pwd`/db:/var/lib/mysql -e MYSQL_USER=admin -e MYSQL_ROOT_PASSWORD=admin -e MYSQL_DATABASE=db -p=3306:3306 -p=8080:8080 php-app -f
docker exec -it php-app sh

Testing

docker stop php-app; docker build -t php-app .; docker run --rm -d -v `pwd`/www:/www -v `pwd`/db:/var/lib/mysql -p=3306:3306 -p=8080:8080 --name=php-app php-app; docker logs php-app -f

About

Single container that can conveniently run PHP-MySQL apps.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published