Skip to content

docs: Adds warning for env injection in docker-compose#131

Merged
Siumauricio merged 2 commits intoDokploy:mainfrom
HPaulson:hp/docs-env-fix
Feb 16, 2026
Merged

docs: Adds warning for env injection in docker-compose#131
Siumauricio merged 2 commits intoDokploy:mainfrom
HPaulson:hp/docs-env-fix

Conversation

@HPaulson
Copy link
Copy Markdown
Contributor

This PR updates the documentation to make it clear that environment variables set in the Dokploy UI are not automatically injected into containers, unlike commercial alternatives. The has been widely confusing:

This docs change serves as a temporary solution to the above confusion, allowing users can find an answer on the official docs rather than hunting down closed GitHub issues/discussions. However, a complete fix should include:

  1. A warning in UI on the variables tab; Or, preferably,
  2. Automatic injection of the variables by modifying the docker-compose file (this is already done for Traefik labels, so I'm unsure why it couldn't be done here)

Both of which have been suggested in the issues listed above.

Screenshot of docs fix:

Screenshot 2026-02-10 at 20 15 05

- Updated the documentation to specify two methods for injecting environment variables into containers: using the `env_file` option to load all variables or referencing specific variables with the `${VAR_NAME}` syntax.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants