maurobonfietti / slim4-api-skeleton

Useful skeleton for RESTful API development with PHP and Slim 4.
http://bit.ly/2nNNOZi
MIT License
132 stars 32 forks source link

docker-compose without mysql #37

Closed StephanKrauss closed 4 years ago

StephanKrauss commented 4 years ago

Sorry

maurobonfietti commented 4 years ago

Hi @StephanKrauss

Yes, I also use slim in a docker container with an external MySQL database.

No problem. You need to set the MySQL connection in your dotenv file: .env:

DB_HOST='yourMySQLhostname'
DB_NAME='yourMySQLdatabase'
DB_USER='yourMySQLusername'
DB_PASS='yourMySQLpassword'

Previous answer:

https://github.com/maurobonfietti/slim4-api-skeleton/issues/27

Best regards.

Mauro.-