andrewzah.com/docker-compose -rw-r--r-- 236 bytes View raw
                                                                                
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
export COMPOSE_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$COMPOSE_ROOT"

export COMPOSE_PROJECT_NAME=andrewzah
export COMPOSE_FILE="$(ls -1 services/*/compose.yml | paste -sd ":" -)"

docker-compose "$@"