Open petrkalina opened 1 year ago
would rather expect
java.net.UnknownHostException: db
and not
java.net.ConnectException: Connection refused
if there is an issue with the docker DNS.
Does the issue remains after forcing a redeployment by
$ sudo touch <path-to-host-mounted-/opt/wildfly/standalone>/deployments/j4dcm4chee-arc-ear-VERSION-psql-secure.ear
? Perhaps, the DB is not yet ready - particularly when the DB get initialized on first startup - when
nc -w 1 -z db 5432
already succeeds. ( https://github.com/dcm4che-dockerfiles/wildfly/blob/master/docker-entrypoint.sh#L73 )
the key aspect is that the problem does not occur all the time - after next restart it may not occur.. Occurs on multiple docker versions and multiple archive versions.
prectical resolution i.e.