GoodSync developer here. I'm not sure that's exactly what you need, but one of my colleagues already did some kind of docker for goodsync/gs-server (see https://github.com/grinnery/gsdock.git). I'm not sure it's working right now (because we did some changes recently), but I guess you can start with that.
If you need something explained, you can ask here.