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 && \ RUN chmod +x /var/interlegis/sapl/start.sh && \
ln -sf /dev/stdout /var/log/nginx/access.log && \ 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"] VOLUME ["/var/interlegis/sapl/data", "/var/interlegis/sapl/media"]

3
docker-compose.yml

@ -11,7 +11,8 @@ sapldb:
ports: ports:
- "5432:5432" - "5432:5432"
sapl: sapl:
image: interlegis/sapl:3.1.87 # image: interlegis/sapl:3.1.87
build: .
restart: always restart: always
environment: environment:
ADMIN_PASSWORD: interlegis ADMIN_PASSWORD: interlegis

4
gunicorn_start.sh

@ -44,6 +44,6 @@ exec gunicorn ${DJANGO_WSGI_MODULE}:application \
--workers $NUM_WORKERS \ --workers $NUM_WORKERS \
--max-requests $MAX_REQUESTS \ --max-requests $MAX_REQUESTS \
--user $USER \ --user $USER \
--access-logfile - \ --access-logfile /var/log/sapl/access.log \
--error-logfile - \ --error-logfile /var/log/sapl/error.log \
--bind=unix:$SOCKFILE --bind=unix:$SOCKFILE

Loading…
Cancel
Save