mirror of
https://github.com/docker/compose.git
synced 2025-12-08 06:20:04 +01:00
If COMPOSE_FILE is define then set this variable to the container
Signed-off-by: Pascal Vibet <pvibet@gmail.com>
This commit is contained in:
parent
d2a8a9edaa
commit
c9ff9023b2
@ -35,6 +35,7 @@ if [ "$(pwd)" != '/' ]; then
|
|||||||
VOLUMES="-v $(pwd):$(pwd)"
|
VOLUMES="-v $(pwd):$(pwd)"
|
||||||
fi
|
fi
|
||||||
if [ -n "$COMPOSE_FILE" ]; then
|
if [ -n "$COMPOSE_FILE" ]; then
|
||||||
|
COMPOSE_OPTIONS="$COMPOSE_OPTIONS -e COMPOSE_FILE=$COMPOSE_FILE"
|
||||||
compose_dir=$(realpath $(dirname $COMPOSE_FILE))
|
compose_dir=$(realpath $(dirname $COMPOSE_FILE))
|
||||||
fi
|
fi
|
||||||
# TODO: also check --file argument
|
# TODO: also check --file argument
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user