You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,10 +64,6 @@ Important: this only works when building a single service, an error will be gene
64
64
65
65
A list of KEY=VALUE that are passed through as build arguments when image is being built.
66
66
67
-
#### `labels` (build and run only, string or array)
68
-
69
-
A list of KEY=VALUE that are passed through as service labels when image is being built or ran. These will be merged with any service labels defined in the compose file.
70
-
71
67
#### `env` or `environment` (run only, string or array)
72
68
73
69
A list of either KEY or KEY=VALUE that are passed through as environment variables to the container.
@@ -272,6 +268,14 @@ If set to true, adds useful Docker labels to the primary container. See [Contain
272
268
273
269
The default is `true`.
274
270
271
+
#### `labels` (run only, string or array)
272
+
273
+
A list of KEY=VALUE that are passed through as service labels when image is being ran. These will be merged with any service labels defined in the compose file.
274
+
275
+
#### `build-labels` (build only, string or array)
276
+
277
+
A list of KEY=VALUE that are passed through as service labels when image is being built. These will be merged with any service labels defined in the compose file.
278
+
275
279
#### `compatibility` (boolean)
276
280
277
281
If set to true, all docker compose commands will rum with compatibility mode. Equivalent to `--compatibility` in docker compose.
0 commit comments