2020-06-27 14:54:16 +02:00
|
|
|
# Hosting
|
2020-07-07 07:50:53 +02:00
|
|
|
|
2021-11-11 10:33:30 +01:00
|
|
|
My server installation recipes (Inspired from https://github.com/tomMoulard/make-my-server)
|
2020-07-07 07:50:53 +02:00
|
|
|
|
2021-11-11 10:33:30 +01:00
|
|
|
Bash function to override docker-compose command and manage multiple docker-compose.yml files (non executable YAML files are ignored).
|
2020-07-07 07:50:53 +02:00
|
|
|
|
|
|
|
|
```bash
|
2021-11-10 07:38:35 +01:00
|
|
|
export DOCKER_COMPOSE_BIN='/usr/bin/docker compose'
|
2020-07-07 07:50:53 +02:00
|
|
|
docker-compose ()
|
|
|
|
|
{
|
2021-11-10 07:38:35 +01:00
|
|
|
$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}') $@
|
2020-07-07 07:50:53 +02:00
|
|
|
}
|
|
|
|
|
```
|