Skip to content

docs: fix certbot environment variable instructions#465

Open
Walther wants to merge 1 commit intowolveix:mainfrom
Walther:fix-certbot-environment-variables
Open

docs: fix certbot environment variable instructions#465
Walther wants to merge 1 commit intowolveix:mainfrom
Walther:fix-certbot-environment-variables

Conversation

@Walther
Copy link
Copy Markdown

@Walther Walther commented Apr 2, 2026

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

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/
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.

1 participant