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

admin@iphonephotographyschool.com's avatar

Running Laravel queue on supervisor eats up all docker container memory

Hi! I have following supervisor setup for running the queue: [program:laravel-worker-emails] process_name=%(program_name)s_%(process_num)02d command=php /var/www/artisan queue:work database --queue=emails --memory=128 --sleep=3 --tries=3 --daemon autostart=false autorestart=true user=root numprocs=6 redirect_stderr=true stdout_logfile=/var/log/laravel-queue-worker-emails.log W

admin@iphonephotographyschool.com's avatar
admin@iphonephotographyschool.com's avatar admin@ipho...8yrs agoServers
0
1
kickthemooon's avatar

Docker PHPStorm xDebug

I hope this is not too off-topic but I am trying to get xdebug working with my laravel docker local environment and I am not having much luck. This is docker-compose.yml: version: "2.1" services: nginx: image: nginx:latest ports: - 80:80 volumes: - "./public:/var/www/html/public:ro" - "./

kickthemooon's avatar
kickthemooon's avatar kickthemoo...8yrs agoGeneral
0
1
ohffs's avatar

Cache/save Docker image for Laravel CI

I've got a CI setup (via gitlab) which runs inside a docker container - it works fine. But it's a bit slow to build the docker image each time the tests run (by 'slow' I mean 'a couple of minutes', so not exactly the end of the world but just enough to be a bit annoying). Almost all the stuff I can find online is either 'pull down the base image then run apt-get...' or is an i

ohffs's avatar
ohffs's avatar ohffs8yrs agoGeneral
0
1
afraz's avatar

Laradock or vagrant or docker which one is best ?

Which one is the best for laravel development? What should I select from laradock, docker and vagrant ? Which performs faster and which one has more strong support and community for laravel? Thanks!

afraz's avatar
afraz's avatar CJJ8yrs agoTips
4
1
Last reply by CJJ 8yrs ago
aurawindsurfing's avatar

Envoyer with docker

Hi! Does anyone use envoyer to deploy to docker and not to the hostmachine please?

aurawindsurfing's avatar
aurawindsurfing's avatar rhand7yrs agoEnvoyer
1
1
Last reply by rhand 7yrs ago
DanielPierceIV's avatar

Laravel/Dusk not running in Docker

I have a clean custom docker image, which is built off of the base PHP:Apache image. In my dockerfile, I'm installing Google Chrome and and XVFB. Once I have Laravel up and running, I follow the Laravel Dusk installation instructions located here: https://laravel.com/docs/5.4/dusk#installation I then run "php artisan dusk" inside of the docker container, and I get thi

DanielPierceIV's avatar
DanielPierceIV's avatar DanielPier...9yrs agoLaravel
0
1
scuttlebyte's avatar

How can I use docker to speed up CI builds?

This is a pretty specific question, but I figured asking some likeminded folks might get me farther than I've gotten via other channels. I'm just getting started with Continuous Integration and want to leverage docker to speed up my builds. I've repurposed the scripts I found in another Laracasts thread that works great, but takes a while (8+ minutes) to run. I'm a complete roo

scuttlebyte's avatar
scuttlebyte's avatar scuttlebyt...9yrs agoServers
2
1
Last reply by scuttlebyte 9yrs ago
souvik's avatar

With Docker

Can you please show how to use Docker and Rancher?

souvik's avatar
souvik's avatar souvik9yrs agoRequests
0
1
clone45's avatar

Migrating existing Lumen application from Homestead to Docker?

I've written an application in Lumen which runs on Homestead. I found that after I wrote it that our server doesn't support the version of PHP that Lumen/Homstead requires. Having had luck with Docker in the past, I'd like to use it to work around this problem. However, I'm having trouble finding a clear and complete tutorial on how to get my existing Lumen application to run

clone45's avatar
clone45's avatar clone459yrs agoLumen
0
1
DukeCastino's avatar

Docker + Laravel = SQLSTATE[HY000] [2002] Connection refused

Hi, i have a problem with mysql and my Laravel Project. I use the Docker Droplet from Digital Ocean and take the steps from this Tutorial: Laracasts Installation works fine but when i run php artisan migrate it ends with this Error: [PDOException] SQLSTATE[HY000] [2002] Connection refused when i change the DB_HOST from 127.0.0.1 to localhost in

DukeCastino's avatar
DukeCastino's avatar codeOnJim2yrs agoLaravel
24
37
Last reply by codeOnJim 2yrs ago
midascodebreaker's avatar

Thoughts on Running Yarn in Docker...

Is there a benefit of Running Yarn for Development Using Docker... Coz i already have a local version in my windows.. However , im thinking of using Yarn inside a container... Its Kinda Cool in the sense that whenever i destroy the container... All the Caches of dependencies will still remain... Let me Know if this is worth a try to even develop under Docker...

midascodebreaker's avatar
midascodebreaker's avatar midascodeb...9yrs agoTips
0
1
jimmy.puckett's avatar

Run the scheduler in a docker image?

We are trying to decide the best way to run the scheduler in a docker container. Given that the php /path/to/artisan schedule:run >> /dev/null 2>&1 command runs & then exits, you cannot let it be the CMD for the Docker file unless you launch a new container for each minute to run the scheduler. We have 3 options that are considering... Have a shell script f

jimmy.puckett's avatar
jimmy.puckett's avatar juanitomin...8yrs agoServers
16
33
Last reply by juanitomint 8yrs ago
midascodebreaker's avatar

Guide: Set Up Laravel 5.3 with Docker + LaraDock + Let's Encrypt SSL in Digital Ocean within 5 Minutes.

Here is what i did to Set up a laravel Project in Digital Ocean Install Docker Login Digital Ocean Add Droplet 1 Click Install docker Choose Droplet reset ROOT password check email SSH to your Server ssh root@ipaddress you will be prompt of that password. type the password you receive in your email then it will ask to you to change a new password just change it to the custom

midascodebreaker's avatar
midascodebreaker's avatar Agoi5yrs agoGuides
6
5
Last reply by Agoi 5yrs ago
midascodebreaker's avatar

Vmare + Docker + LaraDock?

Hi I wanna use Vmware + Docker + Laradock... I already successfully install it on virtual box with docker toolbox... but , i dont plan to use virtual box, i wanna separate my virtual box for homestead... and use vmaware for docker... is this possible hope someone would comment thanks

midascodebreaker's avatar
midascodebreaker's avatar midascodeb...9yrs agoLaravel
0
1
panpan's avatar

Laravel - Docker - Nginx - Behat

Hi, I am trying to run behat inside an Nginx container in a laravel app. My docker-compose.yml version: '2' services: load_balancer: image: tutum/haproxy links: - nginx ports: - "8888:80" nginx: image: andrewmclagan/nginx-hhvm volumes: - ./www:/var/www - ./sites:/etc/nginx/sites-enabled links: - mysql:mysql

panpan's avatar
panpan's avatar panpan9yrs agoLaravel
0
1
thusfar's avatar

What is the best Docker image for Laravel development?

I've seen that there are many different Docker images for Laravel development. I want to know which one is the best (fastest)? Best Regards

thusfar's avatar
thusfar's avatar AlexYa10yrs agoServers
1
1
Last reply by AlexYa 10yrs ago
haydenp's avatar

Docker: Mounted Laravel project shows “Index of” list of files/folders in the root

Hi I'm new to Docker and would love a little assistance on this ... I have a Dockerfile (see below). If I copy it into a Laravel project and build an image, then run it in a container - all works correctly. As I will be actively working on the Laravel project, this is not ideal. So instead I try mount the Laravel project into an image made from Dockerfile alone, it doesn't wor

haydenp's avatar
haydenp's avatar vitor.carr...9yrs agoGeneral
1
1
Last reply by [email protected] 9yrs ago
marjanristicevic's avatar

Netbeans xdebug docker path mapping

I'm on windows 8.1 using laradock as submodule in laravel 5.1 project,all default folder structure. Reloading site is triggering xdebug inside docker vm, execution is paused, but I suspect Netbeans breakpoint line isn't sent accurate due to path mapping so keeps waiting for connection for ever. Here are the paths: Windows: url request at: http://dev.app/?XDEBUG_SESSION_START=n

marjanristicevic's avatar
marjanristicevic's avatar marjanrist...10yrs agoLaravel
1
1
Last reply by marjanristicevic 10yrs ago
Mithridates's avatar

Docker series

We have already reviewed vagrant for several times, I get hearing about docker and kubernetes. I would like to ask for a series for using docker and specifically kubernetes. +1 if you like to.

Mithridates's avatar
Mithridates's avatar garrys076yrs agoRequests
103
651
Last reply by garrys07 6yrs ago
sunrise's avatar

Docker image of PHP7.0:cli,fpm,zts,which version should I choose?

I need to download a PHP 7.0 image to bulid a website,there are 3 versions on Docker Hub, https://hub.docker.com/_/php/ cli,fpm,zts, 7.0.4-cli, 7.0-cli, 7-cli, cli, 7.0.4, 7.0, 7, latest (7.0/Dockerfile) 7.0.4-fpm, 7.0-fpm, 7-fpm, fpm (7.0/fpm/Dockerfile) 7.0.4-zts, 7.0-zts, 7-zts, zts (7.0/zts/Dockerfile) What are the differences? Which version should I choose?

sunrise's avatar
sunrise's avatar sunrise10yrs agoServers
0
1
bert_teng's avatar

Environment variables problem in Docker

Hi everyone, I'm having trouble working with environment variables in Docker. For some reason Laravel can't see the environment variables I set within Dockerfile. Like APP_KEY, APP_ENV, etc. But when I SSH into the docker container: docker exec -it [container_name] bash and run the following: php artisan tinker > print_r($_ENV) The environment variable exists and is set to

bert_teng's avatar
bert_teng's avatar bert_teng10yrs agoLaravel
0
1
primordial's avatar

homestead/vagrant versus docker

We've started to use docker at work and wondered if there were any plans to move away from recommending homestead/vagrant and adopt Docker with an official image? Laravel has always been a trail-blazer and docker would appear to be the way forward. There are plenty of Laravel/ Docker images already but I've not seen anything official. Just thinking out loud.

primordial's avatar
primordial's avatar bashy8yrs agoLaravel
5
1
Last reply by bashy 8yrs ago
clemengermelbourne's avatar

Scaling laravel horizontally with Docker

I believe docker offers massive advantages over the typical vagrant / homestead workflow. Both in development, testing, staging and production. All environments are the same with docker, you are always in production. Read up on how easy it is to scale horizontally with docker-compose on my article: (view article here)[http://is.gd/sE94Jd] Try doing developing with a scaled ar

clemengermelbourne's avatar
clemengermelbourne's avatar willvincen...10yrs agoGeneral
1
1
Last reply by willvincent 10yrs ago
Mithridates's avatar

Any body used Docker?

Has any body used docker for Laravel development or general web-dev? If so, How's that different from Vagrant?

Mithridates's avatar
Mithridates's avatar Mithridate...10yrs agoGeneral
0
1
dancourse's avatar

Gitlab CI, Homestead & Docker

Hello Laravelians', I'm trying to get Gitlab CI working for my Laravel 5.0 project but I'm a bit stuck! Anyone got an example Laravel gitlab-ci.yaml file they could share? Here's one I'm trying but I'm a bit stuck, I think maybe I need to do something with with the image, however I keep just getting an error saying it doesn't know PHP?! Thank you! DanC php -v bash: line 27: php

dancourse's avatar
dancourse's avatar nanosoluti...8yrs agoTesting
3
1
Last reply by nanosolutions 8yrs ago
Putheaengineer's avatar

Docker with Laravel

Can anyone give me the instruction. How to use docker with laravel ?

Putheaengineer's avatar
Putheaengineer's avatar ZimrisNepa...9yrs agoLaravel
3
1
Last reply by ZimrisNepal 9yrs ago
amcsi's avatar

Laravel and Docker

Please make a video series about using Laravel with docker! It could be about what the recommended container setup would be for a Laravel project, how migrations would be handled, how the queue would be handled etc. Docker is becoming exponentially popular at this time and it would be awesome to see a video series about it here to kickstart my knowledge

amcsi's avatar
amcsi's avatar bobbybouwm...10yrs agoRequests
1
1
Last reply by bobbybouwmann 10yrs ago
ericahernandez573's avatar

can I put password to my docker app?

hey I want to put password to my docker instance in the VPS because I dont want other programmer get access to my code

ericahernandez573's avatar
ericahernandez573's avatar ericaherna...10yrs agoGeneral
0
1
NoorDeen's avatar

using docker as development env

can docker be alternative for laravel homestead ?

NoorDeen's avatar
NoorDeen's avatar fideloper9yrs agoGeneral
2
1
Last reply by fideloper 9yrs ago
vvinhas's avatar

Is there anyone using Docker with Laravel?

Hi! As some of you may know, Docker (docker.com) is the new sensation out there when you talk about distributed applications. You can have a glance here https://www.docker.com/whatisdocker/ Some people are talking about migrate from Vagrant to Docker, but it's very soon (for me at least) to do such a thing, specially when the team behind it advise not to use it in production.

vvinhas's avatar
vvinhas's avatar aurawindsu...8yrs agoGeneral
9
1
Last reply by aurawindsurfing 8yrs ago
FireBlade's avatar

Bundled Alpinejs not working in Laravel Docker

I have a fresh new Laravel 9 Jetstream-Livewire app with the node_modules and vendor folders deleted. The NGINX container Dockerfile looks like this: FROM node:22-alpine AS builder WORKDIR /app # Copy Laravel application code COPY ./src/. /app RUN npm install && npm run build FROM nginx:1.21-alpine COPY --from=builder /app/public /var/www/public COPY ./nginx/nginx

FireBlade's avatar
FireBlade's avatar abdul_rehm...2mos agoCode Review
6
13
Last reply by abdul_rehman333 2mos ago
FireBlade's avatar

Images not showing in Laravel Docker production following this guide: https://docs.docker.com/guides/frameworks/laravel/production-setup/#create-a-dockerfile-for-nginx-production

This is my NGINX production Dockerfile : FROM debian AS builder # Install Node.js and build tools RUN apt-get update && apt-get install -y --no-install-recommends \ curl \ nodejs \ npm \ && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* # Set working directory WORKDIR /var/www # Copy Laravel application code COPY ./src/

FireBlade's avatar
FireBlade's avatar simotion4mos agoDevOps
3
10
Last reply by simotion 4mos ago
Ludo237's avatar

Laravel+Inertia in docker container doesn't work

Hi I've installed and configured the new Laravel 12 React starter kit with Inertia. I've 0 customization on it, literally just the starter kit. I created a bunch of Dockerfile to host my app, here's the first one for nginx container FROM registry.gitlab.com/custom/company/registry/composer:latest AS installer WORKDIR /var/www COPY ./composer.json . COPY ./composer.lock . RUN

Ludo237's avatar
Ludo237's avatar LaryAI1yr agoInertia
1
1
Last reply by LaryAI 1yr ago
ali-webdev's avatar

I am getting errors running the Bagisto Mobile Ecomm project in Flutter (Android Studio) using GraphQL with a Bagisto backend in a DDEV Docker setup. Should I remove conflicting exports or use aliases? Using Ubuntu OS. Please help!

Package flutter_local_notifications:linux references flutter_local_notifications_linux:linux as the default plugin, but the package does not exist, or is not a plugin package. Ask the maintainers of flutter_local_notifications to either avoid referencing a default implementation via platforms: linux: default_package: flutter_local_notifications_linux or create a plugin named fl

ali-webdev's avatar
ali-webdev's avatar ali-webdev1yr agoLaravel
0
1
skoobi's avatar

Laravel and docker with subdomains

Hi. I have a project that I want to play around with and dockerize, but I’m hitting a few problems that I can’t quite get past. The project uses 2 routes that are subdomains that’s set in the routes/customer.php and routes/admin.php files. They are set to ‘admin.mydomain.test’ and ‘dashboard.mydomain.test’ for local. I’m using the following Docket config https://github.com/vshl

skoobi's avatar
skoobi's avatar Patriciabi...1yr agoLaravel
1
1
Last reply by Patriciabin 1yr ago
jackkitley's avatar

Laravel migrate certificate issues within docker

We run a testing stage within the latest mysql image on jenkins. Inside of that image we run migrations inside the latest project image. This has been running flawlessly for years but it failed last week and i cant seem to understand why. [2024-12-17T14:38:27.360Z] + php artisan migrate '--env=testing' --seed [2024-12-17T14:38:28.379Z] [2024-12-17T14:38:28.379Z] INFO Pre

jackkitley's avatar
jackkitley's avatar RossHike9mos agoLaravel
3
2
Last reply by RossHike 9mos ago
Abror's avatar

Laravel nginx docker

I have installed ssl using certbot. Nginx redirects all reqeusts to https. Only filament logout url not changes <form action="http://host/admin/logout" method="post"> <input type="hidden" name="_token" value="9EKZMen9aXupjROYHPLS1Z9Tyrcw7sarwevHA8OS" autocomplete="off"> <button type="

Abror's avatar
Abror's avatar Abror1yr agoLaravel
0
1
CarbonNanotubes's avatar

CORS issue with Laravel Octane, Vite & Docker

From a brand new project I am trying to setup the basic vite development workflow. I have configure laravel to use octane (FrankenPHP) for the app server, I installed breeze using the Vue + Inertia config and the Dark mode and Inertia SSR options. When loading the root page I get CORS errors. Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote res

CarbonNanotubes's avatar
CarbonNanotubes's avatar CarbonNano...1yr agoVite
3
7
Last reply by CarbonNanotubes 1yr ago
farmanalinovapex's avatar

Laravel Login api adds request Payload in response automatically on PHP Docker

API response includes automatically the request payload along with the expected response. This issue only occurs when the payload is sent in the request body as raw JSON not with form data. This is route for login API and login method in AuthController . Route::group([ 'middleware' => 'api', ], function ($router) { Route::post('login', [AuthController::class, 'login']); });

farmanalinovapex's avatar
farmanalinovapex's avatar farmanalin...1yr agoLaravel
4
2
Last reply by farmanalinovapex 1yr ago
vincent15000's avatar

Docker containers depending on other containers

Hello, I have a problem to run some artisan commands while installing the container. Here is an extract of the docker-compose configuration file. appkey: build: context: . dockerfile: ./docker-services/php.dockerfile container_name: app-appkey volumes: - .:/var/www/html command: ["php", "/var/www/html/artisan", 'key:generate'] working_d

vincent15000's avatar
vincent15000's avatar vincent150...1yr agoGeneral
0
1
totoosa's avatar

Hello, anytime i try to spin up a new laravel project within docker + wsl linux 20.04. My build process get terminated or stops here

this is the response from my terminal, i can't seem to get past this process, is there something broken with my setup and how can i fix such issues. Below is the response i get in my terminal and i'm not doing anything entirely different than following the installation guide included in laravel docs ✔ meilisearch Pulled 2.8s ✔ redis Pulled

totoosa's avatar
totoosa's avatar totoosa2yrs agoLaravel
4
1
Last reply by totoosa 2yrs ago
chithira-kumar's avatar

How to connect laravel application to existing database in Docker

my docker-compose.yml file db: image: mysql:8.0 container_name: test-db restart: unless-stopped command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci environment: MYSQL_ROOT_PASSWORD: example MYSQL_DATABASE: test MYSQL_ROOT_HOST: "%" MYSQL_DATABASE: ${DB_DATABASE} MYSQL_ROOT_PASSWORD: ${DB_P

chithira-kumar's avatar
chithira-kumar's avatar chithira-k...2yrs agoLaravel
0
2
VlerrieBR's avatar

Docker Compose + Laravel Inertia + Vite is extremely slow

Now I know docker-compose can be slower than the sail route but our team prefers it. This is a new project that I'm doing the setup for. When building assets for production using vite the responses are reasonably quick, and when running 'npm run dev' it slows down a bit (still okay) but then when I make changes to any vue files, I'm waiting more than a minute for a response. Is

VlerrieBR's avatar
VlerrieBR's avatar baumgars1yr agoVite
9
11
Last reply by baumgars 1yr ago
camdevius's avatar

The changes in SAIL are not reflected in Docker

I installed a new project with Sail, I've already done all the necessary configuration, and all containers are running correctly. The issue I'm having is when I run sail npm run dev, it shows everything as it should be, but if I make a modification in the code, it's not reflected in the container. Why is that?

camdevius's avatar
camdevius's avatar Cruorzy2yrs agoLaravel
1
1
Last reply by Cruorzy 2yrs ago
JoelVeloz's avatar

SSL ERROR with laravel docker + traefik

Hello, I have a problem publishing a Laravel project, when I dockerize my project and put it through Trafik, the service runs normally, the problem is with the SSL, I want to add the certificates to the project, those configured correctly with Trafik, and my domain it has the certificate "securely", however when I go to a form, 2 things happen. The form redirects me t

JoelVeloz's avatar
JoelVeloz's avatar JoelVeloz2yrs agoLaravel
0
1
kaikelfalcao's avatar

There is a way to make Lumen works with FrakenPHP in Docker?

I'm creating an API that needs to deal with a lot of concurrency and fast responses and I wanted to test using FrakenPHP with Lumen but I couldn't find a way to make it work

kaikelfalcao's avatar
kaikelfalcao's avatar kaikelfalc...2yrs agoPHP
0
1
gnowak's avatar

One Ubuntu server with staging and production environment - Soketi websocket server docker setup

When having multiple Laravel environments on the same server. Is it best practice to have a compose.yml per Laravel environment (staging and production). Or would it be better practice to have a separate environment for Soketi in the "/srv" folder. For example "/srv/soketi-websocket-server" where we would have a single compose.yml and .env file?

gnowak's avatar
gnowak's avatar gnowak2yrs agoServers
4
1
Last reply by gnowak 2yrs ago
Jafo232's avatar

Disable Output Buffering In Vapor (Docker)

I am streaming back text from an AI application and in other environments, this isn't a problem, but when I deploy into vapor, streaming stops working. In other environments, I have had to set "FcgidOutputBufferSize 0" in the fastCGI config to make it work, but I see no real way to do this in Vapor. I can set php.ini settings just fine as prescribed here: https://do

Jafo232's avatar
Jafo232's avatar Jafo2322yrs agoVapor
1
1
Last reply by Jafo232 2yrs ago
tudorr89's avatar

How do you guys wrap your laravel app around docker?

Hi guys! I've recently stumbled upon frankenphp and I wanted to ask you guys how can this be run in a project having queues and scheduler commands? I'm currently running octane wrapped with https://github.com/exaco/laravel-octane-dockerfile and created a container for app/horizon/scheduler. Any tips would be highly appreciated! Happy holidays!

tudorr89's avatar
tudorr89's avatar Braunson2yrs agoDevOps
2
1
Last reply by Braunson 2yrs ago
hansara's avatar

Switching from laravel mix to vite in an old laravel proyect with vue 2 and docker

Hello everyone, I have spent a few days trying to make my application work with vite. I have follow everything the documentation says but I just cant get it to work. The app is build with laravel 9 vue 2 and it is dockerized. I get a message in the console with: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at... and a blank page. I

hansara's avatar
hansara's avatar hansara2yrs agoLaravel
8
1
Last reply by hansara 2yrs ago

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.