Category : docker

I’ve created a docker with a database and a php server but I’m failing accessing the php file from the server. For testing purpose I’m currently having 2 index.php in my test app ./index.php and ./app/index.php This is my docker-compose.yml version: ‘3’ services: symfony: build: context: . dockerfile: docker/Dockerfile image: project-manager ports: – 80:80 db: ..

Read more

I was wondering do I have to change anything in my docker setup when trying to run the same on Windows machine?(running fine on Ubuntu 20.04) php-fpm is giving me errors… docker-compose file version: ‘3’ services: php_fpm: build: .docker/php-fpm depends_on: – mariadb volumes: – ./:/var/www/html/learnit – ./var/log:/var/log env_file: – .env entrypoint: [ "./bin/entrypoint.sh" ] command: ..

Read more

How can I install all needed php extension on this docker image to run symfony 5. At this moment I can’t run composer install cos following error. Problem 1 – Installation request for lorenzo/pinky 1.0.5 -> satisfiable by lorenzo/pinky[1.0.5]. – lorenzo/pinky 1.0.5 requires ext-xsl * -> the requested PHP extension xsl is missing from your ..

Read more

error error: In AbstractMySQLDriver.php line 112: An exception occurred in driver: SQLSTATE[HY000] [1045] Access denied for user ‘symfony’@’localhost’ (usin g password: YES) In Exception.php line 18: SQLSTATE[HY000] [1045] Access denied for user ‘symfony’@’localhost’ (using password: YES) In PDOConnection.php line 38: SQLSTATE[HY000] [1045] Access denied for user ‘symfony’@’localhost’ (using password: YES) .env : DATABASE_URL=mysql://symfony:[email protected]:3306/symfony?serverVersion=5.7 docker setup: ..

Read more

I have this exception went i sent mail through Symfony SwiftMailer: Exception occurred while flushing email queue: Connection could not be established with host 127.0.0.1 :stream_socket_client(): unable to connect to 127.0.0.1:1025 (Connection refused) I can access to Mailhog interface. The container is up dans ports seems open and ready. See below my docker-composer for Mailhog: ..

Read more

I’m learning the Symfony framework. I started the example given in the documentation with the book. However, I have a problem with the command symfony new –version=5.0-6 –book guestbook Checking book requirements are good but the step stopping docker containers didn’t work. I got : [WEB] Stopping Docker Containers: [ KO ] [14654] Failed to ..

Read more