By default development only binds locally, so other devices in the same network can’t browse it. You can use standard rails flags to change the behavior.
What do you mean by “attach” a domain?
Domain must point to the instance public IP, and instance must have the standard web ports open. One of the reasons we recommend Digital Ocean is that non-technical users have difficult opening ports in cloud providers, which doesn’t happen on simple VPS providers.