From cc9ea71f9394dfd985e13129fcef9d1f5a6e833d Mon Sep 17 00:00:00 2001 From: Frederik Ring Date: Mon, 4 Nov 2019 23:08:44 +0100 Subject: [PATCH] add production log config --- Dockerrun.aws.json.production | 28 +++++++++++++++++++--------- Dockerrun.aws.json.staging | 8 ++++---- 2 files changed, 23 insertions(+), 13 deletions(-) diff --git a/Dockerrun.aws.json.production b/Dockerrun.aws.json.production index 21a69e2..13afa9d 100644 --- a/Dockerrun.aws.json.production +++ b/Dockerrun.aws.json.production @@ -1,13 +1,5 @@ { "AWSEBDockerrunVersion": 2, - "volumes": [ - { - "name": "log-socket", - "host": { - "sourcePath": "/var/run/docker.sock" - } - } - ], "containerDefinitions": [ { "name": "proxy", @@ -27,6 +19,15 @@ } ], "links": ["server"] + "logConfiguration": { + "logDriver": "awslogs", + "options": { + "awslogs-create-group": true, + "awslogs-group": "production", + "awslogs-region": "eu-central-1", + "awslogs-stream-prefix": "proxy" + } + } }, { "name": "server", @@ -36,7 +37,16 @@ "command": ["serve"], "environment": [ { "name": "OFFEN_SERVER_REVERSEPROXY", "value": "1" } - ] + ], + "logConfiguration": { + "logDriver": "awslogs", + "options": { + "awslogs-create-group": true, + "awslogs-group": "production", + "awslogs-region": "eu-central-1", + "awslogs-stream-prefix": "server" + } + } } ] } diff --git a/Dockerrun.aws.json.staging b/Dockerrun.aws.json.staging index abdf60b..2125921 100644 --- a/Dockerrun.aws.json.staging +++ b/Dockerrun.aws.json.staging @@ -24,9 +24,9 @@ "logDriver": "awslogs", "options": { "awslogs-create-group": true, - "awslogs-group": "proxy", + "awslogs-group": "staging", "awslogs-region": "eu-central-1", - "awslogs-stream-prefix": "staging" + "awslogs-stream-prefix": "proxy" } } }, @@ -43,9 +43,9 @@ "logDriver": "awslogs", "options": { "awslogs-create-group": true, - "awslogs-group": "server", + "awslogs-group": "staging", "awslogs-region": "eu-central-1", - "awslogs-stream-prefix": "staging" + "awslogs-stream-prefix": "server" } } }