r/webdev • • Oct 22 '26

do you actually use your local dev environment anymore or is everything containers/cloud now

been thinking about this lately. when I started out I had this whole local setup with postgres and redis running natively, custom shell scripts to spin things up, the works. felt like I really understood how everything fit together.

now most of my work is docker compose up and done. or worse, connecting to shared dev environments in the cloud. faster to get going but sometimes I wonder if Im losing something by not having to debug my own postgres config anymore

curious where everyone else landed on this. do you still run stuff locally or has containers/cloud completely taken over your dev workflow

1 Upvotes

24 comments sorted by

18

u/mylsotol Oct 22 '26

Yes except the cloud part. Why would anyone develop using containers in the cloud (unless you are working on something is just super computationally intensive)

3

u/barrel_of_noodles Oct 24 '26

Alot of teams split by geography use cloud infra for testing envs or direct fiber to shared environments. Its more common in areas with security, or preventing leaks. Nothing leaves the premise, nothing runs on a local machine. Your usually on a locked down cloud terminal with redhat.

→ More replies (1)

10

u/enki-42 Oct 22 '26

Still use my local environment - Every time I try docker for local development it's not quite there. The setup is easy, yes, but the developer experience is never great, there's always awkwardness getting into a container to run a console or file editing is sluggish or it's hard to run a DB query or something else.

7

u/erik240 Oct 28 '26

I don’t want to be a jerk but this is definitely more a you problem than a container one.

Don’t use the production dockerfile locally - add in whatever tools to the image make you most comfortable. Mount the host OS directories so editing a file on your computer OS is directly reflected in the container.

Opening a shell to the container is one command and you can create a macro to pattern match the current container from a base name if you’re not using something like docker desktop.

6

u/Multisensoryexp1 Oct 25 '26

What is not great about the developer experience? Getting into a container is as easy as ps | grep then exec, and in my experience, the shell is as fast as my local environment.  And difficult to run a db query? That's part of the setup step. Expose it to a local port, connect via your preferred dbms.

3

u/LutimoDancer3459 Oct 22 '26

Db and other apps that are somehow connected run in docker. The app is develop runs locally from the IDE. But running applications in docker has the benefit of NOT debugging the config. Nothing that i am missing at all

3

u/Vegetable-Capital-54 Oct 22 '26 edited Oct 22 '26

I still use local dev environment. I run Debian both on my desktop and servers and keep everything up to date, so I don't really feel any need for containers, they just add overhead. Also I don't have many projects, just a handful that I run for many years and built them from scratch myself, so it's not difficult to track dependencies and versions. Containers make more sense when you have many people working on many projects requiring different software stacks and versions.

I also don't use containers or cloud for production, just dedicated "bare-metal" servers running Debian.

3

u/DesertWanderlust Oct 22 '26

I grew up doing local dev and still keep my environment prepped for it, to an extent. It gets annoying with more complex configurations, so I really look at it on a case-by-case basis. If it requires a different OS, I'll do it on a VM.

0

u/[deleted] Oct 22 '26

[deleted] — view deleted comment

3

u/AdministrativeBad752 Oct 22 '26

Yep my redis and local postgresql are starting to be the bottleneck ...