Pārlūkot izejas kodu

If COMPOSE_FILE is define then set this variable to the container

Signed-off-by: Pascal Vibet <[email protected]>
Pascal Vibet 8 gadi atpakaļ
vecāks
revīzija
c9ff9023b2
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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