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}') $@ } ```