mirror of
https://github.com/docker/compose.git
synced 2025-07-23 21:54:40 +02:00
Add stop signal to the docs.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
c47aea9c12
commit
3b1a0e6fc9
@ -469,9 +469,17 @@ port (a random host port will be chosen).
|
|||||||
|
|
||||||
Override the default labeling scheme for each container.
|
Override the default labeling scheme for each container.
|
||||||
|
|
||||||
security_opt:
|
security_opt:
|
||||||
- label:user:USER
|
- label:user:USER
|
||||||
- label:role:ROLE
|
- label:role:ROLE
|
||||||
|
|
||||||
|
### stop_signal
|
||||||
|
|
||||||
|
Sets an alternative signal to stop the container. By default `stop` uses
|
||||||
|
SIGTERM. Setting an alternative signal using `stop_signal` will cause
|
||||||
|
`stop` to send that signal instead.
|
||||||
|
|
||||||
|
stop_signal: SIGUSR1
|
||||||
|
|
||||||
### ulimits
|
### ulimits
|
||||||
|
|
||||||
@ -479,11 +487,11 @@ Override the default ulimits for a container. You can either specify a single
|
|||||||
limit as an integer or soft/hard limits as a mapping.
|
limit as an integer or soft/hard limits as a mapping.
|
||||||
|
|
||||||
|
|
||||||
ulimits:
|
ulimits:
|
||||||
nproc: 65535
|
nproc: 65535
|
||||||
nofile:
|
nofile:
|
||||||
soft: 20000
|
soft: 20000
|
||||||
hard: 40000
|
hard: 40000
|
||||||
|
|
||||||
### volumes, volume\_driver
|
### volumes, volume\_driver
|
||||||
|
|
||||||
@ -564,7 +572,7 @@ subcommand documentation for more information.
|
|||||||
Specify which volume driver should be used for this volume. Defaults to
|
Specify which volume driver should be used for this volume. Defaults to
|
||||||
`local`. An exception will be raised if the driver is not available.
|
`local`. An exception will be raised if the driver is not available.
|
||||||
|
|
||||||
driver: foobar
|
driver: foobar
|
||||||
|
|
||||||
### driver_opts
|
### driver_opts
|
||||||
|
|
||||||
@ -572,9 +580,9 @@ Specify a list of options as key-value pairs to pass to the driver for this
|
|||||||
volume. Those options are driver dependent - consult the driver's
|
volume. Those options are driver dependent - consult the driver's
|
||||||
documentation for more information. Optional.
|
documentation for more information. Optional.
|
||||||
|
|
||||||
driver_opts:
|
driver_opts:
|
||||||
foo: "bar"
|
foo: "bar"
|
||||||
baz: 1
|
baz: 1
|
||||||
|
|
||||||
|
|
||||||
## Variable substitution
|
## Variable substitution
|
||||||
|
@ -45,8 +45,7 @@ A `docker-compose.yml` looks like this:
|
|||||||
redis:
|
redis:
|
||||||
image: redis
|
image: redis
|
||||||
volumes:
|
volumes:
|
||||||
logvolume01:
|
logvolume01: {}
|
||||||
driver: default
|
|
||||||
|
|
||||||
For more information about the Compose file, see the
|
For more information about the Compose file, see the
|
||||||
[Compose file reference](compose-file.md)
|
[Compose file reference](compose-file.md)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user