Add support for log-driver in docker-compose.yml

Closes #1303

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
Vincent Demeester 2015-05-06 13:18:58 +02:00
commit f626fc5ce8
5 changed files with 41 additions and 1 deletions

View file

@ -271,6 +271,20 @@ labels:
- "com.example.label-with-empty-value"
```
### log driver
Specify a logging driver for the service's containers, as with the ``--log-driver`` option for docker run ([documented here](http://docs.docker.com/reference/run/#logging-drivers-log-driver)).
Allowed values are currently ``json-file``, ``syslog`` and ``none``. The list will change over time as more drivers are added to the Docker engine.
The default value is json-file.
```
log_driver: "json-file"
log_driver: "syslog"
log_driver: "none"
```
### net
Networking mode. Use the same values as the docker client `--net` parameter.