Skip to content

Commit

Permalink
Add driver_opts to services.networks
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Murray <rob.murray@docker.com>
  • Loading branch information
robmry authored and ndeloof committed May 14, 2024
1 parent 9fe21fc commit 77bd39a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions 05-services.md
Original file line number Diff line number Diff line change
Expand Up @@ -1270,6 +1270,23 @@ networks:

`mac_address` sets the MAC address used by the service container when connecting to this particular network.

### driver_opts

[![unreleased](https://img.shields.io/badge/compose-unreleased-blue?style=flat-square)](https://github.com/docker/compose)

`driver_opts` specifies a list of options as key-value pairs to pass to the driver. These options are
driver-dependent. Consult the driver's documentation for more information.

```yml
services:
app:
networks:
app_net:
driver_opts:
foo: "bar"
baz: 1
```

### priority

`priority` indicates in which order Compose connects the service’s containers to its
Expand Down
17 changes: 17 additions & 0 deletions spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -1483,6 +1483,23 @@ networks:

`mac_address` sets the MAC address used by the service container when connecting to this particular network.

### driver_opts

[![unreleased](https://img.shields.io/badge/compose-unreleased-blue?style=flat-square)](https://github.com/docker/compose)

`driver_opts` specifies a list of options as key-value pairs to pass to the driver. These options are
driver-dependent. Consult the driver's documentation for more information.

```yml
services:
app:
networks:
app_net:
driver_opts:
foo: "bar"
baz: 1
```

### priority

`priority` indicates in which order Compose connects the service’s containers to its
Expand Down

0 comments on commit 77bd39a

Please sign in to comment.