Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I specify the color of a service's log prefix in my docker-compose?

I have five services, which all get assigned a random color on docker-compose up at the moment. The problem is, one color is the exact same color as the background of powershell, which I use to up the services. Can I assign a color to each service in my docker-compose?

like image 637
be2213444 Avatar asked Oct 21 '25 00:10

be2213444


1 Answers

There's an old issue requesting this feature in docker-compose, which was (unfortunately?) rejected.

If the main issue is that the color clashes with your background, you could use the --no-color option to get a monochrome output. It's not great, but at least it would stop clashing with your background.

like image 152
Mureinik Avatar answered Oct 24 '25 07:10

Mureinik



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!