diff --git a/website/source/docs/jobspec/index.html.md b/website/source/docs/jobspec/index.html.md index aa1aba33b..173cd041b 100644 --- a/website/source/docs/jobspec/index.html.md +++ b/website/source/docs/jobspec/index.html.md @@ -45,6 +45,11 @@ job "my-service" { config { image = "hashicorp/web-frontend" } + env { + DB_HOST = "db01.example.com" + DB_USER = "web" + DB_PASSWORD = "loremipsum" + } resources { cpu = 500 memory = 128 @@ -166,6 +171,9 @@ The `task` object supports the following keys: to start the task. The details of configurations are specific to each driver. +* `env` - A map of key/value representing environment variables that + will be passed along to the running process. + * `resources` - Provides the resource requirements of the task. See the resources reference for more details.