From b42d987e19d4b8b7bb200a5dbb2e6f748e75bec6 Mon Sep 17 00:00:00 2001 From: Antoine POPINEAU Date: Thu, 1 Oct 2015 13:59:23 +0200 Subject: [PATCH] Updated website documentation. --- website/source/docs/jobspec/index.html.md | 8 ++++++++ 1 file changed, 8 insertions(+) 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.