Docker Community Forums

Share and learn in the Docker community.

Logging with docker-compose


(Negw) #1

Hi, I configured my services to log to STDOUT, still I see nothing when I docker-compose logs

docker-compose.yml

directory:
build: ./directory
command: bundle exec puma -C config/puma.rb
ports:
- 2120:3000
environment:
- RAILS_LOG_TO_STDOUT=1
volumes:
- /usr/src/app

output appears to be the output from the command I set there. Nothing after that.
What am I doing wrong?