Category : symfony

Im despair about this error: net::ERR_SSL_PROTOCOL_ERROR other error: Mixed Content: The page at ‘https://mywebsite/index’ was loaded over HTTPS, but requested an insecure EventSource endpoint ‘http://mywebsite:7002/.well-known/mercure’. This request has been blocked; the content must be served over HTTPS. web: build: context: . target: Symfony_PHP container_name: web_symfony ports: – 80:80 – 443:443 restart: always volumes: – ./project/:/var/www/project:delegated ..

Read more

I have doctrine config: doctrine: dbal: driver:pdo_mysql url:"mysql://%database_user%:%database_password%@%database_host%:%database_port%/%database_name%" Where database_user is root, password is root user password (re-checked), host is my server ip address, port is 3306 and name is my db name. When I use these from workbench I can connect but from running docker container for php and nginx. And this config, I ..

Read more

I have a problem with my Docker container, i try to run it on my macOS but when I run docker-compose up –build after some minutes I get an error and the installation crashes #76 2.270 Script cache:clear returned with error code 255 #76 2.270 !! PHP Fatal error: Uncaught SymfonyComponentDotenvExceptionPathException: Unable to read the ..

Read more

I have developed a Website using Symfony 5 and Docker. Now all completed. When I use docker-compose up It Starts to run in localhost and works as symfony server:start symfony open:local Here is my docker-compose.yml file version: ‘3.5’ volumes: fpm-pid: services: ## APPLICATION SERVER gcp-php-fpm: container_name: gcp-php-fpm build: context: docker/containers/php74-fpm args: USER_ID: ${USER_ID-1000} XDEBUG_REMOTE_HOST: ${HOST_IP-172.17.0.1} ..

Read more

For my personal development, I try using this repo https://github.com/dunglas/symfony-docker as Docker base to create a PHP 8/Symfony 5 environnement. I could launch my App on https://localhost, updating my project is reflected on browser. But I got a weird thing with Doctrine. Actually, I could update my database schema using Symfony command bin/console doctrine:schema:update –force, ..

Read more

I try with no success to access to Mercure’s hub through my browser at this URL : http://locahost:3000 => ERR_CONNECTION_REFUSED I use Docker for my development. Here’s my docker-compose.yml : # docker/docker-compose.yml version: ‘3’ services: database: container_name: test_db build: context: ./database environment: – MYSQL_DATABASE=${DATABASE_NAME} – MYSQL_USER=${DATABASE_USER} – MYSQL_PASSWORD=${DATABASE_PASSWORD} – MYSQL_ROOT_PASSWORD=${DATABASE_ROOT_PASSWORD} ports: – "3309:3306" volumes: – ..

Read more

I’m trying to understand how docker works in production for a scalable symfony application. Let’s say we start with a basic LAMP stack: Apache container php container mysql container According to my research once our containers are created, we push them to the registry (docker registry). For production, the orchestrator will take care of creating ..

Read more

I have a problem with my docker configuration, my home page on localhost return always 502 Bad Gateway. Here you can see the architecture of the projet : https://i.stack.imgur.com/Bfc24.png And this is the content of file. docker-compose.yml : version: ‘3’ services: php: build: context: ./php ports: – "9000:9000" volumes: – ../symfony:/var/www nginx: container_name: "nginx" build: ..

Read more

So, I’m able to connect to my database (docker container) through the terminal;- Why am I unable to connect to it through a URL in my browser i.e. http://localhost:8015/myroute? Here’s my .env file:- DATABASE_URL="mysql://root:[email protected]:3320/simple_crud?serverVersion=5.7" and part docker-compose.yml … #MySQL Service db2: image: mysql:5.7.22 container_name: db2 restart: unless-stopped tty: true ports: – "3320:3306" environment: MYSQL_DATABASE: simple_crud ..

Read more