Skip to content

Commit bba40a7

Browse files
authored
Apply suggestions from code review
1 parent 8c10661 commit bba40a7

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

content/reference/compose-file/deploy.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ services:
5252

5353
`mode` defines the replication model used to run a service or job. Options include:
5454

55-
1. **`global`**: Ensures exactly one task continuously runs per physical node until stopped.
56-
2. **`replicated`**: Continuously runs a specified number of tasks across nodes until stopped (default).
57-
3. **`replicated-job`**: Executes a defined number of tasks until a completion state (exits with code 0)'.
55+
- `global`: Ensures exactly one task continuously runs per physical node until stopped.
56+
- `replicated`: Continuously runs a specified number of tasks across nodes until stopped (default).
57+
- `replicated-job`: Executes a defined number of tasks until a completion state (exits with code 0)'.
5858
- Total tasks are determined by `replicas`.
5959
- Concurrency can be limited using the `max-concurrent` option (CLI only).
60-
4. **`global-job`**: Executes one task per physical node with a completion state (exits with code 0).
60+
- `global-job`: Executes one task per physical node with a completion state (exits with code 0).
6161
- Automatically runs on new nodes as they are added.
6262

6363
```yml
@@ -79,11 +79,12 @@ services:
7979
mode: global-job
8080
```
8181

82-
**Note**:
83-
- Job modes (`replicated-job` and `global-job`) are designed for tasks that complete and exit with code 0.
84-
- Completed tasks remain until explicitly removed.
85-
- Options like `max-concurrent` for controlling concurrency are supported only via the CLI and are not available in Compose YAML.
86-
- For more detailed information about job options and behavior, see the [Docker CLI documentation](/reference/cli/docker/service/create/#running-as-a-job)
82+
> [!NOTE]
83+
> - Job modes (`replicated-job` and `global-job`) are designed for tasks that complete and exit with code 0.
84+
> - Completed tasks remain until explicitly removed.
85+
> - Options like `max-concurrent` for controlling concurrency are supported only via the CLI and are not available in Compose.
86+
87+
For more detailed information about job options and behavior, see the [Docker CLI documentation](/reference/cli/docker/service/create.md#running-as-a-job)
8788

8889
### placement
8990

0 commit comments

Comments
 (0)