Category : docker

So, in order to do it in Docker way, I’ve created a set of containers. Now, I want to send email from php using exim4 container Part of my docker-compose file: mailer: image: imixs/exim4:latest container_name: ${APP_NAME:?err}-mailer restart: always environment: EXIM_SMARTHOST: smtp.test.dev:465 EXIM_PASSWORD: smtp.test.dev:${MAILER_LOGIN:?err}:${MAILER_PASSWORD:?err} EXIM_ALLOWED_SENDERS: 172.17.0.0/24:127.0.0.1 php: restart: always links: – mariadb – memcache – mailer ..

Read more

Hi I am new to Symfony and am trying to get my Symfony PHP app to connect to my redis cluster. I keep getting the following error once the images are stood up: request.CRITICAL: Uncaught PHP Exception RedisException: "Cannot assign requested address" at /var/www/STATIC/finders/docker/cache/Container4jv3TMx/getSessionService.php line 10 {"exception":"[object] (RedisException(code: 0): Cannot assign requested address at /var/www/STATIC/finders/docker/cache/Container4jv3TMx/getSessionService.php:10)"} ..

Read more

My setup: docker (php, mysql, nginx and some other) My Problem: I can not connect to a remote mysql database within the php docker container php Example: try { $this->live[‘pdo’] = new PDO( ‘mysql:host=’.$_ENV[‘DB_REMOTE_HOST’].’;port=’.$_ENV[‘DB_REMOTE_PORT’].’;dbname=’.$_ENV[‘DB_REMOTE_DATABASE’], $_ENV[‘DB_REMOTE_USERNAME’], $_ENV[‘DB_REMOTE_PASSWORD’] ); $this->live[‘pdo’]->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $this->live[‘pdo’]->exec("SET NAMES utf8"); $this->live[‘pdo’]->exec("SET CHARACTER SET utf8"); } catch (PDOException $e) { echo $e->getMessage(); exit; } ..

Read more

I tried setting it up in portainer first but later used the command # docker run -p 8080:8080 adminer No matter what I do it’s simply stuck on "Waiting for…". I’ve already tried using the host network and different ports but simply nothing will work. The only log in adminer is: [Mon Jun 29 18:38:16 ..

Read more

After intalling Docker on windows and setting some settings for that. after opening firefox and locating localhost its take a long time to opening my web application which i should see on browser. as far i installed Ubuntu linux from windows store i’m not sure my projects should be placed on that or not. without ..

Read more