Skip to content
Advertisement

Tag: docker

docker entrypoint sh file restarting

I am testing docker with my php project. Everything is ok in testing but if I add ENTRYPOINT, docker is restarting. Here is my docker compose file Dockerfile start-container.sh file I also print log for that docker image. I think my error is docker container is restarting after running start-container.sh file. When I google, some people use PHP artisan script

Laravel Sail is not running on my macbook m1

I tried using Laravel 8 Sail on my Mac M1 Computer. I have successfully installed docker , php 7.4 & used composer to install Laravel. I am trying to use sail but I am stuck at the part which says Could not open input file: /var/www/html/artisan Below are the details: Here is the docker file: After running the command ./vendor/bin/sail

Symfony 5 Fast Track: Database access error

I’m trying to go through the aforementioned tutorial, but I get stuck on the stage between Step 7 and 9 – when the database goes into action. On local server I get and while on my deployment server everything seems to work good when reading the database: https://akodg6sfgq-gijxpyj6oxpig.eu.s5y.io/admin/ and entering the conference, when I enter a comment https://akodg6sfgq-gijxpyj6oxpig.eu.s5y.io/admin?crudAction=new&crudControllerFqcn=App%5CController%5CAdmin%5CCommentCrudController&menuIndex=2&referrer=https%3A%2F%2Fakodg6sfgq-gijxpyj6oxpig.eu.s5y.io%2Fadmin%3FcrudAction%3Dindex%26crudControllerFqcn%3DApp%255CController%255CAdmin%255CCommentCrudController%26menuIndex%3D2%26signature%3DGrbeBTskRKkJuU_MbS0do5B1M2XowgfTuOLaqpPQl4M%26submenuIndex%3D-1&signature=Rre3TFXH2NDeRLj9W-LKo6RJXR1fbvm37Cu8H04gfQM&submenuIndex=-1it hits me

EACES permission denied when trying to launch an installed Symfony “Akeneo PIM” with Docker

I started my first internship on monday and I’m working on a PIM created by Akeneo, which is build using Symfony. They have a nice guide to install it on their website and I figured i’d learn docker too. Here are the instructions i followed so far : https://docs.akeneo.com/latest/install_pim/docker/installation_docker.html I just didn’t configure my package manager before installing because after

jwt token not found when i pass in username and password in curl

I want to use jwt token in my symfony project. But i have a problem because when i use: curl.exe -X POST -H “Content-Type: application/json” http://localhost:81/api/login_check -d ‘{“username”: “f.djawid@outlook.com”,”password”:”000000″}’ I get : {“code”:401,”message”:”JWT Token not found”} This is my security.yml: As you can see i use the lexikJWTAthenticationBundle. I made a private key and public key with ssl. I use

nginx return file not found with nginx-proxy and doesn’t load static files

I’m using nginx-proxy-automation to run my php application which is written using CodeIgniter 4 and the app structure is the following: the index.php file is available inside the public folder. The docker-compose.yml of php-application contains the following stuff: Inside the php-application/docker-compose.yml I have this: essentially I have three services: php-fpm: which mount the application files in the /var/www/html folder, and

Docker Centos with php fails to start

I am trying to build a centos server with php on it I am using centos:7 image and in it install php dependencies. But that doesn’t seem to work as every time, the build is successful but just after that the container shuts down. Here is my docker-compose.yml And the Dockerfile (found in .docker/Dokerfile): Any ideas ? Answer There are

Connecting Database Codeigniter 4 With Custom Ports

So, I’m trying to connect to my database container from my webserver container. I currently use Codeignter 4 for my PHP framework. Everything goes well in terms of communicating between different containers because that container is inside the same networks. Inside webserver container, I’ve tried to ping from and to database container with no problem, All the port is accessible

Container cannot see the prebuilt vendor folder in it

My project is throwing the next error after restarting the docker container: Warning: require(/var/www/ /var/www/ /vendor/composer/./symfony/polyfill-php80/bootstrap.php): Failed to open stream: No such file or directory in ‘vendor/composer/autoload_real.php line 71 My Dockerfile: My docker-compose: Inside container run ls vendor/symfony before restarting the container: And after: The error is solving if remove the vendor directory and run composer install. I’m not a

Advertisement