Docker quick start
Quick start for a PHP/MySQL local development web app using Docker.
- Install Docker
- Clone and checkout this repo
- Set your ServerName in
.docker/vhost.confand your hosts file, for example
- Set your environment variables in
docker-compose.yml- MySQL connection details etc.
- Create the
docker-compose buildto build and then
docker-compose upto start, you can do this in one go with
docker-compose up --build
- Add your code to the
srcdirectory, you now have a working app using Docker.
- If you are using composer you can install dependencies by running
docker-compose exec app composer install
If you need additional php extensions, add them to
.docker/Dockerfile, for anything else custom, the web is a great