From 929079e36032659e4223d01483c472d9d484b53c Mon Sep 17 00:00:00 2001 From: Frederik Ring Date: Mon, 16 Sep 2019 15:53:16 +0200 Subject: [PATCH] add logspout container to production setup --- .editorconfig | 2 +- Dockerrun.aws.json.production | 22 +++++++++++++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index f382e13..efba341 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,7 +10,7 @@ insert_final_newline = true trim_trailing_whitespace = true indent_style = tab -[{*.js,*.yml,*.md,Gopkg.toml,package.json,*.html,Dockerfile.*}] +[{*.js,*.yml,*.md,Gopkg.toml,package.json,*.html,Dockerfile.*,Dockerrun.*}] indent_style = space indent_size = 2 diff --git a/Dockerrun.aws.json.production b/Dockerrun.aws.json.production index 0d984f7..2ec4c40 100644 --- a/Dockerrun.aws.json.production +++ b/Dockerrun.aws.json.production @@ -1,6 +1,13 @@ { "AWSEBDockerrunVersion": 2, - "volumes": [], + "volumes": [ + { + "name": "log-socket", + "host": { + "sourcePath": "/var/run/docker.sock" + } + } + ], "containerDefinitions": [ { "name": "proxy", @@ -26,6 +33,19 @@ "image": "offen/server:stable", "essential": true, "memory": 256 + }, + { + "name": "logspout", + "image": "gliderlabs/logspout:latest", + "essential": true, + "memory": 64, + "command": ["syslog+tls://$LOG_TARGET"], + "mountPoints": [ + { + "sourceVolume": "log-socket", + "containerPath": "/var/run/docker.sock" + } + ] } ] }