danjac,
@danjac@masto.ai avatar

I've found the happy space for using Docker in local development is to use it for external services such as databases, Redis etc (as I have to use different versions of e.g. MySQL or PostgreSQL), but use language-specific tools such as pyenv or nvm instead of running your project in a container.

danjac,
@danjac@masto.ai avatar

So for example, for a Python/Django project I use pyenv, virtualenv etc, but I have a docker-compose file to launch Postgres/Redis pinned to whatever versions are running in production.

Running the Python app in a container though is a huge pain (although it's great for production deployment).

danjac,
@danjac@masto.ai avatar

Much of the online argument inevitably devolves to either/or: use Docker for all the things, or not at all, rather than use it for where it is useful.

danjac,
@danjac@masto.ai avatar

In production it's the reverse: Postgres/Redis etc are usually some managed service, but the app itself runs in containers.

danjac,
@danjac@masto.ai avatar

Ofc there may be good reasons to Dockerize your local environment e.g. it uses some external dependencies that are problematic to install locally.

kellogh,
@kellogh@hachyderm.io avatar

@danjac i like to use docker for project dev whenever i feel i’m moving too fast and really just need to spend more time waiting

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • tacticalgear
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • khanakhh
  • Youngstown
  • ngwrru68w68
  • slotface
  • everett
  • rosin
  • thenastyranch
  • kavyap
  • GTA5RPClips
  • cisconetworking
  • JUstTest
  • normalnudes
  • osvaldo12
  • ethstaker
  • mdbf
  • modclub
  • Durango
  • tester
  • provamag3
  • cubers
  • Leos
  • anitta
  • megavids
  • lostlight
  • All magazines