From f37a754a458726a7a8836e065c13ede778ebb3ae Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Mon, 18 Jun 2018 12:21:44 -0300 Subject: [PATCH] HOT-FIX: adiciona logs no file system do container --- Dockerfile | 3 ++- docker-compose.yml | 3 ++- gunicorn_start.sh | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 693230025..9f89509d7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -50,7 +50,8 @@ RUN rm -rf /var/interlegis/sapl/sapl/.env && \ RUN chmod +x /var/interlegis/sapl/start.sh && \ ln -sf /dev/stdout /var/log/nginx/access.log && \ - ln -sf /dev/stderr /var/log/nginx/error.log + ln -sf /dev/stderr /var/log/nginx/error.log && \ + mkdir /var/log/sapl/ VOLUME ["/var/interlegis/sapl/data", "/var/interlegis/sapl/media"] diff --git a/docker-compose.yml b/docker-compose.yml index f3ca2cef8..59d13d8a9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,7 +11,8 @@ sapldb: ports: - "5432:5432" sapl: - image: interlegis/sapl:3.1.87 + # image: interlegis/sapl:3.1.87 + build: . restart: always environment: ADMIN_PASSWORD: interlegis diff --git a/gunicorn_start.sh b/gunicorn_start.sh index 6247a0b27..4f58022ce 100755 --- a/gunicorn_start.sh +++ b/gunicorn_start.sh @@ -44,6 +44,6 @@ exec gunicorn ${DJANGO_WSGI_MODULE}:application \ --workers $NUM_WORKERS \ --max-requests $MAX_REQUESTS \ --user $USER \ - --access-logfile - \ - --error-logfile - \ + --access-logfile /var/log/sapl/access.log \ + --error-logfile /var/log/sapl/error.log \ --bind=unix:$SOCKFILE