Can't solve MongoParseError: Invalid connection string
Try printing the result of mongodb:\\/\\/${process.env.DB_USER}:${process.env.DB_PASSWORD}@db:27017\\/${process.env.DB_NAME} in console and use the result to connect to mongodb through mongo shell.

Also, post the final result with masked details for review.