How to alias environment variables? #1337
Unanswered
guillaumebriday
asked this question in
Q&A
Replies: 1 comment 4 replies
-
You do that with tags at the top level: env:
clear:
MYSQL_USER: app
secret:
- MYSQL_PASSWORD
tags:
monitoring:
MYSQL_USER: monitoring
replica:
clear:
MYSQL_USER: readonly
secret:
- READONLY_PASSWORD https://kamal-deploy.org/docs/configuration/environment-variables/#example-configuration |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The documentation specifies that tags can be used to assign additional variables to particular hosts: https://kamal-deploy.org/docs/configuration/environment-variables/.
However, I need to use a specific name for my environment variable because the PostgreSQL container requires it—in my case,
POSTGRES_PASSWORD
.I intend to deploy two PostgreSQL instances, each with a different password, while keeping the environment variable name consistent.
Below is a simplified version of my deployment configuration file:
Do you know if it possible?
Beta Was this translation helpful? Give feedback.
All reactions