-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(compose): support for setting profiles
- Loading branch information
1 parent
f1d8d35
commit 5dad0e7
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
services: | ||
runs-always: &simple-service | ||
image: alpine:latest | ||
init: true | ||
command: | ||
- sh | ||
- -c | ||
- 'while true; do sleep 0.1 ; date -Ins; done' | ||
runs-profile-a: | ||
<<: *simple-service | ||
profiles: | ||
- profile-a | ||
runs-profile-b: | ||
<<: *simple-service | ||
profiles: | ||
- profile-b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters