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

924 views Asked by At

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?

1

There are 1 answers

1
Mureinik On BEST ANSWER

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.