Skip to content

Commit

Permalink
Merge pull request #934 from neuroscout/logs
Browse files Browse the repository at this point in the history
Add log file in central location
  • Loading branch information
adelavega committed May 10, 2021
2 parents 5fd0d42 + a0a1451 commit ca55276
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ services:
- ${DATASET_DIR}:/datasets
- ${KEY_DIR}:/keys
- ${FILE_DATA}:/file-data
command: /usr/local/bin/gunicorn -w 2 -b :8000 neuroscout.core:app --log-level debug --timeout 120
- /logs/scout:/logs:rw
command: /usr/local/bin/gunicorn -w 2 -b :8000 neuroscout.core:app --log-level debug --timeout 120 --log-file /logs/gunicorn.log
env_file:
- .env
- .pliersenv
Expand Down Expand Up @@ -61,11 +62,12 @@ services:
dockerfile: celery_worker/Dockerfile
depends_on:
- scout_redis
entrypoint: celery -A tasks worker --loglevel=info
entrypoint: celery -A tasks worker --loglevel=info --log-file /logs/celery.log
volumes:
- ${FILE_DATA}:/file-data
- ${DATASET_DIR}:/datasets
- ./celery_worker:/celery_worker
- /logs/scout:/logs:rw
env_file:
- .env

Expand Down

0 comments on commit ca55276

Please sign in to comment.