Closed Elindalyne closed 3 years ago
I'm having the same issue with a similar configuration. I last tried this in April and wasn't having a problem.
@Elindalyne I just looked back through the history and saw the DB_DSN
env var was added to the README 4 months ago. Here's a snippet:
DB_DSN: mysql:host=mariadb;dbname=craft
DB_SERVER: mariadb
DB_NAME: craft
DB_USER: craft
That solved the problem for me.
When running on a new server I'm getting the following error after packages install via composer
craft_1 | 14 packages you are using are looking for funding. craft_1 | Use the ``composer fund`` command to find out more! craft_1 | ==> ✅ All dependencies successfully installed. craft_1 | ==> Activating Plugins. craft_1 | *** installing redactor-custom-styles craft_1 | *** failed to install redactor-custom-styles: Craft CMS can’t connect to the database with the credentials in config/db.php.
I know for a fact that the database is indeed running since I can connect to it via mysqlworkbench.I'm not a linux gal normally so I'm betting this is a permissions issue, I just don't know how to fix it.
Here's my docker-compose file in case that helps