How to make gitlab and gitaly in diffient machines?

hello there
i want to make gitlab and gitaly in diffient machines
like this


Can it leave gitlab to work?
The documentation I found only shows the same machine.
Are there any documentation for deployment on different machines?
thanks