Skip to content

docs: fix certbot environment variable instructions - #465

Merged
robtme merged 2 commits into
robtme:mainfrom
Walther:fix-certbot-environment-variables
Oct 6, 2026
Merged

robtme merged 2 commits into
robtme:mainfrom
Walther:fix-certbot-environment-variables

Conversation

@Walther

@Walther Walther commented Apr 2, 2026 •

Copy link
Copy Markdown
Contributor

Variable interpolation for the compose file itself requires the values to be defined outside the file, for example in a .env file, or exported in the shell

https://docs.docker.com/compose/how-tos/environment-variables/variable-interpolation/

With the original instructions, you would just get problems like

WARN[0000] The "DOMAIN" variable is not set. Defaulting to a blank string.
WARN[0000] The "DOMAIN" variable is not set. Defaulting to a blank string.
WARN[0000] The "CERTBOT_MAIL" variable is not set. Defaulting to a blank string.
WARN[0000] The "DOMAIN" variable is not set. Defaulting to a blank string.

Docker Compose version v5.0.0, Debian 13.2

Walther and others added 2 commits April 3, 2026 00:13
variable interpolation for the compose file itself requires the values
to be defined outside the file, for example in a `.env` file, or
exported in the shell

https://docs.docker.com/compose/how-tos/environment-variables/variable-interpolation/
@robtme
robtme merged commit 11e03a5 into robtme:main Oct 6, 2026
2 checks passed
@robtme

robtme commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Sorry this sat for so long, thank you @Walther!

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