Category: docker

how can I install Docker on windows 10 for Symfony 5 [closed]

(sorry for my English), I’m beginner with Symfony version 5, I’ve Wampserver on my computer (windows10),but when I write with terminal => symfony book:check-requirements, the response is this =>[KO] Cannot find Docker, please install it [KO] Cannot find Docker Compose,…

Docker Permissions in Symfony PHP

I’m having trouble getting this composition to work and hope someone can help me with it. I’m getting a permission error when I try to build the container. I already tried what explained here: https://symfony.com/doc/current/setup/file_permissions.html#using-acl-on-a-system-that-supports-setfacl-linux-bsd But this isn’t fixing my…

Request with Symfony HttpClient returns code 0, when the same request with postman works fine

I have a weird problem where a request I make (to my mercure hub) with postman works fine, however the Publisher class (from the Symfony mercure bundle), which uses the Symfony HttpClient will yield in a response code 0. According…

How to make API Platform autodiscovery mechanism for Mercure hub work with Docker image?

I’ve developped a demo project to illustrate a presentation I’m doing about the Mercure protocol, in which I also use API Platform. I had used the autodiscovery mechanism to retrieve the Mercure hub url (API Platform sends a Link header…

Symfony 5 @required annotation weird caching issue during setter injection?

I discovered this strange issue in Symfony 5 which I believe is connected to docker and Symfony itself. MY SETUP docker-compose.yml version: ‘3.7’ services: webapp: build: context: ./php/ dockerfile: Dockerfile container_name: webapp image: php:7.4.1-fpm-alpine volumes: – ../:/srv/app apache2: build: network:…

SF4 + docker : Proxymanager error : syntax error, unexpected ‘?’, expecting function (T_FUNCTION) or const (T_CONST)

I’m encountering a strange error on my branch. I’m using docker and symfony 4. Yesterday, i had this error first (that appeared from nowhere) : Then, this second error below appears, after me and my colleagues tried to fix the…

Right way to use docker and bitnami/symfony to work with existing Symfony repository? [closed]

I’m trying to start using docker and in my case the image of bitnami/symfony. I have an existing code using as deployment a virtual machine. I understand that I have to create a new folder with the docker-compose.yml and Dockerfile…

How to configure docker DOCROOT to run symfony [closed]

I setup a php docker container using docker-compose, working fine, now I am trying to setup symfony inside it. In my docker-compose.yml I have: version: “3” services: webserver: build: context: ./bin/webserver container_name: ‘7.4.x-webserver’ restart: ‘always’ ports: – “${HOST_MACHINE_UNSECURE_HOST_PORT}:80” – “${HOST_MACHINE_SECURE_HOST_PORT}:443″…