App Templates: How to handle optional environment variables? #12562
Unanswered
technorabilia
asked this question in
Help
Replies: 3 comments
-
I'm wondering if this is a viable workaround or the recommended way to do this:
Any feedback is appreciated. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Any other options available? Or is this the only way? Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Apparently this is a bug in the latest Portainer releases? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Ask a Question!
I only want to set the environment variable if necessary, similar to the JAVA_OPTS variable that you see below, which is only needed when adding something; otherwise, it shouldn't be set at all.
What App template JSON format should I use for this?
I use the following App template URL:
https://raw.githubusercontent.com/technorabilia/test/main/templates-3.0.json
For Airsonic-advanced I have the following environment variables:
From the App template JSON file which is clearly wrong because I cannot get rid of the variable in the UI:
Beta Was this translation helpful? Give feedback.
All reactions