From e6c5abe1841d9876159f5716c377867733f3b8ac Mon Sep 17 00:00:00 2001 From: Yax <1949284+kianby@users.noreply.github.com> Date: Wed, 10 Nov 2021 07:38:35 +0100 Subject: [PATCH] update doc --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 252fa06..f4e4303 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,14 @@ My server installation recipes. -Inspired from https://github.com/tomMoulard/make-my-server +(Inspired from https://github.com/tomMoulard/make-my-server) + +Override docker-compose command to manage separate docker-compose.yml files (non executable YAML files are ignored). ```bash +export DOCKER_COMPOSE_BIN='/usr/bin/docker compose' docker-compose () { - /usr/local/bin/docker-compose $(find -name 'docker-compose*.yml' -type f -printf '%p\t%d\n' 2>/dev/null | sort -n -k2 | cut -f 1 | awk '{print "-f "$0}') $@ + $DOCKER_COMPOSE_BIN $(find -name 'docker-compose*.yml' -type f -perm -u+x -printf '%p\t%d\n' 2>/dev/null | sort -n -k2 | cut -f 1 | awk '{print "-f "$0}') $@ } ```