Spring Boot Microservices Docker Compose Failed to configure a DataSource Issue

I have a problem about defining datasource for services prodiving from database.

I cannot build user service, report service and advertisement service because all these three services use mysql database.

When I run docker-compose through this command (docker-compose up -d), I got the error shown below all these services.

Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.

Reason: Failed to determine a suitable driver class

All these three services use their own database. How can I define datasource url for all these 3 services?

Here is the link of docker-compose.yml : [Docker-compose file]

Edited : docker-compose.yml (but it didn’t work) : Link

(SpringBootMicroservices/docker-compose.yml at master · Rapter1990/SpringBootMicroservices · GitHub )