From 8d737a625e5448f3a1eaf9327487813104a7df9b Mon Sep 17 00:00:00 2001 From: maxsibilla Date: Tue, 16 Apr 2024 14:35:42 -0400 Subject: [PATCH] Adding sennet docker configuration for forwarding logs to cloudwatch --- sennet-docker/docker-compose.yml | 7 +++++++ sennet-docker/example.env | 1 + 2 files changed, 8 insertions(+) create mode 100644 sennet-docker/example.env diff --git a/sennet-docker/docker-compose.yml b/sennet-docker/docker-compose.yml index 96a193e..86890bc 100644 --- a/sennet-docker/docker-compose.yml +++ b/sennet-docker/docker-compose.yml @@ -32,6 +32,13 @@ services: - "./uuid-api/nginx/conf.d:/etc/nginx/conf.d" networks: - sennet_docker_network + # Send docker logs to AWS CloudWatch + logging: + driver: awslogs + options: + awslogs-region: us-east-1 + awslogs-group: uuid-api-docker-logs + awslogs-stream: ${LOG_STREAM} networks: # This is the network created by gateway to enable communicaton between multiple docker-compose projects diff --git a/sennet-docker/example.env b/sennet-docker/example.env new file mode 100644 index 0000000..b19e3e0 --- /dev/null +++ b/sennet-docker/example.env @@ -0,0 +1 @@ +LOG_STREAM=DEV