- Put your sources inside the
project
directory - Install dnsmasq to resolve
*.local
to127.0.0.1
- Run:
bin/install-dnsmasq-mac.sh
- Not in mac? Add manually the domains to
/etc/hosts
- Run:
- Build the custom images for the project (Optional)
- DB (MySQL)
cd docker_resources/db
docker build -t development:mysql .
- Web (Apache/PHP)
cd docker_resources/web
docker build -t development:project .
- DB (MySQL)
Go to the root of the project and
docker-compose up
Wait until the MySQL server is configured, then you can access your project through
http://project.development.local
The data from MySQL is stored in the directory db-data
, so you don't lose your information every time you start/rebuild the containers.