From a9803cd2b3731aa6135969f9e415e24fdc6bf5d5 Mon Sep 17 00:00:00 2001 From: Allie Sadler <102604716+aevesdocker@users.noreply.github.com> Date: Mon, 11 Aug 2025 13:58:28 +0100 Subject: [PATCH] Issue triage (#23228) ## Description Closes https://github.com/docker/docs/issues/23222 Closes https://github.com/docker/docs/issues/23223 ## Related issues or tickets ## Reviews - [ ] Technical review - [ ] Editorial review - [ ] Product review --- .../compose/how-tos/environment-variables/envvars.md | 10 ++++++++++ content/manuals/retired.md | 1 + 2 files changed, 11 insertions(+) diff --git a/content/manuals/compose/how-tos/environment-variables/envvars.md b/content/manuals/compose/how-tos/environment-variables/envvars.md index f17aa2b9f2..25ed517d21 100644 --- a/content/manuals/compose/how-tos/environment-variables/envvars.md +++ b/content/manuals/compose/how-tos/environment-variables/envvars.md @@ -24,6 +24,7 @@ This page explains how to set or change the following pre-defined environment va - `COMPOSE_ANSI` - `COMPOSE_STATUS_STDOUT` - `COMPOSE_ENV_FILES` +- `COMPOSE_DISABLE_ENV_FILE` - `COMPOSE_MENU` - `COMPOSE_EXPERIMENTAL` - `COMPOSE_PROGRESS` @@ -123,6 +124,15 @@ COMPOSE_ENV_FILES=.env.envfile1, .env.envfile2 If `COMPOSE_ENV_FILES` is not set, and you don't provide `--env-file` in the CLI, Docker Compose uses the default behavior, which is to look for an `.env` file in the project directory. +#### COMPOSE\_DISABLE\_ENV\_FILE + +Lets you disable the use of the default `.env` file. + +- Supported values: + - `true` or `1`, Compose ignores the `.env` file + - `false` or `0`, Compose looks for an `.env` file in the project directory +- Defaults to: `0` + ### Environment handling and container lifecycle #### COMPOSE\_CONVERT\_WINDOWS\_PATHS diff --git a/content/manuals/retired.md b/content/manuals/retired.md index c99eec578f..a1fc9e878e 100644 --- a/content/manuals/retired.md +++ b/content/manuals/retired.md @@ -67,6 +67,7 @@ aliases: - /desktop/features/dev-environments/set-up/ - /desktop/features/dev-environments/share/ - /desktop/features/dev-environments/dev-cli/ + - /desktop/dev-environments/ --- This document provides an overview of Docker features, products, and