You need to build a Docker image, if you forked lemmy-ui then that should be simply docker build .
. Then get the built image on the server, works via Docker Hub, or by exporting to a file, transfering to the server and importing it. Then reference that image in docker-compose.yml instead of lemmy-ui.
This definitely needs to be documented better.