I'm using docker swarm. I have two services.
- Spring boot app
- PostgreSQL database
every things is ok. suppose :
all of my tasks be kill for any reason (for example restart the server) swarm try to run my services.
my problem is there if first run spring boot then run database. in this status my spring boot can not connect to database. and my app not working.
I know that I can resolve this problem in spring with connection pool but I want handle it in docker swarm.
can you help me?
is there any way ????