I want to print error logs when I run command of docker-compose up
When I run command of docker-compose up, there is no error which can occurs in my web application
But when i run command of docker-compose run web, there is a error message which exactly i wanted.
this is my docker-compose.yml
version: '3'
services:
db:
image: postgres
web:
build: .
command: python zeus/manage.py runserver 0.0.0.0:8000
volumes:
- .:/zeus_test
ports:
- "8000:8000"
depends_on:
- db
Is there a way to print error logs when I run command of docker-compose up?
Edit
This is my minimal reproduction