Docker container wiping out the DB and starting from the fresh while a New Instance Start due to autoscaling

Docker container wiping out the restore of DB and starting from the fresh

we are using the sonatype/nexus3:3.35.0 docker version.

and configured the same using Terraform and ECS cluster.

Let me know if some one has faced this issue and suggest your fix for it.

Since you are using a Docker container, are you mounting a volume to it or are you just using the default ephemeral storage?

@dsawa We are mounting the Volume to it.

I would concur with what Dawid is suggesting and double check your configuration against the installation steps as it definitely sounds like you do not have the data directory on persistent storage.