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…
Tag: docker
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 runnin…
Warning: session_start(): Cannot find save handler ‘redis’
I want to set php.ini to use Redis as session handler. I did it this way: My Php application and Redis are running in 2 different containers. This is the code I’m trying to run in Php: Due to my searchs I found that I should install: but E: Unable to locate package php5-redis I’ve also tried: php-…
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/…
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/docke…
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″}’…
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-comp…
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/Dokerfil…
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 …
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: Ins…