Browse AI Field GuideForum Podcast
All ThreadsLeaderboard
  1. Discussions

    1. Popular This Week
    2. Popular All Time
    3. Solved
    4. Unsolved
    5. No Replies Yet

hodoknaru's avatar

Laravel dev in Windows - Laragon vs Docker?

What's the best windows dev experperience? Herd is mac only, so that's out. I usually go native, but I like the option to be able to change PHP / DB versions easily. I've had performance issues with Docker and so I'm not thrilled about investing the hours necessary to solve that - I just want to write code. What's your go to for windows?

hodoknaru's avatar
hodoknaru's avatar msslgomez2yrs agoGeneral
2
1
Last reply by msslgomez 2yrs ago
bksurik's avatar

Segmentation fault (core dumped) in Docker

I have a problem when running the php artisan command in Docker. How can I fix this? docker exec -it tr_app bash root@ca908cb18af7:/var/www/tr-service# php artisan Segmentation fault (core dumped)

bksurik's avatar
bksurik's avatar tisuchi2yrs agoLaravel
1
1
Last reply by tisuchi 2yrs ago
yan_semyon's avatar

Docker + Laravel + Vite + Vue

Hello everyone! There is a Laravel + Vite + Vue application, I am trying to use Docker. The problem now is that it is not possible to see the changes when editing the Vue file, even when reloading the page, only by running 'npm run dev' for it. I don't understand much about Docker, I try to do a lot intuitively, I don't quite understand everything that is already there now, but

yan_semyon's avatar
yan_semyon's avatar yan_semyon2yrs agoLaravel
0
1
ScriptedCapy's avatar

Dockerized Laravel after the 'The Docker Tutorial' no Hot Swapping with Vite

I did the 'The Docker Tutorial' series, implemented my own project and most of it works fine. Then installed Tailwind, following the Tailwind instructions for Laravel. I have the @vite('resources/css/app.css') directive in my head-Tag. When i change something in the frontend and save the change, module hot swapping doesn't work. In my browser terminal i get the messages: GET ht

ScriptedCapy's avatar
ScriptedCapy's avatar LaryAI2yrs agoLaravel
1
1
Last reply by LaryAI 2yrs ago
iamriajul's avatar

Turning off Rate Limitting when requests are coming internal services (Docker Swarm Network)

I have a Frontend stack where the frontend requests to the API service (docker service) internally without using the public domain to grab the data for Server Side Rendering the Qwik Application. In this scenario what would be the best way to only allow those internal communications without any limitations? Thanks.

iamriajul's avatar
iamriajul's avatar iamriajul2yrs agoDevOps
0
1
daprezjer's avatar

Connection refused [tcp://127.0.0.1:8002] for redis connection w/ Docker

I'm using Laravel with docker and am new to installing redis. I've added redis locally via brew, and have it started up with redis-server. It's reporting initialized and ready to accept connections via tcp. In Docker Compose, I've associated port 8002 with the redis port of 6379. redis: image: redis:alpine container_name: my-redis command: redis-server --appendonly yes

daprezjer's avatar
daprezjer's avatar daprezjer2yrs agoLaravel
1
1
Last reply by daprezjer 2yrs ago
kwarnkham's avatar

Soketi with docker, configure via env file

How do I config soketi server when using it with docker? I tried inline environment variables, but some do not work. For example, https://github.com/soketi/soketi/issues/1052

kwarnkham's avatar
kwarnkham's avatar LaryAI2yrs agoDevOps
1
1
Last reply by LaryAI 2yrs ago
suneethshihab's avatar

Laravel error logs are not showing in docker

Set 'stderror' in env log channel Server: Nginx, PHP-FPM In docker logs the php errors are not showing Errors are coming fine in php-fpm.log Tried error_log = /proc/self/fd/2 ln -sf /dev/stderr /var/log/php8.0-fpm.log ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log

suneethshihab's avatar
suneethshihab's avatar JohnnyBigo...9mos agoLaravel
1
1
Last reply by JohnnyBigodes 9mos ago
sotamota's avatar

npm error when installing laravel 10 on docker ubuntu

Hello. During the installation stage of a new laravel 10 project, a failure occurs and errors appear in the terminal: 502.6 26 packages are looking for funding 502.6 run npm fund for details 507.1 507.1 added 1 package in 4s 507.1 507.1 1 package is looking for funding 507.1 run npm fund for details 535.0 npm ERR! code 1 535.0 npm ERR! path /usr/lib/node_modules/bun 535.0 n

sotamota's avatar
sotamota's avatar sotamota2yrs agoLaravel
5
1
Last reply by sotamota 2yrs ago
DoeJohn's avatar

Docker Compose: Understanding services for PHP & Composer

Hi, I started learning about Docker and setting up PHP & Composer. I looked at some examples and saw the following example: https://github.com/aschmelyun/docker-compose-laravel/blob/main/docker-compose.yml In docker-compose.yml, among others, there are two services: for php and for composer: php: build: context: ./dockerfiles dockerfile: php.dockerfile

DoeJohn's avatar
DoeJohn's avatar DoeJohn2yrs agoPHP
2
11
Last reply by DoeJohn 2yrs ago
onurzdgn's avatar

Docker MySQL for Laravel

Hi everyone. My computer is Mac with intel CPU. I am developing Laravel 10 and I am using MAMP for MySQL. Latests Mac update MAMP is not working. This is the reaseon why I need MySQL in Docker. Problem is starting here. I don't know have a can do. I use this docker pull mysql in here https://hub.docker.com/_/mysql. When I try to $ docker run --name some-mysql -e MYSQL_ROOT_PASS

onurzdgn's avatar
onurzdgn's avatar onurzdgn2yrs agoLaravel
6
1
Last reply by onurzdgn 2yrs ago
warpig's avatar

docker or something, resets connection on port 5173

laravel logs don't show anything regarding this. Opening network tab on firefox, i clearly see "app.js", "app.css" and a file named "client" aren't loading. apparently, there's this message: "NS_ERROR_NET_RESET" which means the server reset the connection. (https://stackoverflow.com/questions/77306379/ns-error-net-reset-in-firefox) First,

warpig's avatar
warpig's avatar warpig2yrs agoGeneral
0
1
mstdmstd's avatar

Why runing \Image::make under docker raised error?

I try to run under docker laravel 9.52.15 app with filament 2.17.52 and intervention/image 2.7 with Dockerfile.yml having : FROM php:8.1.6-apache ... RUN pecl install imagick \ && docker-php-ext-enable imagick RUN docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-jpeg RUN docker-php-ext-install gd and running code :

mstdmstd's avatar
mstdmstd's avatar mstdmstd2yrs agoLaravel
0
1
Chron's avatar

Laravel and Vite in Docker doesn't work

Good day, everyone! I'm using Laravel 10.26.2 and I've been trying to configure vite refresh. I'm using docker-compose to run my Laravel applications and it seems that vite cannot connect properly to my client so it cannot auto-refresh my page when I make changes. This is my docker-compose.yml version: "3.8" name: "laravite" services: nginx: container

Chron's avatar
Chron's avatar imsat1yr agoVite
1
1
Last reply by imsat 1yr ago
censin's avatar

Laravel Sail commands not working on existing project, but docker compose is

I have a project that I am running locally with Laravel Sail. I am trying to give my configuration to my team so that we can all share the same configuration. To test this process I started with a fresh machine (macOS) and got docker and composer running. I cloned the repository and composer installed to get the sail binary. I've aliased ./vendor/bin/sail to sail. At this point

censin's avatar
censin's avatar tpra72yrs agoLaravel
2
2
Last reply by tpra7 2yrs ago
mohammad6006's avatar

docker project inside laravel homestead

I install Laravel homestead on my windows, now I have a project need docker and docker compose, Does it possible to run this project inside Laravel homestead using docker and docker compose? if yes, what should I do? Do I need to any change in homestead.yml? after docker compose up -d which address should I use to run project? I dont want to install docker desktop to run this p

mohammad6006's avatar
mohammad6006's avatar martinbean2yrs agoLaravel
1
1
Last reply by martinbean 2yrs ago
stratboy's avatar

Herd vs Docker?

Hi, and now, after homestead, valet and docker, there's Herd. :) Every time I start to study Laravel again, I find another development environment in docs. So, in the end, what do you recommend for development nowadays?

stratboy's avatar
stratboy's avatar MladenJanj...1yr agoLaravel
6
1
Last reply by MladenJanjetovic 1yr ago
Dodik's avatar

Docker problem on Linux Mint

Hello, after wasting literally hours trying to run docker for Laravel+Vue I finally got it running, however when I try to sail up, it shows this error and I can't Google my way out of it. I also tried chatGPT but I'm just arguing with it, because it doesn't help either. Any help is appreciated. ERROR: Invalid interpolation format for "laravel.test" option in service &

Dodik's avatar
Dodik's avatar Teodoro2yrs agoLaravel
5
1
Last reply by Teodoro 2yrs ago
Chron's avatar

Error installing latest Laravel in Docker

Here's the docker-compose.yml version: "3.8" services: nginx: image: nginx:stable-alpine container_name: nginx depends_on: - mysql volumes: - ./nginx/default.conf:/etc/nginx/conf.d/default.conf - ./src:/var/www/html:delegated ports: - "80:80" mysql: image: mysql restart: unless-stopped tty: true

Chron's avatar
Chron's avatar mehrancode...2yrs agoLaravel
1
1
Last reply by mehrancodes 2yrs ago
Nahbyr's avatar

Laravel 10.x docker + PHPStorm guide

Is there a step-by-step guide out there to access the files of a Docker container in PHPStorm? Let me start off by mentioning I'm new to PHPStorm and Docker. The installation page for Laravel 10.x has you install docker and Sail. The documentation then suggests VSC as an editor. However, I'm using PHPStorm. Now, PHPStorm has a plugin to connect to Docker. And all of this I've g

Nahbyr's avatar
Nahbyr's avatar LaryAI2yrs agoGeneral
1
1
Last reply by LaryAI 2yrs ago
Chron's avatar

Missing Laravel 5.8 vendor folder on docker

I'm trying to run a laravel application on a docker. #Dockerfile FROM php:7.4-fpm-alpine RUN docker-php-ext-install pdo pdo_mysql RUN docker-php-ext-enable pdo_mysql #docker-compose.yml version: '3' networks: laravel: services: mysql: image: mysql:8 container_name: mysql restart: unless-stopped tty: true ports: - "3306:3306" e

Chron's avatar
Chron's avatar Chron2yrs agoLaravel
2
2
Last reply by Chron 2yrs ago
ioiofadhil's avatar

Docker removing Laravel Storage Image

Hi, so I just implemented docker container for my Laravel Application. But what I don't understand is, the container doesn't mirror the latest build of my image. I tried to restart the container, It's still using the old codes. What's working for me is remove completely container using docker compose down --volume and up again using docker compose up -d. But i lost my storage i

ioiofadhil's avatar
ioiofadhil's avatar Tray22yrs agoLaravel
1
1
Last reply by Tray2 2yrs ago
msarathy's avatar

Docker, PHP, NGINX template for PHP applications

Hello, I'm curious how you set up PHP applications(Not Laravel or any other framework) using docker. Any docker templates you create that you use for all projects? TIA

msarathy's avatar
msarathy's avatar LaryAI2yrs agoPHP
1
1
Last reply by LaryAI 2yrs ago
LaCoder's avatar

Vapor CLI in SAIL docker

Hello, I have created my application in the SAIL environment and Docker, Now I want to move this local application to vapor, I created and connected AWS, and installed vapor CLI, Normally I run my commands with ./vendor/bin/sail ... How can I run Vapor login with the docker application? if I run simple vapor login, it says command not found. me@MyPC:~/oicluster5$ vapor login v

LaCoder's avatar
LaCoder's avatar bretto361yr agoVapor
1
1
Last reply by bretto36 1yr ago
Kikismedia's avatar

docker project not working

i have a project build using docker , i was asked to work on project but i encounter issue why setting up docker on my windows , i would love to know , is it neccessary to continue using docker for this project , can i just use xampp and how would i make this work

Kikismedia's avatar
Kikismedia's avatar MohamedTam...2yrs agoLaravel
3
1
Last reply by MohamedTammam 2yrs ago
Stato74's avatar

Azure App Service Configuration Settings in Docker Laravel .ENV

Evening, I'm trying to configure a Docker Container running as an App Service in Azure. I can get this to work but if I need to change any of the .env parameters I have to make the change, rebuild my docker image and push it back up to Azure. The Azure documentation says I can create Configuration Settings and they will be written to the .env file but I can't get this to work.

Stato74's avatar
Stato74's avatar Stato742yrs agoDevOps
3
1
Last reply by Stato74 2yrs ago
ranamoizhaider's avatar

Laravel installation using Docker 24.0.2

I am using docker for the first time to create my laravel project using: curl -s https://laravel.build/edu | bash I installed Ubuntu (Ubuntu 22.04.3 LTS) using wsl --install in my windows 10. I do have a stable internet connection and I have tried a lot of times and it always stuck here. While creating a new laravel project I am getting this error: Get:145 http://archive.ubunt

ranamoizhaider's avatar
ranamoizhaider's avatar MohamedTam...2yrs agoLaravel
1
2
Last reply by MohamedTammam 2yrs ago
eggplantSword's avatar

Docker composer install

When I try to run this command from the docs https://laravel.com/docs/9.x/sail#installing-composer-dependencies-for-existing-projects docker run --rm \ -u "$(id -u):$(id -g)" \ -v "$(pwd):/var/www/html" \ -w /var/www/html \ laravelsail/php81-composer:latest \ composer install --ignore-platform-reqs I get the following error https://media

eggplantSword's avatar
eggplantSword's avatar MohamedTam...2yrs agoGeneral
1
1
Last reply by MohamedTammam 2yrs ago
eggplantSword's avatar

Using Docker existing projects

I'm struggling to get my windows computer to be able to run my Laravel projects, it's a never ending battle. My newest try has been Docker/Sail since my Homestead died a week ago and refused to work again. Here is what I did step by step: installed Docker Desktop already has WSL installed so ran wsl --update and wsl --set-default-version 2 installed and configured Ubuntu usi

eggplantSword's avatar
eggplantSword's avatar JabatoFore...2yrs agoGeneral
10
4
Last reply by JabatoForever 2yrs ago
lmottasin's avatar

Laravel Docker Resource

I am new to docker. Please suggest some resources without any package.

lmottasin's avatar
lmottasin's avatar lmottasin2yrs agoDevOps
2
1
Last reply by lmottasin 2yrs ago
weerd's avatar

Cannot connect to PostGreSQL inside Sail configured Docker container

I've mostly used Homestead for Laravel development in the past, and just recently started trying out using Laravel Sail + Docker. I got most of the stuff working, but when trying to connect to the pgsql database via TabelPlus I keep getting errors when trying to connect. Following is the relevant configuration for pgsql in my docker-compose.yml: pgsql: image: 'postgres:

weerd's avatar
weerd's avatar weerd2yrs agoDevOps
2
1
Last reply by weerd 2yrs ago
murilo's avatar

connect Laravel apps locally with Docker via Console

Hello , I have been using this method of Andrew Schmelyun https://www.youtube.com/watch?v=LFrBmvgamGI to connectone laravel project to other with docker . this is the code - $client = new Client; $request = $client->get('http://laravel_server:80/api/test-connection"'); $response = $request->getBody()->getContents(); well , it is working . if I

murilo's avatar
murilo's avatar murilo2yrs agoDevOps
4
1
Last reply by murilo 2yrs ago
Artichoke's avatar

Assets returning 404 in Docker

Hello everyone, I have a Laravel 9 application with a combination Vue.js and Blade for the frontend, built using Vite. I've dockerized the application using php:8.1-fpm for the PHP container and Nginx for the web server. Despite the static assets existing in the correct directory inside the Docker container, I'm still getting 404 errors when trying to access them via the browse

Artichoke's avatar
Artichoke's avatar lostintran...2yrs agoServers
1
2
Last reply by lostintranslation 2yrs ago
TimiAde's avatar

Laravel and Docker

Any tutorials on laravel and docker

TimiAde's avatar
TimiAde's avatar karen073yrs agoLaravel
5
1
Last reply by karen07 3yrs ago
warpig's avatar

docker stopped running after 4.20.1 update

I recently upgraded to version 4.20.1 and it stopped running. i was having performance issues with my computer so i disabled some startups processes i don't think any of the ones i disabled have anything to do with Docker. thing is after i disabled those programs, i restarted the computer and now docker is not running anymore. anyone having issues with this? thanks.

warpig's avatar
warpig's avatar warpig2yrs agoGeneral
2
1
Last reply by warpig 2yrs ago
meredevelopment's avatar

Vite build in docker error: To load an ES module, set "type": "module" in the package.json

Hi, I have Laravel 10 + Breeze (Blade) running inside Docker. It's a DDEV managed docker setup. I'm having a bit of a circular problem and not getting any useful hits about here/SE/Google, and it's not clear to me yet if it's a Laravel/Docker/DDEV/Vite/NPM version issue. Been on this for about a day, so I'm going to start here asking for help: When I run npm run dev I get the f

meredevelopment's avatar
meredevelopment's avatar antoniogar...1yr agoVite
4
182
Last reply by antoniogarcia78 1yr ago
prasadchinwal5's avatar

Laravel Vite configuration with Docker

I am using docker container to run laravel 9/10 application. When I create a new project and visit my app url https://xyz.com/app_name, the app works. Now I am trying to configure vite. Here is what my vite.config.js file looks like: import { defineConfig } from 'vite'; import laravel from 'laravel-vite-plugin'; import fs from 'fs'; const app_url = 'https://xyz.com/app_name';

prasadchinwal5's avatar
prasadchinwal5's avatar samuelaust...2mos agoVite
3
11
Last reply by samuelaustinudhedhe 2mos ago
Respect's avatar

hello how to install docker file dependencies and run

hello friends , i'm a beginner in docker , i got a project to make some edits, the project using laravel and docker , and it's working in digital ocean 100%, but i need install it locally , i downloaded it and used these commands of laravel i did composer install and npm install but steel not working , i found Dockerfile which commands mast i use to install run it .thx

Respect's avatar
Respect's avatar tisuchi3yrs agoServers
1
1
Last reply by tisuchi 3yrs ago
warpig's avatar

Connecting to MySQL thru Sail, Docker Container

Trying to connect to the MySQL database through the docker container like this: /var/www/html$ mysql -h 127.0.0.1 -u sail -p Enter password: ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1:3306' (111) Where's the error, on the Port or the IP that im using? Thanks.

warpig's avatar
warpig's avatar frankielee3yrs agoLaravel
1
1
Last reply by frankielee 3yrs ago
damianchase's avatar

Laravel Docker + Sail. Page name change not found

Hello, first post here. I'm learning development of laravel and running it on docker with laravel sail. When I change the name of a view or create a new page I usually get an instant not found error. I then have to refresh the site like 10 times until it finds the view, I guess docker is updating the repository? Then sometimes it finds the page and works fine, another times i

damianchase's avatar
damianchase's avatar LaryAI3yrs agoServers
1
1
Last reply by LaryAI 3yrs ago
mshafnas's avatar

Nginx certbot docker

I have setup the nginx with certbot in docker, when I try to access the website it shows page is not redirecting properly but with port 9001 I am able to access the website. please note that I am service two different websites on port 80 and 9001, here is my conf file # Upstream configuration upstream botpress_server { server botpress:3000; } # Disable sending the server

mshafnas's avatar
mshafnas's avatar mshafnas3yrs agoDevOps
0
1
Stato74's avatar

Docker, Ngnix and PHP 8.2 unable to find api route, gives a 404

I have a simple docker compose file that pulls in Ngnix and PHP 8.2 (both configs below) the process copies my laravel application from the src folder to the /var/www/html folder When I run the docker container I can see the Laravel home page via http://localhost:8090 but when i use Postman going to http://localhost:8090/api/myendpoint I get a 404 In docker I get the following

Stato74's avatar
Stato74's avatar harolddavi...3yrs agoPHP
3
1
Last reply by harolddavies 3yrs ago
carstenjaksch's avatar

laravel/installer: "Docker is not running."

I try to install Laravel with the installer CLI on my new Mac, but laravel new is greeting me with this: "Docker is not running." Docker is not installed on my system and the documentation doesn't hint about that. The GitHub repository of laravel/installer does not contain this message. I am confused.

carstenjaksch's avatar
carstenjaksch's avatar carstenjak...3yrs agoLaravel
1
1
Lumethys's avatar

Some questions about sail and docker

So we are trying to move away from the LAMP stack and embrace Docker for local development. Of which Laravel had Sail as an answer But upon investigating the docs, it seems to me that Sail works by having the source code installed in the Wsl2 itself (most of us use windows) Is this mandatory? Do everyone on the teams must clone the repo directly on wsl2? Can I just put it in Wi

Lumethys's avatar
Lumethys's avatar frankielee3yrs agoLaravel
10
1
Last reply by frankielee 3yrs ago
quickee's avatar

Laravel 10 / Docker getting app to connect to MySQL

I CAN connect to the database with mysql workbench and through docker terminal but not through the app. Get error. Any thoughts? SQLSTATE[HY000] [2002] No such file or directory (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1 limit 1) what i use for workbench - works 127.0.0.1:8001 username:root password:password docker term - works mysql -u root -passwo

quickee's avatar
quickee's avatar quickee2yrs agoLaravel
5
1
Last reply by quickee 2yrs ago
just-pthai-it's avatar

Laravel horizon not work correctly on docker

I run Laravel app with others services on docker using docker compose. When I access into the docker container and run horizon manual, nothing happened. Horizon run normally but it threw an exception to my log file: Call to undefined function Laravel\Horizon\posix_getppid() Everthing works fine If I run Laravel app outside docker container. Does anyone know what exception I am

just-pthai-it's avatar
just-pthai-it's avatar just-pthai...3yrs agoLaravel
1
1
Last reply by just-pthai-it 3yrs ago
Flex's avatar

docker installation did not work on Laravel 9 project

going to installation docker in laravel 9 project. as I am using windoes 7 I have installed Docker Toolbox and run the following command on laravel project docker compose up but following error message on the cmd docker: 'compose' is not a docker command. what is the problem? how could I fix this problem

Flex's avatar
Flex's avatar LaryAI3yrs agoLaravel
1
1
Last reply by LaryAI 3yrs ago
malkyv's avatar

laravel storage:link docker

Hello, I have an application running in docker (but without using sail). When I run the storage:link command inside the container, the link is created fine and I can save the images but it won't let me see them, it gives me a 404 error. Does anyone know what's going on?. Use asset('storage/imagen_name

malkyv's avatar
malkyv's avatar synyo2yrs agoGeneral
2
2
Last reply by synyo 2yrs ago
ian_h's avatar

Laravel 10 + Inertia + Vite behind nginx proxy in docker container- TypeError

Hi all.. I've written my first Inertia project utilising Jetstream (normally I've gone down the Livewire path but wanted to try something different this time). This has gone much better than I initially thought as although I've "dabbled" in VueJS before, I'm far from an expert, but have been pleasantly surprised with Inertia. That said, I've now deployed this to my se

ian_h's avatar
ian_h's avatar ian_h3yrs agoVite
1
1
Last reply by ian_h 3yrs ago
filshy's avatar

Docker Compose problem

I was running this command in cmd : docker compose build docker compose run dalai npx dalai alpaca install 7B docker compose up -d but it keeps giving me the following error : no configuration file provided: not found would anyone be able to help me ?

filshy's avatar
filshy's avatar filshy3yrs agoRequests
0
1

Want us to email you occasionally with Laracasts news?

Nine out of ten doctors recommend Laracasts over competing brands. Come inside, see for yourself, and massively level up your development skills in the process.

Learn
BrowseSeriesCreatorSeriesLaravel PathLarabitsPlayground
Discuss
ForumPodcastSupport
Extras
Gift CertificatesApparelFAQiOS AppTerms
Social
X(Twitter)TikTokYoutube

© Laracasts 2026. All rights reserved. Yes, all of them. That means you, Todd.

Proudly hosted with Laravel Forge and DigitalOcean.

Want us to email you occasionally with Laracasts news?

Nine out of ten doctors recommend Laracasts over competing brands. Come inside, see for yourself, and massively level up your development skills in the process.

Learn
BrowseSeriesCreatorSeriesLaravel PathLarabitsPlayground
Discuss
ForumPodcastSupport
Extras
Gift CertificatesApparelFAQiOS AppTerms
Social
X(Twitter)TikTokYoutube

© Laracasts 2026. All rights reserved. Yes, all of them. That means you, Todd.

Proudly hosted with Laravel Forge and DigitalOcean.