File tree 1 file changed +22
-0
lines changed
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -1031,6 +1031,28 @@ duplicates resulting from the merge are not removed.
1031
1031
1032
1032
Any other allowed keys in the service definition should be treated as scalars.
1033
1033
1034
+ # ## external
1035
+
1036
+ If set to `true`, `external` specifies that this service lifecycle is maintained outside of that application defined
1037
+ this the Compose file. Compose Implementations SHOULD NOT attempt to create container(s) for this service.
1038
+
1039
+ In the example below, `db` is a database service managed on a cloud infrastructure. Instead of attempting to create
1040
+ this service as a container, Compose implementations SHOULD consider this service as available for dependent services.
1041
+
1042
+ This attribute is expected to be used in a Compose override file to replace a service definition with an external resource.
1043
+
1044
+ ` ` ` yaml
1045
+ services:
1046
+ app:
1047
+ image: mycompay/app
1048
+ depends_on:
1049
+ - db
1050
+ db:
1051
+ external: true
1052
+ container_name: database.cloud.provider
1053
+ ` ` `
1054
+
1055
+
1034
1056
# ## external_links
1035
1057
1036
1058
` external_links` link service containers to services managed outside this Compose application.
You can’t perform that action at this time.
0 commit comments