From 81c15665ef131587685d701aba31db018bd3f79b Mon Sep 17 00:00:00 2001 From: Michael Davidson Date: Fri, 3 May 2019 14:12:27 -0400 Subject: [PATCH] Added Docker-Compose awslogs example (#8638) * Added docker compose aws logs information * Fixed formatting and text - Signed off by @bermudezmt --- config/containers/logging/awslogs.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/containers/logging/awslogs.md b/config/containers/logging/awslogs.md index 282f4c71cf..f46b92359c 100644 --- a/config/containers/logging/awslogs.md +++ b/config/containers/logging/awslogs.md @@ -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,