Added Docker-Compose awslogs example (#8638)

* Added docker compose aws logs information

* Fixed formatting and text

- Signed off by @bermudezmt
This commit is contained in:
Michael Davidson 2019-05-03 14:12:27 -04:00 committed by Maria Bermudez
parent 8d3cf35b48
commit 81c15665ef
1 changed files with 10 additions and 0 deletions

View File

@ -40,6 +40,16 @@ You can set the logging driver for a specific container by using the
docker run --log-driver=awslogs ...
If you are using Docker Compose, set `awslogs` using the following declaration example:
```yaml
myservice:
logging:
driver: awslogs
options:
awslogs-region: us-east-1
```
## Amazon CloudWatch Logs options
You can add logging options to the `daemon.json` to set Docker-wide defaults,