I had to copy-paste file_env() for shared secrets, and there are some more changes for overall progress.
Also, what is the original version of docker-entrypoint.sh you started from ? I could try to merge automatically, but it's impossible without complete tree and it's root.