Docker agent configuration
This reference describes the various configuration options Dagster+ currently supports for Docker agents.
Environment variables and secrets
Using the docker.env_vars property in container_context.yaml, you can include environment variables and secrets in the Docker container associated with a specific code location. For example:
# container_context.yaml
docker:
env_vars:
- DATABASE_NAME
- DATABASE_USERNAME=hooli_testing
The docker.env_vars property is a list, where each item can be either KEY or KEY=VALUE. If only KEY is specified, the value will be pulled from the local environment.
Refer to the following guides for more info about environment variables: