Question: I have created Docker containers using `docker-compose.yml` on a single host.
Can anybody tell if `docker-compose.yml` file can be used to start Docker containers on multiple VMs ? If yes, how?

Answer: 
Yes, that's the expected and documented behavior. 

[Quote from the JavaDocs](http://docs.oracle.com/javase/8/docs/api/java/sql/Date.html)

> 
> To conform with the definition of SQL DATE, the millisecond values wrapped by a java.sql.Date instance must be 'normalized' by setting the hours, minutes, seconds, and milliseconds to zero in the particular time zone with which the instance is associated.
> 
> 
> 

If you want to keep the time, you need to use `java.sql.Timestamp` (especially if the column in the database is defined as `datetime`).
Just change your import from `java.sql.Date` TO `java.sql.Timestamp`