From 927ea24b04697c301dce505b7ac7292f3736cb3d Mon Sep 17 00:00:00 2001 From: Roman Anasal Date: Wed, 27 Jan 2021 14:40:54 +0100 Subject: [PATCH 1/2] Fix broken link in Compose service profiles page broken by unclean rebase of ca88315234f099e88a3055b5e8f7f5c1aedf67a7 --- compose/profiles.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compose/profiles.md b/compose/profiles.md index aef2e07f15e5..b9b0d030d2ec 100644 --- a/compose/profiles.md +++ b/compose/profiles.md @@ -15,8 +15,8 @@ development tasks. ## Assigning profiles to services Services are associated with profiles through the -[`profiles` attribute](compose-file/index.md#profiles) which takes an array of -profile names: +[`profiles` attribute](compose-file/compose-file-v3.md#profiles) which takes an +array of profile names: ```yaml version: "{{ site.compose_file_v3 }}" From 6c64eeca6575498471fbf0dbc843bd78e8e85743 Mon Sep 17 00:00:00 2001 From: Roman Anasal Date: Wed, 27 Jan 2021 14:47:40 +0100 Subject: [PATCH 2/2] Fix long line wrapping on Compose service profiles page --- compose/profiles.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compose/profiles.md b/compose/profiles.md index b9b0d030d2ec..10bf772b2807 100644 --- a/compose/profiles.md +++ b/compose/profiles.md @@ -6,7 +6,9 @@ keywords: cli, compose, profile, profiles reference Profiles allow adjusting the Compose application model for various usages and environments by selectively enabling services. -This is achieved by assigning each service to zero or more profiles. If unassigned, the service is _always_ started but if assigned, it is only started if the profile is activated. +This is achieved by assigning each service to zero or more profiles. If +unassigned, the service is _always_ started but if assigned, it is only started +if the profile is activated. This allows one to define additional services in a single `docker-compose.yml` file that should only be started in specific scenarios, e.g. for debugging or