mirror of
https://github.com/moghtech/komodo.git
synced 2026-05-07 02:16:06 -05:00
[GH-ISSUE #716] [FEATURE REQUEST] Ability to edit .env files via the UI #6279
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @GentleHoneyLover on GitHub (Aug 7, 2025).
Original GitHub issue: https://github.com/moghtech/komodo/issues/716
It would be very useful to be able to edit .env files for each stack the same way we can edit compose.yml files:
Currently, if I need to manipulate the .env files I have to be SSHing into the host and editing the files via vim. If this feature is implemented, one could be editing both compose.yml and .env files without ever leaving the Komodo UI.
Thanks!
EDIT: For clarification, the feature request is about having an
.envfile editable both from the Komodo UI and directly from the host (e. g. via ssh). Just like it is withcompose.yml. The source of ".env truth", therefore, is stored in the.envfile on disk rather than in the Komodo DB.@thundernode commented on GitHub (Aug 14, 2025):
If you visit the Config tab for your stack you will find the Environment section where should be able to store and edit your .env file

You can save secrets and variables like this as well https://komo.do/docs/variables.
@GentleHoneyLover commented on GitHub (Aug 14, 2025):
@thundernode, thanks! The way I setup all my stacks is I import existing files from pre-existing locations on the host. Each of my stacks has one
.envfile in the same folder withcompose.yaml. It works well in a sense that I can control my stacks both, from Komodo and via ssh. When an existing stack gets imported, the contents of the pre-existing.envfile doesn't get pulled into the Komodo UI though (e. g., the Environment section is empty for all of my stacks). The environment variables themselves are recognized by the docker compose itself correctly — they are just not present in the UI for me.Is it a bug or a feature? Or am I missing something? :)
@nisrael commented on GitHub (Aug 15, 2025):
I am using the same workflow as @GentleHoneyLover.
Based on my understanding, here's how it currently works in Komodo: the contents of the environment field are stored in the database directly after clicking Save but it is written to the Env File Path only after clicking the Redeploy link, but before the actual docker compose commands execute. The filename is also passed via CLI.
I would prefer it to work the same way as the compose file does in "files on server" mode, where the contents are read from and written to the default .env file.
Since the filename is passed to the CLI anyway, it would be possible to support both workflows: one field to show and edit .env file contents, and another field for additional variables with a filename that is not .env.
@GentleHoneyLover commented on GitHub (Aug 15, 2025):
@nisrael just described the essence of my feature request :)
@mbecker20 commented on GitHub (Aug 24, 2025):
https://github.com/moghtech/komodo/releases/tag/v1.19.1