Livewire in docker

What seems to be the problem:
Can I install livewire when the laravel is running in docker?
The laravel install docs suggest using docker. I have the test project created, the docker image running and localhost works.
Now I want to install livewire but that install utilizes composer.
Not sure where to go next or what I am missing.
I’m running this on a mac.

Steps to Reproduce:

Are you using the latest version of Livewire:

Do you have any screenshots or code examples:

I’m hoping you’ve figured this out for yourself by now.

Yes :man_facepalming:, you can run laravel & livewire in docker.

Docker is just a virtual hosting environment, it’s literally a pretend web server running on your mac, using it has almost no bearing on what you can add to a Laravel install. ( unless you specifically need an external service, eg. redis, elasticsearch which you’d have to add to your docker stack unless they’re already installed and configured ).

You install livewire into your laravel project just as you would normally using composer, again though you might have to do this inside the docker environment, for it to be added to the vendor directory correctly. If you’re using a prebuild docker environment like laravel/sail, go read the docs for it, its covered there.

https://laravel.com/docs/8.x/sail#executing-composer-commands

Thank you much. This really helps. I saw the laravel sail thing, but it didnt make sense until your explanation.
-rp