PHP is built with extensions: mysqli, pdo, pdo_mysql and xdebug.
MySql data is stored in a volume to maintain persistance: mysql-data
To use, clone this repo, and:
- Create new top level directory: mysql-data
- Run
docker-compose up --build
- Open browser: http://127.0.0.1:3050/
- Check your db connection: http://127.0.0.1:3050/db-test.php
Note nginx is setup to use index.php as a front controller - see the nginx conf file for other options.
Change other configs as needed to suit your situation 🍻