agnivade/funnel

An example of docker-compose?

drozzy opened this issue · 5 comments

Could you provide an example of how I could setup my docker services to log to funnel automatically, using docker-compose configuration?

I could explain more if needed!
Thanks.

I guess you want to route your logs from inside docker containers to remote targets ? You will need to update your Dockerfile and put the funnel binary (and any custom config, if you want) inside your docker image.

Does that answer your question ?

I don't see a specific use-case for docker-compose since you are not linking 2 containers here.

I was thinking something like using logspout to route all logs.

For example, here is what I came up with for OKLogger:
https://gist.github.com/drozzy/06d1b2e48beac9527f5777cd1cd02492

Ah, got you now. Funnel is slightly different because it does not captures logs from docker containers.

You would have to package the funnel binary along with your application inside the docker container. And then route to wherever you want.

Oh, ok! Thanks.