Environments
Introduced in v1.7.0
ZaneOps supports complex development workflows through environments, giving you isolated instances of all services in a project. When you create a project, by default it comes with a production environment, you cann’t rename or delete that environment.
Create an Environment
Section titled “Create an Environment”-
In the project environments page
+ New Environment
-
Choose which type of environment to create :
-
If you select one environment in the
Clone Environmentdropdown, it will creates a copy of the selected environment, including services, variables, and configurations.- If you check
deploy services ?all the services will be deployed upon cloning - If you don’t check
deploy services ?, all services and their configuration will be staged for deployment, You will need to review and deploy manually all the staged changes.
- If you check
-
If you don’t select any environment in the dropdown, it will create an empty environment with no services in it.
-
Shared Environment variables
Section titled “Shared Environment variables”Shared variables are inherited by all the services in this environment.
If a service has the same variable, that will take precedence over the variable defined in this environment.
You can reference these variables in services with {{env.VARIABLE_NAME}}.

ZaneOps will automatically replace the variable in the service :
