{
  "manifest_version": "1.0.0",
  "template": {
    "id": "d6a8db3b-4d60-46af-9f31-4eafaf7e40a0",
    "slug": "minecraft-server-p-1",
    "name": "Minecraft Server (Paper)",
    "description": "Paper Minecraft server with the world on a volume and a ready address",
    "url": "https://railway.com/deploy/minecraft-server-p-1",
    "upstream": {
      "image": "itzg/minecraft-server:stable"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "minecraft",
      "source": {
        "image": "itzg/minecraft-server:stable"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "tcp_ports": [
        25565
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "minecraft",
      "description": "Time zone for logs",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "EULA",
      "service": "minecraft",
      "description": "Type TRUE to accept the Minecraft EULA (https://aka.ms/MinecraftEULA). The server won't start without it.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "MOTD",
      "service": "minecraft",
      "description": "Message shown in the server list",
      "secret": false,
      "strategy": "default",
      "default": "A Minecraft server on Railway"
    },
    {
      "key": "TYPE",
      "service": "minecraft",
      "description": "Server type: PAPER, VANILLA, FABRIC, FORGE, PURPUR and more (see itzg docs)",
      "secret": false,
      "strategy": "default",
      "default": "PAPER"
    },
    {
      "key": "VERSION",
      "service": "minecraft",
      "description": "Minecraft version, e.g. LATEST or 1.21.8",
      "secret": false,
      "strategy": "default",
      "default": "LATEST"
    },
    {
      "key": "DIFFICULTY",
      "service": "minecraft",
      "description": "peaceful, easy, normal or hard",
      "secret": false,
      "strategy": "default",
      "default": "normal"
    },
    {
      "key": "MAX_MEMORY",
      "service": "minecraft",
      "description": "Heap limit. 2G is enough for a few friends; use 700M on Railway's trial (1 GB RAM cap)",
      "secret": false,
      "strategy": "default",
      "default": "2G"
    },
    {
      "key": "INIT_MEMORY",
      "service": "minecraft",
      "description": "Heap at start. Kept low so an empty server uses less RAM",
      "secret": false,
      "strategy": "default",
      "default": "512M"
    },
    {
      "key": "MAX_PLAYERS",
      "service": "minecraft",
      "description": "Player slots",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "ONLINE_MODE",
      "service": "minecraft",
      "description": "Check accounts against Mojang. Keep TRUE unless you know why not",
      "secret": false,
      "strategy": "default",
      "default": "TRUE"
    },
    {
      "key": "RCON_PASSWORD",
      "service": "minecraft",
      "description": "Password for rcon-cli (open a shell with railway ssh, then run rcon-cli)",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "VIEW_DISTANCE",
      "service": "minecraft",
      "description": "Chunks sent to players. Lower it if the server lags",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "SERVER_ADDRESS",
      "service": "minecraft",
      "description": "Paste this into Minecraft: Multiplayer > Add Server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ENABLE_WHITELIST",
      "service": "minecraft",
      "description": "Set TRUE and fill WHITELIST to keep strangers out",
      "secret": false,
      "strategy": "default",
      "default": "FALSE"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "minecraft-server-p-1"
      }
    },
    "cli": "railway deploy --template minecraft-server-p-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "d6a8db3b-4d60-46af-9f31-4eafaf7e40a0",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "80e9eb9c-1727-491e-99b5-736b4d71a56b": {
                  "icon": "https://assets.papermc.io/brand/papermc_logo.512.png",
                  "name": "minecraft",
                  "deploy": {
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "itzg/minecraft-server:stable"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Time zone for logs",
                      "defaultValue": "UTC"
                    },
                    "OPS": {
                      "isOptional": true,
                      "description": "Optional: your Minecraft username, made an operator on first start",
                      "defaultValue": ""
                    },
                    "EULA": {
                      "isOptional": false,
                      "description": "Type TRUE to accept the Minecraft EULA (https://aka.ms/MinecraftEULA). The server won't start without it.",
                      "defaultValue": "{{EULA}}"
                    },
                    "MOTD": {
                      "isOptional": false,
                      "description": "Message shown in the server list",
                      "defaultValue": "A Minecraft server on Railway"
                    },
                    "TYPE": {
                      "isOptional": false,
                      "description": "Server type: PAPER, VANILLA, FABRIC, FORGE, PURPUR and more (see itzg docs)",
                      "defaultValue": "PAPER"
                    },
                    "VERSION": {
                      "isOptional": false,
                      "description": "Minecraft version, e.g. LATEST or 1.21.8",
                      "defaultValue": "LATEST"
                    },
                    "WHITELIST": {
                      "isOptional": true,
                      "description": "Comma-separated usernames allowed when the whitelist is on",
                      "defaultValue": ""
                    },
                    "DIFFICULTY": {
                      "isOptional": false,
                      "description": "peaceful, easy, normal or hard",
                      "defaultValue": "normal"
                    },
                    "MAX_MEMORY": {
                      "isOptional": false,
                      "description": "Heap limit. 2G is enough for a few friends; use 700M on Railway's trial (1 GB RAM cap)",
                      "defaultValue": "2G"
                    },
                    "INIT_MEMORY": {
                      "isOptional": false,
                      "description": "Heap at start. Kept low so an empty server uses less RAM",
                      "defaultValue": "512M"
                    },
                    "MAX_PLAYERS": {
                      "isOptional": false,
                      "description": "Player slots",
                      "defaultValue": "10"
                    },
                    "ONLINE_MODE": {
                      "isOptional": false,
                      "description": "Check accounts against Mojang. Keep TRUE unless you know why not",
                      "defaultValue": "TRUE"
                    },
                    "RCON_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for rcon-cli (open a shell with railway ssh, then run rcon-cli)",
                      "defaultValue": "{{RCON_PASSWORD}}"
                    },
                    "VIEW_DISTANCE": {
                      "isOptional": false,
                      "description": "Chunks sent to players. Lower it if the server lags",
                      "defaultValue": "10"
                    },
                    "SERVER_ADDRESS": {
                      "isOptional": false,
                      "description": "Paste this into Minecraft: Multiplayer > Add Server",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}"
                    },
                    "ENABLE_WHITELIST": {
                      "isOptional": true,
                      "description": "Set TRUE and fill WHITELIST to keep strangers out",
                      "defaultValue": "FALSE"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "25565": {}
                    },
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "34157c05-e780-47aa-af31-06de11dbc368": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-25T16:14:54.488Z",
  "generator_version": "0.1.0"
}
