Skip to content

Commit

Permalink
Merge pull request #69 from basecamp/env-host-expansion
Browse files Browse the repository at this point in the history
Inject deploy host env variables
  • Loading branch information
djmb authored May 2, 2024
2 parents 945f10d + d5aa47c commit f663411
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/configuration/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,15 @@ If the referenced secret ENVs are missing, the configuration will be halted with

**Note:** Marking an ENV as secret currently only redacts its value in the output for Kamal. The ENV is still injected in the clear into the container at runtime.

## [Injecting env variables from the host](#injecting-env-variables-from-the-host)

You can inject variables from the deploy host with the ${} syntax:

```yaml
env:
DATACENTER: "${DATACENTER}"
```

## [Using Kamal env variables](#using-kamal-env-variables)

The following env variables are set when your container runs:
Expand Down

0 comments on commit f663411

Please sign in to comment.