Skip to content

Instantly share code, notes, and snippets.

@AdamBien
Last active April 3, 2023 16:40
Show Gist options
  • Save AdamBien/ab8b773336a30dd543af03b62c4a2a0d to your computer and use it in GitHub Desktop.
Save AdamBien/ab8b773336a30dd543af03b62c4a2a0d to your computer and use it in GitHub Desktop.
109thAirhacksQ&A.md
@FabianUntermoser
Copy link

Hi Adam!

What is your preferred approach when working with multiple containerized services? In regards to building/running when having a local development as well as a production environment.

In a current project I have

  • Multi stage Dockerfile for local development and a Production build
  • docker-compose yml file for production (self hosted docker server)
  • docker-compose.dev.yml file for local development using volume mounts
  • gitignored .env file to bootstrap configuration for local dev & prod
  • additionally I often add a makefile to simplify build commands such as when working with docker-compose file with overrides

When working with the cloud or K8s, separation between local and production is more clear. I often see an infrastructure repository with K8s or helm files. But here I'm trying to minimise setup/configuration in all environments.

What is your experience and what kind of setups do you usually see?

@muescha
Copy link

muescha commented Apr 3, 2023

Spring Boot App: Pro/Cons for switching from Java to Kotlin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment