You mean on a raspberry? Technically yes but you gotta work out the proxy and external availability or you just access the relay via VPN
Above is a good starting point and yes docker it would be then
Or you just start with nostr1.com thats what I did.