eventuate-tram/eventuate-tram-sagas-examples-customers-and-orders

Containers for customer-service and order-service are stopped automatically after a minute of startup.

skazaruddin opened this issue · 4 comments

Containers for customer-service and order-service are started, but shuts down after a minute or two.
Using MySQL database as backend.
service-stopped

cer commented

Do the container logs show an error messages?

What's the value of DOCKER_HOST_IP? I wonder whether the problem is because the services cannot connect to Kafka.

Thank you for your response.The services were not able to connect to MySQL database as my docker was running in swarn mode.When stopped swarn mode.Application started working.Thank you again Chris.

cer commented

The database driver couldn't establish connection to database server ( in my case mysql).It threw a message something like this:

Communications link failure Last packet sent to the server was 1 ms ago