Skip to content

Instantly share code, notes, and snippets.

@Neppord
Created May 10, 2015 16:13
Show Gist options
  • Save Neppord/2c2be5989012dad1949d to your computer and use it in GitHub Desktop.
Save Neppord/2c2be5989012dad1949d to your computer and use it in GitHub Desktop.

Revisions

  1. Neppord created this gist May 10, 2015.
    11 changes: 11 additions & 0 deletions compose
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    #! /usr/bin/env bash
    set -e

    (
    __DIR="$PWD"
    while [ "$__DIR" != "/" ] && [ ! -e "${__DIR}/docker-compose.yml" ]; do
    __DIR=`dirname "$__DIR"`
    done
    cd "$__DIR"
    docker-compose $*
    )