In my docker-compose, I have 2 containers, php-container, and nginx container. For nginx container I defined env variable, is there a way to access that variable in php container in code? I want to access in php code the PLAYER_NAME variable Answer Nope, you cannot do that, containers are isolated by design. You have to define the env variable for
Tag: docker-compose
Docker PHP MySQL connection refused
I am trying to run a site using multiple container configuration – one for apache, second for mysql and third for myadmin. Everything starts fine, setup runs smooth but when I try to run a PHP application I get mysqli::__construct(): (HY000/2002): Connection refused in system/libraries/drivers/Database/Mysqli.php [54] error. It seems that there’s something wrong with the connection settings but I checked
Send email on testing docker container with php and sendmail
I’m on ubuntu 16.04. I have a (testing) docker (docker-compose) container running php 5.6 and apache 2.4. On the production platform (without docker) the mail is sent with sendmail. How to send test …
Error starting userland proxy: listen tcp 0.0.0.0:3306: bind: address already in use
I have to make Laravel app and to deliver a Dockerfile, but I’m really stuck with this. Before that I had a nightmare wile installing laravel on my machine. I’m trying to get dockervel image and following the steps here: http://www.spiralout.eu/2015/12/dockervel-laravel-development.html But when I run dartisan make:auth it gives this error below: I have tried to Change the default port
How Can I increase my timeout time in docker?
I am having a problem with my docker machine. I need to increase the timeout time, but I don’t know where. I increased the timeout in php.ini file, but doesn’t work. I need help, Thanks! P.D.: My OS is Ubuntu. Answer You can change timeout value in your /etc/php5/apache2/php.ini: