{
  "manifest_version": "1.0.0",
  "template": {
    "id": "97db5195-ce0f-4b71-a7d0-3114f3071fb4",
    "slug": "palworld-1",
    "name": "Palworld",
    "description": "Palworld Dedicated Server — 50GB volume, backups, playit.gg UDP tunnel",
    "url": "https://railway.com/deploy/palworld-1"
  },
  "services": [
    {
      "name": "palworld",
      "source": {
        "repo": "https://github.com/INAPP-Mobile/palworld"
      },
      "needs_volume": true,
      "volume_mount_path": "/palworld",
      "http": false
    },
    {
      "name": "playit",
      "source": {
        "image": "ghcr.io/playit-cloud/playit-agent:1.0.8"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "palworld",
      "description": "Server timezone for backup schedules.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PLAYERS",
      "service": "palworld",
      "description": "Maximum number of players allowed to connect simultaneously (1-32). Each player slot consumes additional memory.",
      "secret": false,
      "strategy": "default",
      "default": "16"
    },
    {
      "key": "COMMUNITY",
      "service": "palworld",
      "description": "Show this server in the public server browser.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SERVER_NAME",
      "service": "palworld",
      "description": "Name shown in the Palworld server browser.",
      "secret": false,
      "strategy": "default",
      "default": "My Palworld Server"
    },
    {
      "key": "RCON_ENABLED",
      "service": "palworld",
      "description": "Enable remote console (RCON) access.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "palworld",
      "description": "REQUIRED. Admin password for RCON and REST API access. Auto-generated per deployment.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "BACKUP_ENABLED",
      "service": "palworld",
      "description": "Enable automated world backups to the persistent volume.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "OLD_BACKUP_DAYS",
      "service": "palworld",
      "description": "Number of days to keep backups before deletion.",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "DELETE_OLD_BACKUPS",
      "service": "palworld",
      "description": "Automatically delete backups older than OLD_BACKUP_DAYS.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "SECRET_KEY",
      "service": "playit",
      "description": "REQUIRED. Playit.gg agent secret key. Create a free account at playit.gg, then Account → Agents → Add Agent → copy the secret key. After deploy, configure the tunnel in the playit.gg dashboard: type UDP, local address palworld.railway.internal, local port 8211.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "palworld-1"
      }
    },
    "cli": "railway deploy --template palworld-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "97db5195-ce0f-4b71-a7d0-3114f3071fb4",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "609de498-7c80-4851-898d-5d3414508c5e": {
                  "icon": null,
                  "name": "palworld",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/INAPP-Mobile/palworld",
                    "rootDirectory": null
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Server timezone for backup schedules.",
                      "defaultValue": "UTC"
                    },
                    "PLAYERS": {
                      "isOptional": false,
                      "description": "Maximum number of players allowed to connect simultaneously (1-32). Each player slot consumes additional memory.",
                      "defaultValue": "16"
                    },
                    "COMMUNITY": {
                      "isOptional": false,
                      "description": "Show this server in the public server browser.",
                      "defaultValue": "true"
                    },
                    "PUBLIC_IP": {
                      "isOptional": true,
                      "description": "Public IP address. Leave empty for auto-detection.",
                      "defaultValue": ""
                    },
                    "PUBLIC_PORT": {
                      "isOptional": true,
                      "description": "Public port. Leave empty to use the default game port.",
                      "defaultValue": ""
                    },
                    "SERVER_NAME": {
                      "isOptional": false,
                      "description": "Name shown in the Palworld server browser.",
                      "defaultValue": "My Palworld Server"
                    },
                    "RCON_ENABLED": {
                      "isOptional": false,
                      "description": "Enable remote console (RCON) access.",
                      "defaultValue": "false"
                    },
                    "ADMIN_PASSWORD": {
                      "description": "REQUIRED. Admin password for RCON and REST API access. Auto-generated per deployment.",
                      "defaultValue": "{{ADMIN_PASSWORD}}"
                    },
                    "BACKUP_ENABLED": {
                      "isOptional": false,
                      "description": "Enable automated world backups to the persistent volume.",
                      "defaultValue": "true"
                    },
                    "OLD_BACKUP_DAYS": {
                      "isOptional": false,
                      "description": "Number of days to keep backups before deletion.",
                      "defaultValue": "30"
                    },
                    "SERVER_PASSWORD": {
                      "isOptional": true,
                      "description": "Optional password required to join the server. Leave empty for a public server.",
                      "defaultValue": ""
                    },
                    "DELETE_OLD_BACKUPS": {
                      "isOptional": false,
                      "description": "Automatically delete backups older than OLD_BACKUP_DAYS.",
                      "defaultValue": "false"
                    }
                  },
                  "volumeMounts": {
                    "609de498-7c80-4851-898d-5d3414508c5e": {
                      "mountPath": "/palworld"
                    }
                  }
                },
                "a4bf33d9-99c1-4bea-9ee6-877417029146": {
                  "name": "playit",
                  "source": {
                    "image": "ghcr.io/playit-cloud/playit-agent:1.0.8"
                  },
                  "variables": {
                    "SECRET_KEY": {
                      "description": "REQUIRED. Playit.gg agent secret key. Create a free account at playit.gg, then Account → Agents → Add Agent → copy the secret key. After deploy, configure the tunnel in the playit.gg dashboard: type UDP, local address palworld.railway.internal, local port 8211.",
                      "defaultValue": "{{SECRET_KEY}}"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-23T10:14:44.639Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-21T19:27:09.822Z",
  "success_rate_30d": 0.7143,
  "validation": {
    "last_run_id": "run_4f88f41ffdf74d1c80b9",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 89,
    "typical_build_seconds": 36,
    "typical_start_seconds": 10,
    "slowest_service": "palworld"
  }
}
