I really do not understand. How will the remote repo see the local checkout?
For what docker?!
He needs the remote repo acting as a server, accepting connections, this is done by fossil either as cgi, or run by inetd,
or run as stand alone.
Why to inflate everything with docker, jail...