# TheTool ## Introduction This Project is a PHP Project. ## Table of Contents - [Docker Setup](#docker-setup) ### Docker Setup #### Build fresh image Build a fresh local docker image with all dependencies. This is based on debian-bookworm and installs apache2, php8.2 & composer with all dependencies ```bash docker build -t debian-php . ``` #### Volume Bindings | Type | Location | | ------------------------------- | --------------------------------- | | MySQL Logs | `docker/mysql/logs` | | MySQL Config | `docker/mysql/conf.d` | | Apache Config | `docker/apache2/000-default.conf` | | DocumentRoot (inside container) | `docker/mysql/logs` | #### Start Docker Setup Use this command to start all Containers. TheTool will be available at http://localhost Adminer will be available at http://localhost:8080 Use `-d` to start it detached from your current console ```bash docker compose up [-d] ``` Use this command to use the container context (!! Keep in mind, not all folders are synced) ```bash docker compose exec php bash -it ``` #### Initialize Database Either initialize the Database with phinx (documentation located in `/db`) ##### OR Use Adminer and a existing export to import the current state of the Database