Develop in Docker on Mac
-
Hi guys,
Right now i have Node, Redis Server, Postgres installed on my Mac and it works fine.
When i was working with PHP projects i didn’t want to bloat my Mac with PHP so i used Docker and i was all good.
Now to my questions.
-
I see there are a Docker extension for VSCode and i wonder if i have something to gain by doing my Node development in Docker containers?
-
When running multiple processes(different sites) on localhost i get problems with to large cookie/local storage so i use Mamp Pro (that i use for simpler PHP projects) to make VirtualHosts so i can use www.site instead of localhost:xxxx. This way i don´t have the problem with to large cookie/local storage. Is this something i would solve using Docker?
Thank you.
-
-
Hi @PeterQF
This is not really Quasar related, but anyway, this is an interesting question.For local development, I highly recommand Lando (https://lando.dev/). I’m using it since 1 year now, and I love it.
Lando is a sort of Docker orchestrator. It builds & launches all needed containers for a projet, plus a reverse proxy container that allow you to have multiple websites on localhost.For the VSCode Docker extension, I’ve installed it, but never used it
So, I can’t really answer on that.
-
Yes, i´m sorry @tof06 . I know this is more of a general dev question.
Thank you so much for pointing me at lando. i Will look into it.
Would you say lando is kind of a “Mamp Pro” for Node dev?
Can one use lando with VSCode as usual?
I see there is a extension that Provides a vscode ui for the development tool lando. Do you use it?
-
@PeterQF said in Develop in Docker on Mac:
Would you say lando is kind of a “Mamp Pro” for Node dev?
Well, I don’t really know Mamp Pro, since I’m working on Linux ;), but I would say Yes, except you don’t have a GUI and all commands are CLI.
But once you learned Lando and know how to manage your containers, you can do everything you want without installing any local tool (except lando of course)@PeterQF said in Develop in Docker on Mac:
Can one use lando with VSCode as usual?
Yes. The project directory will be mounted automatically in containers, so, you can use VSCode with local filesystem
@PeterQF said in Develop in Docker on Mac:
I see there is a extension that Provides a vscode ui for the development tool lando. Do you use it?
Oh, didn’t know a such extension has been published. I’ll have a look.
-
@tof06 , Lando with VSCode UI looks really interesting.
Not sure about the structure though, do you use a .lando.yml for each project/site. i would like to have a “top Lando” with like Node, PG, Redis and then in subfolders be able to use the same node, redis, PG. Is this possible?
Do you by any chanse have a .lando.yml to chare for Quasar just to get the hang of it?