NOTE: For first-time setup, comment out the configuration volume mounts in compose.yml (php.ini and apache.conf). Start the container once, copy the default config files using the commands below, then uncomment the mounts.
docker cp php_web:/usr/local/etc/php/php.ini-development ./config/php.inidocker cp php_web:/etc/apache2/sites-available/000-default.conf ./config/apache.confphp test/index.php- Start container -
docker compose up - Go into the MariaDB container -
docker exec -it mariadb_container mariadb -u admin -padmin json_converter - Create the tables -
SOURCE /schema/schema.sql