Explorar o código

If COMPOSE_FILE is define then set this variable to the container

Signed-off-by: Pascal Vibet <[email protected]>
Pascal Vibet %!s(int64=8) %!d(string=hai) anos
pai
achega
7dafbd1e9c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      script/run/run.sh

+ 1 - 0
script/run/run.sh

@@ -35,6 +35,7 @@ if [ "$(pwd)" != '/' ]; then
     VOLUMES="-v $(pwd):$(pwd)"
 fi
 if [ -n "$COMPOSE_FILE" ]; then
+    COMPOSE_OPTIONS="$COMPOSE_OPTIONS -e COMPOSE_FILE=$COMPOSE_FILE"
     compose_dir=$(realpath $(dirname $COMPOSE_FILE))
 fi
 # TODO: also check --file argument