update doc
This commit is contained in:
parent
9c8ba7d96f
commit
e6c5abe184
1 changed files with 5 additions and 2 deletions
|
@ -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}') $@
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue