{
  "manifest_version": "1.0.0",
  "template": {
    "id": "e6b19995-3016-4505-a4ac-46bf2b19719f",
    "slug": "part-db",
    "name": "Part-DB",
    "description": "Electronic parts inventory with SQLite, attachments, and persistent media.",
    "url": "https://railway.com/deploy/part-db",
    "upstream": {
      "repo_url": "https://github.com/orenaksakal/railway-templates"
    }
  },
  "services": [
    {
      "name": "part-db",
      "source": {
        "repo": "https://github.com/orenaksakal/railway-templates"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "part-db",
      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "APP_ENV",
      "service": "part-db",
      "description": "App env for part-db. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "docker"
    },
    {
      "key": "APP_SECRET",
      "service": "part-db",
      "description": "Generated app secret. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DATABASE_URL",
      "service": "part-db",
      "description": "SQLite database on the persistent /data volume. Back up together with uploaded files.",
      "secret": false,
      "strategy": "default",
      "default": "sqlite:////data/db/app.db"
    },
    {
      "key": "DEFAULT_LANG",
      "service": "part-db",
      "description": "Default lang for part-db. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "en"
    },
    {
      "key": "USE_GRAVATAR",
      "service": "part-db",
      "description": "Use gravatar for part-db. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "BASE_CURRENCY",
      "service": "part-db",
      "description": "Choose the accounting currency before first boot; changing this does not convert stored prices.",
      "secret": false,
      "strategy": "default",
      "default": "EUR"
    },
    {
      "key": "DB_AUTOMIGRATE",
      "service": "part-db",
      "description": "Db automigrate for part-db. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "TRUSTED_PROXIES",
      "service": "part-db",
      "description": "Trusted proxies for part-db. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "127.0.0.0/8,::1,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,fc00::/7"
    },
    {
      "key": "DEFAULT_TIMEZONE",
      "service": "part-db",
      "description": "Default timezone for part-db. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "INITIAL_ADMIN_PW",
      "service": "part-db",
      "description": "Generated initial administrator password; used only by the first database migration. Change it in the app after setup.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "part-db",
      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
      "secret": false,
      "strategy": "default",
      "default": "templates/round9/part-db/Dockerfile"
    },
    {
      "key": "ALLOW_ATTACHMENT_DOWNLOADS",
      "service": "part-db",
      "description": "Allow attachment downloads for part-db. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "DATABASE_SQLITE_ENFORCE_FOREIGN_KEYS",
      "service": "part-db",
      "description": "Database sqlite enforce foreign keys for part-db. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": true,
      "strategy": "default",
      "default": "1"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "part-db"
      }
    },
    "cli": "railway deploy --template part-db",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "e6b19995-3016-4505-a4ac-46bf2b19719f",
            "serializedConfig": {
              "services": {
                "a891f8eb-079e-5a10-906e-4cc64fd913ef": {
                  "name": "part-db",
                  "build": {
                    "builder": "RAILPACK",
                    "dockerfilePath": "templates/round9/part-db/Dockerfile"
                  },
                  "deploy": {
                    "healthcheckPath": "/login",
                    "requiredMountPath": "/data",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "orenaksakal/railway-templates",
                    "branch": "codex/unique-template-drafts"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
                      "defaultValue": "80"
                    },
                    "APP_ENV": {
                      "isOptional": false,
                      "description": "App env for part-db. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "docker"
                    },
                    "APP_SECRET": {
                      "isOptional": false,
                      "description": "Generated app secret. Keep private and preserve with backups.",
                      "defaultValue": "{{APP_SECRET}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "SQLite database on the persistent /data volume. Back up together with uploaded files.",
                      "defaultValue": "sqlite:////data/db/app.db"
                    },
                    "DEFAULT_LANG": {
                      "isOptional": false,
                      "description": "Default lang for part-db. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "en"
                    },
                    "USE_GRAVATAR": {
                      "isOptional": false,
                      "description": "Use gravatar for part-db. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "0"
                    },
                    "BASE_CURRENCY": {
                      "isOptional": false,
                      "description": "Choose the accounting currency before first boot; changing this does not convert stored prices.",
                      "defaultValue": "EUR"
                    },
                    "DB_AUTOMIGRATE": {
                      "isOptional": false,
                      "description": "Db automigrate for part-db. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "false"
                    },
                    "TRUSTED_PROXIES": {
                      "isOptional": false,
                      "description": "Trusted proxies for part-db. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "127.0.0.0/8,::1,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,fc00::/7"
                    },
                    "DEFAULT_TIMEZONE": {
                      "isOptional": false,
                      "description": "Default timezone for part-db. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "UTC"
                    },
                    "INITIAL_ADMIN_PW": {
                      "isOptional": false,
                      "description": "Generated initial administrator password; used only by the first database migration. Change it in the app after setup.",
                      "defaultValue": "{{INITIAL_ADMIN_PW}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
                      "defaultValue": "templates/round9/part-db/Dockerfile"
                    },
                    "ALLOW_ATTACHMENT_DOWNLOADS": {
                      "isOptional": false,
                      "description": "Allow attachment downloads for part-db. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "0"
                    },
                    "DATABASE_SQLITE_ENFORCE_FOREIGN_KEYS": {
                      "isOptional": false,
                      "description": "Database sqlite enforce foreign keys for part-db. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "1"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  },
                  "volumeMounts": {
                    "5b5870b3-3a90-5acf-b782-c40370b78c2c": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "part-db",
      "method": "GET",
      "path": "/login",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-19T10:14:38.021Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-19T08:04:32.738Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_fd593d3a87f8485c91be",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "DEPLOYING"
      }
    ]
  }
}
