Browse Source

HOT-FIX: adiciona logs no file system do container

pull/2026/merge
Edward Ribeiro 7 years ago
parent
commit
f37a754a45
  1. 3
      Dockerfile
  2. 3
      docker-compose.yml
  3. 4
      gunicorn_start.sh

3
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"]

3
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

4
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

Loading…
Cancel
Save