Browse Source

new: [compose] provide ``$HOST_COMPOSE_YML_FILE`` location

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
cache-relation 1.5.7
Valentin Lab 4 years ago
parent
commit
7b2c1b73ac
  1. 1
      bin/compose

1
bin/compose

@ -915,6 +915,7 @@ mk_docker_run_options() {
docker_path=/var/lib/compose/root/${parent_dir##*/}/${compose_file##*/}
docker_run_opts+=(
"-e" "COMPOSE_YML_FILE=${compose_file##*/}"
"-e" "HOST_COMPOSE_YML_FILE=${local}"
"-v" "${local}:${docker_path}:ro"
"-w" "${docker_path%/*}"
)

Loading…
Cancel
Save