The SQLite documentation says in strong terms not to do this. https://sqlite.org/howtocorrupt.html#_filesystems_with_broke...
See more: https://sqlite.org/wal.html#concurrency
btw nfs that is mentioned here is fine in sync mode. However that is slow.
They tell you to use a proper FS, which is largely orthogonal to containerization.