From 7b76a6c07087e2edaa9d4d8b95b5dc563fe1f38c Mon Sep 17 00:00:00 2001 From: Sielski Date: Sun, 9 Oct 2016 21:35:23 +0200 Subject: [PATCH] Supervisord makes log outside of container --- docker-compose.yml.tpl | 1 + infrastructure/supervisord.conf | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml.tpl b/docker-compose.yml.tpl index 3e211fc..4f0df13 100644 --- a/docker-compose.yml.tpl +++ b/docker-compose.yml.tpl @@ -81,6 +81,7 @@ panteras: - "/var/lib/docker:/var/lib/docker" - "/sys:/sys" - "/tmp/mesos:/tmp/mesos" + - "/tmp/supervisord:/tmp/supervisord" - "/tmp/consul/data:/opt/consul/data" - "/proc:/host/proc:ro" - "/sys:/host/sys:ro" diff --git a/infrastructure/supervisord.conf b/infrastructure/supervisord.conf index 0ebd238..8a68705 100644 --- a/infrastructure/supervisord.conf +++ b/infrastructure/supervisord.conf @@ -1,5 +1,7 @@ [supervisord] nodaemon=true +childlogdir=/tmp/supervisord +logfile=/tmp/supervisord/supervisord.log [unix_http_server] file=/tmp/supervisor.sock @@ -122,4 +124,4 @@ autorestart=true autostart=%(ENV_START_NETDATA)s user=root stdout_events_enabled = true -stderr_events_enabled = true \ No newline at end of file +stderr_events_enabled = true