mirror of https://github.com/docker/docs.git
Fix markdown rendering of example configuration (#1544)
* fix code block formatting after list add comment between code block and list to fix markdown rendering * Update compose-file.md * Update compose-file.md
This commit is contained in:
parent
b72d08927e
commit
be447bf1b5
|
@ -256,9 +256,11 @@ updates.
|
||||||
- `monitor`: Duration after each task update to monitor for failure `(ns|us|ms|s|m|h)` (default 0s).
|
- `monitor`: Duration after each task update to monitor for failure `(ns|us|ms|s|m|h)` (default 0s).
|
||||||
- `max_failure_ratio`: Failure rate to tolerate during an update.
|
- `max_failure_ratio`: Failure rate to tolerate during an update.
|
||||||
|
|
||||||
|
```
|
||||||
update_config:
|
update_config:
|
||||||
parallelism: 2
|
parallelism: 2
|
||||||
delay: 10s
|
delay: 10s
|
||||||
|
```
|
||||||
|
|
||||||
#### resources
|
#### resources
|
||||||
|
|
||||||
|
@ -288,11 +290,13 @@ Configures if and how to restart containers when they exit. Replaces
|
||||||
specified as a [duration](compose-file.md#specifying-durations) (default:
|
specified as a [duration](compose-file.md#specifying-durations) (default:
|
||||||
decide immediately).
|
decide immediately).
|
||||||
|
|
||||||
|
```
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: on-failure
|
||||||
delay: 5s
|
delay: 5s
|
||||||
max_attempts: 3
|
max_attempts: 3
|
||||||
window: 120s
|
window: 120s
|
||||||
|
```
|
||||||
|
|
||||||
#### labels
|
#### labels
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue