{
  "manifest_version": "1.0.0",
  "template": {
    "id": "5de32c28-4969-4a59-b284-012b4a9f6652",
    "slug": "trek-1",
    "name": "TREK",
    "description": "A self-hosted travel/trip planner with real-time collaboration and more.",
    "url": "https://railway.com/deploy/trek-1",
    "upstream": {
      "image": "mauriceboe/trek:latest"
    }
  },
  "services": [
    {
      "name": "Trek",
      "source": {
        "image": "mauriceboe/trek:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/mnt/trek",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "Trek",
      "description": "Provide a value for TZ.",
      "secret": false,
      "strategy": "default",
      "default": "Australia/Brisbane"
    },
    {
      "key": "NODE_ENV",
      "service": "Trek",
      "description": "Provide a value for NODE_ENV.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "LOG_LEVEL",
      "service": "Trek",
      "description": "Provide a value for LOG_LEVEL.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "FORCE_HTTPS",
      "service": "Trek",
      "description": "Provide a value for FORCE_HTTPS.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "TRUST_PROXY",
      "service": "Trek",
      "description": "Provide a value for TRUST_PROXY.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "Trek",
      "description": "Provide a value for ENCRYPTION_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ALLOWED_ORIGINS",
      "service": "Trek",
      "description": "Provide a value for ALLOWED_ORIGINS.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "ALLOW_INTERNAL_NETWORK",
      "service": "Trek",
      "description": "Provide a value for ALLOW_INTERNAL_NETWORK.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "trek-1"
      }
    },
    "cli": "railway deploy --template trek-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "5de32c28-4969-4a59-b284-012b4a9f6652",
            "serializedConfig": {
              "services": {
                "c9e5a02f-dd45-4b14-8bee-f70bcec493de": {
                  "icon": "https://raw.githubusercontent.com/mauriceboe/TREK/refs/heads/main/server/public/icons/icon-512x512.png",
                  "name": "Trek",
                  "deploy": {
                    "healthcheckPath": ""
                  },
                  "source": {
                    "image": "mauriceboe/trek:latest"
                  },
                  "variables": {
                    "TZ": {
                      "defaultValue": "Australia/Brisbane"
                    },
                    "NODE_ENV": {
                      "defaultValue": "production"
                    },
                    "LOG_LEVEL": {
                      "defaultValue": "info"
                    },
                    "FORCE_HTTPS": {
                      "defaultValue": "true"
                    },
                    "TRUST_PROXY": {
                      "defaultValue": "1"
                    },
                    "ENCRYPTION_KEY": {
                      "defaultValue": "{{ENCRYPTION_KEY}}"
                    },
                    "ALLOWED_ORIGINS": {
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "ALLOW_INTERNAL_NETWORK": {
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "c9e5a02f-dd45-4b14-8bee-f70bcec493de": {
                      "mountPath": "/mnt/trek"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-09T09:57:00.873Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_876b8052233c419e9be7",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 57,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "Trek"
  }
}
