All Projects → saada → docker-compose-php-mysql

saada / docker-compose-php-mysql

Licence: other
PHP environment setup using Docker Compose on OSX

Programming Languages

PHP
23972 projects - #3 most used programming language

Docker Compose PHP+MYSQL on OSX

This setup is great for writing quick apps in PHP from an OSX machine. It uses Virtualbox and machine to create the actual environment and then uses compose to setup the application services

Install docker, compose, and machine

brew update
brew install docker docker-compose docker-machine

InstallVirtualbox

Download Virtualbox

Setup docker environment

docker-machine create -d virtualbox dev
docker-machine start dev
eval $(docker-machine env dev)

Build & Run!

docker-compose build
docker-compose up -d

you can now start writing your app!

Stop

docker-compose kill

MySQL

Check out app/index.php for getting credentials from the ENV variables.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].