DigitalOcean Tutorial - goesta/docker-xmage-alpine GitHub Wiki
Running xmage on DigitalOcean
DigitalOcean droplets are a nice and easy way to run an xmage server. A small xmage server runs fine on the 10$ droplet. Thats only 0.015$ per hour.
If you don't have an Account you can use this referral link and you will get 10$ credit for free.
-
Go to the Droplets Tap and click on the Create Droplet button.
-
Click on One-click apps and select the latest Docker Image.
-
Select the 10$ Droplet and a datacenter near your location
-
Click on Create. It takes just a few seconds till your droplet is startet. After that you should receive an email with the server ip and the root password.
-
Login to your droplet (over the web or with your preferred ssh client).
-
Start the xmage container with the following command.
Change the Domain (138.68.74.100.nip.io) to include your droplets ip.
docker run --rm -it \
-p 17171:17171 \
-p 17179:17179 \
--add-host 138.68.74.100.nip.io:0.0.0.0 \
-e "XMAGE_DOCKER_SERVER_ADDRESS=138.68.74.100.nip.io" \
goesta/xmage-alpine
Now your xmage server should start up and write its logs to the console. You can connect to your server using the domain entered above.
After you finished your game you can simply destroy your droplet.