The people from Simplified Privacy made a video guide on self-hosting a SimpleX server: https://video.simplifiedprivacy.com/simplex/
The guide is for Kyun but the actual script will work anywhere. You can find the script on their Git server.