Fixed the issue.
We getting this issue due to failed to mount the configuration folder directory as a volume.
ie, while deploying the openam.war inside the webapps folder, it will create the configuration details in /root/openam location.
Please mount the volume , then the server will restart using the existing data.
Please see the openam configuration
"networks":
"network":
"external":
"name": "appliance"
"services":
"container_openam":
"build":
"context": "identity-openam"
"dockerfile": "Dockerfile"
"container_name": "identity-openam"
"image": "identity-openam:latest"
"networks":
- "network"
"ports":
- "8080:8080"
"restart": "always"
"volumes":
- "openam_configuration:/root/sso"
- "openam_core:/root/.openamcfg"
"container_opendj":
"build":
"args":
- "PORT=1389"
- "LDAPS_PORT=1636"
- "BASE_DN=dc=ds,dc=test,dc=com"
- "ROOT_USER_DN=cn=Directory Manager"
- "ROOT_PASSWORD=rdddE"
"context": "identity-persistence-opendj-ldap"
"dockerfile": "Dockerfile"
"container_name": "identity-persistence-opendj-ldap"
"image": "identity-persistence-opendj-ldap:latest"
"networks":
- "network"
"ports":
- "1389:1389"
- "4444:4444"
"restart": "always"
"volumes":
- "storage:/opt/opendj/db"
"version": "3.4"
"volumes":
"openam_configuration":
"name": "openam_configuration"
"openam_core":
"name": "openam_core"
"storage":
"name": "identity-icampp-opendj-openam"