You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dockerfile
- install 'default-mysql-client' PHP extension so we can log into MySQL from the PHP container if we want to interact with the database container from there.
- install and enable the pdo_mysql PHP extension with 'docker-php-ext-install pdo_mysql' and 'docker-php-ext-enable pdo_mysql'. This is required for Laravel
docker-compose.yml
- MYSQL_USER and MYSQL_PASSWORD don't seem to do much as the user 'myuser' does not seem to be created. For now, we'll use root + rootpassword
/src/.env.example
- set all the default MySQL connectivity and login information so it works out of the box
- add a default MONGODB_URI for people to replace with their ATLAS connection string
config\database.php
- change DB_URI to the standard MONGODB_URI we use in our drivers and everything else
\routes\api.php
- added a \api\test_mysql\ route to check if the MySQL connection works. It's a VERY basic test and does not check for the table, but we can improve this later. The table is created by our Docker config
0 commit comments