Skip to content

Commit 70a59ed

Browse files
[DOCS] Docker Compose version Attribute Deprecation
Please check here for more details: https://docs.docker.com/reference/compose-file/version-and-name/#version-top-level-element-obsolete
1 parent 1015353 commit 70a59ed

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Documentation/Installation/ApplicationContext.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,23 @@ path with the following content:
5757
.. literalinclude:: _ApplicationContext/_docker-compose.context.yaml
5858
:caption: [project root]/.ddev/docker-compose.context.yaml
5959

60+
.. Hint::
61+
Starting from `Docker Compose 1.27.0`, the version attribute in `docker-compose.context.yaml`
62+
files has been deprecated and is no longer required. Docker Compose now automatically
63+
selects the appropriate version based on the configuration and features used in your file.
64+
65+
66+
Example (If you're using Docker Compose 1.27.0 or newer)
67+
68+
.. code-block:: bash
69+
70+
services:
71+
web:
72+
environment:
73+
- TYPO3_CONTEXT=Development/Local
74+
75+
.. _development-settings:
76+
6077
Restart DDEV using
6178

6279
.. code-block:: bash

0 commit comments

Comments
 (0)