2016-02-14 23:38:28 -06:00
|
|
|
{
|
2016-02-26 18:40:47 -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],
|
2016-02-29 01:05:49 -06:00
|
|
|
"UsePublicIP": false,
|
2017-01-21 16:02:41 -06:00
|
|
|
"InitialSize": "4gb",
|
2016-02-14 23:38:28 -06:00
|
|
|
"Size": "4gb",
|
2017-01-21 16:02:41 -06:00
|
|
|
"Region": "nyc1",
|
|
|
|
"SshKeys": [513314, 1667247],
|
|
|
|
"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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|