logging - How to log information of a docker container -
i have docker-compose.yml file has 3 services 1) nginx : reverse-proxy 2) web : simple application takes performs classification using ridge classifier 3) viz : presents statistics of docker information, cpu used, number of containers used
below docker-compose.yml
version: '2' services: web: restart: build: ./web expose: - "8000" volumes: - ./output:/usr/src/app/static command: /usr/local/bin/gunicorn -w 2 -b :8000 --access-logfile - classifierv2restendpoint_ridge_nb:create_app() nginx: restart: build: ./nginx/ ports: - "80:80" volumes: - /www/static volumes_from: - web links: - web:web viz: image: dockersamples/visualizer ports: - 8080:8080/tcp volumes: - /var/run/docker.sock:/var/run/docker.sock environment: - "constraint=node.role==manager"
in 'web' service have simple ui takes excel file input , upon clicking submit button outputs result of classifier.
if incorrectly select wrong file , click submit throws error
however when check docker-compose logs, not see why error happening. see this
i want see in program error happening not http post request log
web_1 | 172.19.0.4 - - [10/sep/2017:17:41:07 +0000] "post / http/1.0" 500 291 "http ://ec2-35-154-66-136.ap-south-1.compute.amazonaws.com/" "mozilla/5.0 (windows nt 10.0; win64; x64) applewebkit/537.36 (khtml, gecko) chrome/60.0.3112.113 safari/537.36
what should see error in classifier code?
"
Comments
Post a Comment