Using the following configuration in the docker setup and no colors are being printed. Running the application without docker prints color fine.
Docker compose has tty enabled.
e.Use(middleware.LoggerWithConfig(middleware.LoggerConfig{
Output: e.Logger.Output(),
}))