Skip to content

Commit 0e9e8ae

Browse files
committed
docs: pass -T when the env file arrives on stdin
The documented check reads the file from stdin, but `docker compose run` asks for a TTY unless told not to. Older Compose versions then fail with "the input device is not a TTY" and the operator never sees the report -- which is the one command this feature exists to offer. Newer versions detect the redirect and work either way, so the omission survives a local test and only shows up on the server.
1 parent 815e978 commit 0e9e8ae

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.env.example

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
# effective value and source of every key, names any key that nothing reads, and
88
# says which features are off and what is missing:
99
#
10-
# docker compose run --rm portal config --env-file /dev/stdin < .env
10+
# docker compose run --rm -T portal config --env-file /dev/stdin < .env
11+
#
12+
# -T because the file arrives on stdin. Without it Compose asks for a TTY and
13+
# older versions fail with "the input device is not a TTY".
1114
#
1215
# API_PORT and SNI_PORT are deliberately absent. The bundled topology fixes them
1316
# at 4017 and 443 because the relay reaches its own API listener through its SNI

0 commit comments

Comments
 (0)