This is a project that I'm still working on, so please be understanding if anything looks incomplete or unfinished!
A simple finance tracker with PHP + MySQL database running in Docker Compose.
- Have Docker Desktop installed and running.
- MySQL Database with persistant storage
- phpMyAdmin for database management
- Docker Compose YAML file for easy startup
- Sample database data (automatically imported)
- Open your IDE of choice (I use VSCode), and copy this repositroy by using
git clone github.com/jesseperkins796/php-mysql-docker-appin the terminal. - Edit the
.env.examplefile to your own secure root password, username, password, and DB name. Once you've done that, rename the file to.env. - Ensure you have the VSCode extensions DotENV and PHPIntellisense installed.
- Run
cd php-mysql-docker-appto go move into the correct folder. - Run
docker-compose up -dto start the application. - Run
docker-compose downto stop the application.
- Visit http://localhost:3000/controller.php to access the application
- Visit http://localhost:3001 for database access through phpMyAdmin