18 lines
800 B
JSON
18 lines
800 B
JSON
{
|
|
"ApiToken": "<your token here>",
|
|
"GatewayInterface": "eth0:2",
|
|
"Servers": {
|
|
"minecraft": {
|
|
"Ports": [25565],
|
|
"UsePublicIP": false,
|
|
"InitialSize": "4gb",
|
|
"Size": "4gb",
|
|
"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"
|
|
}
|
|
}
|
|
}
|