Skip to content
Advertisement

Tag: docker-compose

share env variables between 2 containers from docker-compose

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

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

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

Advertisement