be2213444
be2213444

Reputation: 637

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?

Upvotes: 3

Views: 1143

Answers (1)

Mureinik
Mureinik

Reputation: 312219

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.

Upvotes: 3

Related Questions