{
  "manifest_version": "1.0.0",
  "template": {
    "id": "7a7822ca-06bd-4e95-a106-7ecba4d35c3e",
    "slug": "bichon-1",
    "name": "Bichon",
    "description": "Bichon — end-to-end encrypted email storage server with web UI",
    "url": "https://railway.com/deploy/bichon-1",
    "upstream": {
      "repo_url": "https://github.com/INAPP-Mobile/railway-bichon"
    }
  },
  "services": [
    {
      "name": "bichon",
      "source": {
        "repo": "https://github.com/INAPP-Mobile/railway-bichon"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "bichon",
      "description": "HTTP port Railway routes to. Must match BICHON_HTTP_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "15630"
    },
    {
      "key": "BICHON_ROOT_DIR",
      "service": "bichon",
      "description": "Absolute path for all persistent data. Mounted as a Railway volume at /data.",
      "secret": false,
      "strategy": "default",
      "default": "/data"
    },
    {
      "key": "BICHON_HTTP_PORT",
      "service": "bichon",
      "description": "Internal HTTP port the Bichon server listens on. Must match PORT.",
      "secret": false,
      "strategy": "default",
      "default": "15630"
    },
    {
      "key": "BICHON_PUBLIC_URL",
      "service": "bichon",
      "description": "Public URL for OAuth redirects and docs links. Auto-resolves to your Railway domain. Override for custom domains.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "BICHON_ENCRYPT_PASSWORD",
      "service": "bichon",
      "description": "REQUIRED. Password used to encrypt stored credentials (IMAP passwords, OAuth tokens). Auto-generated a random 32-char secret per deployment — keep it to access stored accounts later; changing it locks out stored accounts.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "bichon-1"
      }
    },
    "cli": "railway deploy --template bichon-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "7a7822ca-06bd-4e95-a106-7ecba4d35c3e",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "26f476fc-50e6-4008-88da-4ee626deb120": {
                  "icon": null,
                  "name": "bichon",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/INAPP-Mobile/railway-bichon",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port Railway routes to. Must match BICHON_HTTP_PORT.",
                      "defaultValue": "15630"
                    },
                    "BICHON_ROOT_DIR": {
                      "isOptional": false,
                      "description": "Absolute path for all persistent data. Mounted as a Railway volume at /data.",
                      "defaultValue": "/data"
                    },
                    "BICHON_HTTP_PORT": {
                      "description": "Internal HTTP port the Bichon server listens on. Must match PORT.",
                      "defaultValue": "15630"
                    },
                    "BICHON_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public URL for OAuth redirects and docs links. Auto-resolves to your Railway domain. Override for custom domains.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "BICHON_ENCRYPT_PASSWORD": {
                      "isOptional": false,
                      "description": "REQUIRED. Password used to encrypt stored credentials (IMAP passwords, OAuth tokens). Auto-generated a random 32-char secret per deployment — keep it to access stored accounts later; changing it locks out stored accounts.",
                      "defaultValue": "{{BICHON_ENCRYPT_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "26f476fc-50e6-4008-88da-4ee626deb120": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-19T10:14:38.021Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-17T10:04:05.318Z",
  "success_rate_30d": 0.8,
  "validation": {
    "last_run_id": "run_c3d5e6182c304175b35d",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 111,
    "typical_build_seconds": 12,
    "typical_start_seconds": 10,
    "slowest_service": "bichon"
  }
}
