{
  "manifest_version": "1.0.0",
  "template": {
    "id": "c4aac918-3df0-451a-8a16-e35deefa9a1a",
    "slug": "fastapi-fullstack-railway",
    "name": "fastapi-fullstack-railway",
    "description": "The official FastAPI fullstack template",
    "url": "https://railway.com/deploy/fastapi-fullstack-railway",
    "upstream": {
      "repo_url": "https://github.com/lNamelessl/fastapi-fullstack-railway"
    }
  },
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "frontend+backend",
      "source": {
        "repo": "https://github.com/lNamelessl/fastapi-fullstack-railway"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "name of db(optional)",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "pg host(optional)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "port is not required",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "pg user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "db name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "pg password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "not required",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "db url",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "not required",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "ssl cert days",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "pg password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "not required for this template",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "SECRET_KEY",
      "service": "frontend+backend",
      "description": "change to the desired secret key",
      "secret": true,
      "strategy": "default",
      "default": "secret"
    },
    {
      "key": "DATABASE_URL",
      "service": "frontend+backend",
      "description": "db url",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PROJECT_NAME",
      "service": "frontend+backend",
      "description": "The optional project name",
      "secret": false,
      "strategy": "default",
      "default": "full stack app"
    },
    {
      "key": "FIRST_SUPERUSER",
      "service": "frontend+backend",
      "description": "change to the desired first user email",
      "secret": false,
      "strategy": "default",
      "default": "user@example.com"
    },
    {
      "key": "FIRST_SUPERUSER_PASSWORD",
      "service": "frontend+backend",
      "description": "change to the desired first user password (should be up to or more than 8 characters)",
      "secret": true,
      "strategy": "default",
      "default": "password123"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "fastapi-fullstack-railway"
      }
    },
    "cli": "railway deploy --template fastapi-fullstack-railway",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "c4aac918-3df0-451a-8a16-e35deefa9a1a",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "0e00e6e2-98e1-479e-9a49-5229007fd91b": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": true,
                      "description": "name of db(optional)",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": true,
                      "description": "pg host(optional)",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": true,
                      "description": "port is not required",
                      "defaultValue": "port${{Postgres.PGPORT}}"
                    },
                    "PGUSER": {
                      "isOptional": true,
                      "description": "pg user",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": true,
                      "description": "db name",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": true,
                      "description": "pg password",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": true,
                      "description": "not required",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": true,
                      "description": "db url",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": true,
                      "description": "not required",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "ssl cert days",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": true,
                      "description": "pg password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "not required for this template",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "0e00e6e2-98e1-479e-9a49-5229007fd91b": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "edd0c3fc-4b29-4a91-b64f-33a3323922ec": {
                  "icon": null,
                  "name": "frontend+backend",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/lNamelessl/fastapi-fullstack-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "SECRET_KEY": {
                      "isOptional": true,
                      "description": "change to the desired secret key",
                      "defaultValue": "secret"
                    },
                    "DATABASE_URL": {
                      "isOptional": true,
                      "description": "db url",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "PROJECT_NAME": {
                      "isOptional": true,
                      "description": "The optional project name",
                      "defaultValue": "full stack app"
                    },
                    "FIRST_SUPERUSER": {
                      "isOptional": true,
                      "description": "change to the desired first user email",
                      "defaultValue": "user@example.com"
                    },
                    "FIRST_SUPERUSER_PASSWORD": {
                      "isOptional": true,
                      "description": "change to the desired first user password (should be up to or more than 8 characters)",
                      "defaultValue": "password123"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "frontend+backend",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "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-19T12:56:21.314Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_d76010e2825c41a69856",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 105,
    "typical_build_seconds": 61,
    "typical_start_seconds": 11,
    "slowest_service": "frontend+backend"
  }
}
