Version: 4.13

Dev vs Staging vs Production

To configure the differences between development, staging and production environments, there are several techniques which may be used separately or combined in certain use cases:

  • For image building:
    1. Using different Dockerfiles for each environment
    2. Using the same Dockerfile and:
  • For deployments:
    1. Using a different cmd and/or args for your containers depending on the environment
    2. Using a different image name or image tag for your containers depending on the environment
    3. Setting different env variables for your containers depending on the environment

No matter which options are working for your use case, the following DevSpace features will allow you to set up the desired differences: