Have been following this tutorial making a few changes when needed: https://medium.com/@pierangelo1982/dockerize-an-existing-laravel-application-with-docker-compose-a45eb7956cbd After running docker-composer build and docker-composer up all the migrations run successfully and I get a message saying the app is running on http://0.0.0.0:8000 Hover that url or the one specified in the tutorial show nothing. Here is my docker file FROM php:7 ..
Category : docker
Trying to setup a Laravel local dev environment on my Mac M1 using Docker. I followed the instructions on Laravels installation page, running curl -s "https://laravel.build/example-app" | bash And then ./vendor/bin/sail up Error log Building laravel.test [+] Building 2.6s (10/17) => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 37B 0.0s => ..
I work with Laravel in docker, I decided to connect mailtrap service for testing mail sending. But it does not work in docker, if you run the project not in docker, it sends mail as needed. Here are my docker compose files and laravel settings. My docker-compose.yml version: ‘3’ services: project-nginx: container_name: project-nginx build: context: ..
I am pretty new to both Heroku and Docker, so please forgive any redundancy and thanks for any help I can get. I have a Docker container that is running fine locally and i have the web app running now on Heroku as well. However, when I attempt to login, I am getting the following ..
I cloned a repository and created a development environment with docker and nginx as a server. However, when running the composer install command I run into the following error: Error running composer install And in the browser: in browser I tried pkg install php7.4-session but im getting zsh: command not found: pkg Using nginx so ..
Currently I’m testing performance of my laravel application. I’ve found this repo and run the laravel JSON serialization test on cloud server (16vCPUs-32GB memory). The benchmark (running in the docker container) gives me about 5500 RPS. But when I copied the project from benchmark and run test localy it gives me only ~4200 RPS. I ..
I am pretty new to both Heroku and Docker, so please forgive any redundancy and thanks for any help I can get. I have a Docker container that is running fine locally. Here is my config: DockerFile: FROM php:7 RUN apt-get update -y && apt-get install -y openssl zip unzip git RUN curl -sS https://getcomposer.org/installer ..
I’ve rebooted my system and then run all my containers using the vendor/bin/sail up command, the only one that failed to reload was MySQL. The error is the following : ERROR: for mysql a bytes-like object is required, not ‘str’ Traceback (most recent call last): File "/usr/lib/python3/dist-packages/docker/api/client.py", line 261, in _raise_for_status response.raise_for_status() File "/usr/lib/python3/dist-packages/requests/models.py", line ..
I had a lot of trouble trying to install XDebug in the Laravel Sail docker container. Once I did, I had trouble customizing the service name (from laravel.test). I also noticed that I was receiving warnings about updates available for NPM and Node.js Sourc..
I have a docker container, for which I need to run the following command php /var/www/html/artisan queue:work & It starts a worker process that looks for jobs and executes them. I can run it by doing exec -it when the container is running. But I need to do it using Dockerfile so that when my ..
I am trying to set up a Laravel development environment with Docker using docker-compose and Dockerfile for the php image. I need an MSSQL driver for php. All works fine except that I cannot install the MSSQL driver for php. Please help me find a solution. This is my Dockerfile: FROM php:7.3-fpm # Copy composer.lock ..
I m trying to dockerize a laravel project a small problem with my MySQL Container. I cant connect to the container my DB with root or simple user. I only used docker-compose build && docker-compose up -d docker exec -it ica-backoffice_attendize_db_1 /bin/bash mysql -u root -p Enter password: ERROR 1045 (28000): Access denied for user ..
Hope you are well, I have a project that I recently upgraded to laravel 8 from laravel 6. it was dockerized both for dev and prod, after update unfortunately the app does not retrieve the env values that are passed by the docker-compose file and only works if I pass a .env file to the ..
I have created my own docker-compose and DockerFiles for a Laravel app. Everything is working as expected, but I can’t get Xdebug to work. I’ve run through a few tutorials on Xdebug with Windows, but no luck. I’m recently returning to Windows after running Mac for many years. My Setup: Windows 10 Pro VSCode List ..
I am trying to get php artisan queue:work command to run when my docker container starts up, so that it will keep running and processing jobs. I need to do this using ‘Dockerfile’. I can run it by doing exec -it when the container is running. But I need to do it using Dockerfile so ..
I’m currently preparing a Docker image running Laravel which calls python scripts. I’m trying to reproduce the configuration I have on my server (which works fine). On both my server and the docker image, I install python modules using pip3 install -t /usr/lib/python3/dist-packages to make them available system-wide. I’m running a python test script which ..
I have 3 Kubernetes nodes, one of them is the Master and the others are worker. I deployed Laravel application to the Master Node and created volumes and storage class which points to that folder. These are my YAML files to create volumes and the persistent volume claim apiVersion: v1 kind: PersistentVolumeClaim metadata: name: qsinav-pv-www-claim ..

I’m attempting to build and run a Laravel docker image which was originally generated via Laravel sail. When using docker-compose up, it correctly runs and I am able to access the site. Running docker build docker/7.4/ -t <tagname> followed by docker run <tagname> results in the following error logs however: I have tracked this error ..
Problem with Laravel, once launched with PHP-FPM and NGINX no file is accessible except index.php. Once my application is launched all the application is executed successfully except that the CSS and my JS scripts present in the public folder of Laravel are not accessible and therefore it is not applied on the application. My application ..
How do I call a docker container within Laravel? I am using the following package to download PDFs https://packagist.org/packages/spatie/browsershot, I have an npm container which I am trying to use with this package. My site container doesn’t have node or npm installed which is why I need to use my npm container instead. Here is ..
I have a Laravel project working on docker. When I want to add a package with "composer require" this error occurs: Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 83886080 bytes) in phar:///usr/bin/composer/src/Composer/DependencyResolver/RuleSet.php on line 90 I have changed the memory_limit in php.ini to "-1". The same error continues. I have ..
I am using Laravel 8 as API with Apache2.4 inside a Docker container, and I take requests from my Vue 2 APP using Axios. But when I get a server error (500), caused by any code error, I get a CORS error. If I use my return pattern (code below), everything works fine. return R::message(‘Error ..

I am new to docker for Windows and have this setup wherein 2 repos have its own docker-compose.yml file. One is for the API while the other is for the APP. API docker-compose.yml version: ‘3’ networks: my_network: name: my_network ipam: config: – subnet: 172.23.0.0/24 services: my_api: build: context: . dockerfile: .docker/site.dockerfile container_name: my_api ports: – ..
I am really having hard time trying to set mysql_1 container up and running. So, I installed Laravel 8 just by instructions, first downloaded Docker Desktop, set WSL properly and everything works fine except MySQL. I installed Laravel from Windows Terminal using: curl -s https://laravel.build/example-app | bash cd example-app ./vendor/bin/sail up Everything works fine (I ..
Why I cannot connect a laravel application to a redis on docker using the container name nor "localhost"? If i try to use the REDIS_HOST as cache i got the error: >>> IlluminateSupportFacadesRedis::connection()->ping(); PHP Warning: stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /mnt/c/Users/user/Documents/startup/meli/vendor/predis/predis/src/Connection/StreamConnection.php on line 127 PHP Warning: stream_socket_client(): unable to connect ..