From c6693f56cb05dc9f80bf95bb9f203277a8067277 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Fri, 15 Feb 2019 23:13:01 +0100 Subject: [PATCH] fix: ``run-once`` service relying on sub-services would not have there sub-service called. For instance ``letsencrypt`` would rely on ``cron``, and if not explicitely mentionned in base of ``compose.yml``, ``compose up`` would not launch ``cron``. --- bin/compose-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/compose-core b/bin/compose-core index fb1636b..72fcd1e 100755 --- a/bin/compose-core +++ b/bin/compose-core @@ -3969,7 +3969,7 @@ if [ "$is_docker_compose_action" -a "${#services_args[@]}" -gt 0 ]; then services=($(get_master_services "${services_args[@]}")) || exit 1 if [ "$action" == "up" ]; then ## remove run-once - for service in "${services_args[@]}"; do + for service in $(get_ordered_service_dependencies "${services_args[@]}"); do type="$(get_service_type "$service")" || exit 1 if [ "$type" != "run-once" ]; then action_posargs+=("$service")