dospin/dospin.json

21 lines
827 B
JSON
Raw Permalink Normal View History

2016-02-14 23:38:28 -06:00
{
"ApiToken": "<your token here>",
2016-02-28 01:03:16 -06:00
"Servers": {
2016-02-14 23:38:28 -06:00
"minecraft": {
2016-02-28 01:03:16 -06:00
"Ports": [25565],
"UsePublicIP": false,
"InitialSize": "4gb",
2016-02-14 23:38:28 -06:00
"Size": "4gb",
"Region": "nyc1",
"SshKeys": [
"Key1",
"gtalent2@gmail.com"
],
"UsePersistentImage": false,
"ImageSlug": "ubuntu-16-04-x64",
"Volumes": ["volume-nyc1-01"],
"UserData": "#!/bin/bash\napt-get update\napt-get install -y docker.io\nmkdir -p /mnt/volume-nyc1-01\nmount -o discard,defaults /dev/disk/by-id/scsi-0DO_Volume_volume-nyc1-01 /mnt/volume-nyc1-01\necho /dev/disk/by-id/scsi-0DO_Volume_volume-nyc1-01 /mnt/volume-nyc1-01 ext4 defaults,nofail,discard 0 0 | tee -a /etc/fstab\ndocker run -d --restart=always -p 25565:25565 -v /mnt/volume-nyc1-01/minecraft-server:/minecraft-server -w /minecraft-server -t java:8-alpine sh start.sh"
2016-02-14 23:38:28 -06:00
}
}
}