docs: add an example for `bind_mounts`.
@@ -776,6 +776,25 @@ For each bind mount, the following optional fields may also be specified:
<https://docs.docker.com/storage/bind-mounts/#configure-bind-propagation>`__ for replicas of the
bind-mount. Defaults to ``rprivate``.
+For example, to mount ``/data`` on the host to the same path in the container, use:
+
+.. code:: yaml
+
+ bind_mounts:
+ - host_path: /data
+ container_path: /data
+
+It is also possible to mount multiple paths:
+
+.. code:: yaml
+
+ bind_mounts:
+ - host_path: /data
+ container_path: /data
+ - host_path: /shared/read-only-data
+ container_path: /shared/read-only-data
+ read_only: true
+
.. _exp-environment:
*************
