francescou / docker-compose-ui

web interface for Docker Compose
http://francescou.github.io/docker-compose-ui
MIT License
1.54k stars 229 forks source link

Docker-compose log output during intial start of services #54

Open bergtwvd opened 8 years ago

bergtwvd commented 8 years ago

I have a large set of services defined that are spread around in my cluster by swarm. When I press the Up button in the Compose UI it starts working (shown by the animation), but there is no information about progress and possible problems in this phase. In this phase I need to go to the console and get the Compose UI log to see what is going on. So, a feature request is to get this informaion via the web GUI.

-- TB

francescou commented 8 years ago

Hi, could you please provide me an example of docker-compose.yml file to test this situation?

bergtwvd commented 8 years ago

The particular compose file is not terribly important. In the compose file I start a bunch of containers. Only once ComposeUI ends the animation I can press the logs button to see what happened. In my use case I would like to see the log information while the containers are started.

Sequence now is:

press UP Animation starts (ComposeUI is busy starting the containers) (containers are started) Animation stops press LOGS to see what happened

francescou commented 8 years ago

Hi, I think I've managed to reproduce the issue and maybe I've found a solution.

You can try the fix on the start-logs branch, please let me know if you think it can be an acceptable solution.

bergtwvd commented 8 years ago

I'm afraid my PC environment is not setup to test this from the source code, Is there an image that I can pull to test it?

francescou commented 8 years ago

I've created a new tag, you can use francescou/docker-compose-ui:start-logs

bergtwvd commented 8 years ago

Thanks. I ran the image. I see some small windows poping up on the right side of the browser windows with some information in it. Is this correct? And what information is intended to be displayed here? (the popups disappear before I have a chance to read them).

Alternatively, is it possible to have the Logs button enabled while the services are being started by ComposeUI? Similarly, also for the other actions? In my situation the services take a while to start and with intermediate access to the logs I can monitor progress.

francescou commented 8 years ago

you're right: I've displayed log lines as notifications. I will try to find a better way to display logs while starting a project