Answer the question
In order to leave comments, you need to log in
Deploy yii2 with Docker?
I am trying to deploy a yii2 project using Docker.
I have containers running on the same network.
How and when are migrations triggered?
If I try to run them when building a container with yii2, RUN /www/yii migrate --interactive=0
I get an error:
Exception 'yii\db\Exception' with message 'SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known'
in /www/vendor/yiisoft/yii2/db/Connection.php:568
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question