Upgrade: safe to jump docker image from 3.1.1 to 3.40.2?

any DB or config changes since 3.1.1?
running on arch linux proxypassed behind apache, with data mounted from the filesystem.
thanks,
alex.