update doc

This commit is contained in:
Yax 2021-11-10 07:38:35 +01:00
parent 9c8ba7d96f
commit e6c5abe184

View file

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