{
  "manifest_version": "1.0.0",
  "template": {
    "id": "8259d44e-220c-4287-afdd-7f2e4b13b88c",
    "slug": "secured-signal-rest-api",
    "name": "Secured Signal Rest API",
    "description": "Template for a secure Signal Rest API",
    "url": "https://railway.com/deploy/secured-signal-rest-api",
    "upstream": {
      "image": "ghcr.io/codeshelldev/secured-signal-api:latest"
    }
  },
  "services": [
    {
      "name": "secured-signal",
      "source": {
        "image": "ghcr.io/codeshelldev/secured-signal-api:latest"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "signal-api",
      "source": {
        "image": "bbernhard/signal-cli-rest-api:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/home/.local/share/signal-cli",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "API__URL",
      "service": "secured-signal",
      "description": "API Url for the Signal Rest API",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "API__TOKENS",
      "service": "secured-signal",
      "description": "API tokens used to secure",
      "secret": true,
      "strategy": "default",
      "default": "[token1, token2, token3]"
    },
    {
      "key": "MODE",
      "service": "signal-api",
      "description": "Execution Mode ",
      "secret": false,
      "strategy": "default",
      "default": "normal"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "secured-signal-rest-api"
      }
    },
    "cli": "railway deploy --template secured-signal-rest-api",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "8259d44e-220c-4287-afdd-7f2e4b13b88c",
            "serializedConfig": {
              "services": {
                "0db5aecc-7fa5-48de-9ee2-fd738aba8747": {
                  "icon": "https://signal.org/assets/images/favicon/favicon.svg",
                  "name": "secured-signal",
                  "source": {
                    "image": "ghcr.io/codeshelldev/secured-signal-api:latest"
                  },
                  "variables": {
                    "API__URL": {
                      "description": "API Url for the Signal Rest API",
                      "defaultValue": "http://${{signal-api.RAILWAY_PRIVATE_DOMAIN}}:8080"
                    },
                    "API__TOKENS": {
                      "description": "API tokens used to secure",
                      "defaultValue": "[token1, token2, token3]"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "b6806145-8612-4233-8e46-5e4ec4128333": {
                  "icon": "https://signal.org/assets/images/favicon/favicon.svg",
                  "name": "signal-api",
                  "deploy": {
                    "healthcheckPath": "/v1/health"
                  },
                  "source": {
                    "image": "bbernhard/signal-cli-rest-api:latest"
                  },
                  "variables": {
                    "MODE": {
                      "description": "Execution Mode ",
                      "defaultValue": "normal"
                    }
                  },
                  "networking": {},
                  "volumeMounts": {
                    "b6806145-8612-4233-8e46-5e4ec4128333": {
                      "mountPath": "/home/.local/share/signal-cli"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-18T14:16:26.627Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_2e0e4f28f66b462eb8da",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 60,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "secured-signal"
  }
}
