Skip to content

Commit 12a81c8

Browse files
committed
2024-03-24 docker-compose.yml - old-menu branch - PR 2 of 2
From and including `docker-compose-plugin` v2.25.0, the `version:` clause is deprecated. Commands now produce the following warning: ``` WARN[0000] /home/pi/IOTstack/docker-compose.yml: `version` is obsolete ``` This PR removes from the menu, the lines of code involved in generating the `version:` clause. Most users will likely need to hand-edit their compose files to remove the clause. Signed-off-by: Phill Kelley <[email protected]>
1 parent 76628e7 commit 12a81c8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

menu.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ DOCKER_COMPOSE_YML=./docker-compose.yml
1414
DOCKER_COMPOSE_OVERRIDE_YML=./compose-override.yml
1515

1616
# Minimum Software Versions
17-
COMPOSE_VERSION="3.6"
1817
REQ_DOCKER_VERSION=18.2.0
1918
REQ_PYTHON_VERSION=3.6.9
2019
REQ_PYYAML_VERSION=5.3.1
@@ -489,7 +488,6 @@ case $mainmenu_selection in
489488
touch $TMP_DOCKER_COMPOSE_YML
490489

491490
echo "---" > $TMP_DOCKER_COMPOSE_YML
492-
echo "version: '$COMPOSE_VERSION'" >> $TMP_DOCKER_COMPOSE_YML
493491
echo "services:" >> $TMP_DOCKER_COMPOSE_YML
494492

495493
#set the ACL for the stack

0 commit comments

Comments
 (0)