Private node or public node
For a node that serves only your own wallets, bind the restricted RPC to 127.0.0.1, leave 18089 closed in the firewall and publish it as a Tor onion service instead (apt install tor, then HiddenServiceDir /var/lib/tor/monerod and HiddenServicePort 18089 127.0.0.1:18089 in /etc/tor/torrc). Your wallet then reaches the node end-to-end encrypted, and the node never sees your home or mobile IP, not even in its own memory. Enable tx-proxy so that transactions from your wallets leave the node over Tor. Keep 18080 open anyway: the Monero docs point out that a node without incoming connections never relays other users' stem transactions, so anything it does stem is identifiably yours.
For a public node, uncomment public-node=1 so the node advertises its RPC port to peers, open 18089, and keep rpc-ssl on so that wallets supporting TLS use it. Offering the same RPC as an onion service costs nothing and gives Tor users a route that does not pass through an exit relay.
Docker works if you prefer containers, but the widely used Monero images are maintained by community members rather than the release team, which adds one more party to trust. On a single-purpose VPS we would use the signed binaries and systemd. If you want to mine, P2Pool can attach to the ZMQ port already configured; a VPS core is a modest RandomX miner, so treat it as support for decentralisation rather than income. If the sync stalls, r/Monero and the Matrix room #monero:monero.social are where node operators answer questions.
