27 lines
852 B
YAML
27 lines
852 B
YAML
---
|
|
api_token: <your token here>
|
|
servers:
|
|
minecraft:
|
|
ports:
|
|
- 25565
|
|
activity_timeout_min: 20m
|
|
use_public_ip: false
|
|
initial_size: 4gb
|
|
size: 4gb
|
|
region: nyc1
|
|
ssh_keys:
|
|
- Key1
|
|
- gtalent2@gmail.com
|
|
use_persistent_image: false
|
|
image_slug: ubuntu-16-04-x64
|
|
volumes:
|
|
- volume-nyc1-01
|
|
user_data: |-
|
|
#!/bin/bash
|
|
apt-get update
|
|
apt-get install -y docker.io
|
|
mkdir -p /mnt/volume-nyc1-01
|
|
mount -o discard,defaults /dev/disk/by-id/scsi-0DO_Volume_volume-nyc1-01 /mnt/volume-nyc1-01
|
|
echo /dev/disk/by-id/scsi-0DO_Volume_volume-nyc1-01 /mnt/volume-nyc1-01 ext4 defaults,nofail,discard 0 0 | tee -a /etc/fstab
|
|
docker 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
|