{
  "manifest_version": "1.0.0",
  "template": {
    "id": "9e250948-c93d-48b5-84e6-9ed2bdc4f13f",
    "slug": "full-stack-fastapi-1",
    "name": "full-stack-fastapi-mongodb",
    "description": "One-Click Deploy official fullstack fastapi template with mongodb",
    "url": "https://railway.com/deploy/full-stack-fastapi-1",
    "upstream": {
      "repo_url": "https://github.com/lNamelessl/full-stack-fastapi-mongodb"
    }
  },
  "services": [
    {
      "name": "frontend+backend",
      "source": {
        "repo": "https://github.com/lNamelessl/full-stack-fastapi-mongodb"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "MongoDB",
      "source": {
        "image": "mongo:8.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/data/db",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "SECRET_KEY",
      "service": "frontend+backend",
      "description": "secret key(change the default)",
      "secret": true,
      "strategy": "default",
      "default": "secret"
    },
    {
      "key": "MONGODB_URI",
      "service": "frontend+backend",
      "description": "mongo uri",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PROJECT_NAME",
      "service": "frontend+backend",
      "description": "The project name",
      "secret": false,
      "strategy": "default",
      "default": "fullstack fastapi"
    },
    {
      "key": "FIRST_SUPERUSER",
      "service": "frontend+backend",
      "description": "change it before deployment",
      "secret": false,
      "strategy": "default",
      "default": "user@example.com"
    },
    {
      "key": "FIRST_SUPERUSER_PASSWORD",
      "service": "frontend+backend",
      "description": "change it before deployment",
      "secret": true,
      "strategy": "default",
      "default": "password123"
    },
    {
      "key": "MONGOHOST",
      "service": "MongoDB",
      "description": "mongo host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MONGOPORT",
      "service": "MongoDB",
      "description": "mongo port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGOUSER",
      "service": "MongoDB",
      "description": "mongo user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGO_URL",
      "service": "MongoDB",
      "description": "mongo url",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MONGOPASSWORD",
      "service": "MongoDB",
      "description": "mongo password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGO_INITDB_ROOT_PASSWORD",
      "service": "MongoDB",
      "description": "root password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MONGO_INITDB_ROOT_USERNAME",
      "service": "MongoDB",
      "description": "change before deployment mongo initial user name",
      "secret": false,
      "strategy": "default",
      "default": "user"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "full-stack-fastapi-1"
      }
    },
    "cli": "railway deploy --template full-stack-fastapi-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "9e250948-c93d-48b5-84e6-9ed2bdc4f13f",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "2e45b40d-923d-4039-992d-78e8b484918b": {
                  "icon": null,
                  "name": "frontend+backend",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/lNamelessl/full-stack-fastapi-mongodb",
                    "rootDirectory": null
                  },
                  "variables": {
                    "SECRET_KEY": {
                      "isOptional": true,
                      "description": "secret key(change the default)",
                      "defaultValue": "secret"
                    },
                    "MONGODB_URI": {
                      "isOptional": true,
                      "description": "mongo uri",
                      "defaultValue": "${{MongoDB.MONGO_URL}}"
                    },
                    "PROJECT_NAME": {
                      "isOptional": true,
                      "description": "The project name",
                      "defaultValue": "fullstack fastapi"
                    },
                    "FRONTEND_HOST": {
                      "isOptional": true,
                      "description": "It will automatically be filled upon deployment",
                      "defaultValue": ""
                    },
                    "FIRST_SUPERUSER": {
                      "isOptional": true,
                      "description": "change it before deployment",
                      "defaultValue": "user@example.com"
                    },
                    "FIRST_SUPERUSER_PASSWORD": {
                      "isOptional": true,
                      "description": "change it before deployment",
                      "defaultValue": "password123"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "e72416fd-c69c-447c-b174-50b3af190d55": {
                  "icon": "https://devicons.railway.app/i/mongodb.svg",
                  "name": "MongoDB",
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mongod --ipv6 --bind_ip ::,0.0.0.0 --setParameter diagnosticDataCollectionEnabled=false",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mongo:8.0"
                  },
                  "variables": {
                    "MONGOHOST": {
                      "isOptional": true,
                      "description": "mongo host",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MONGOPORT": {
                      "isOptional": true,
                      "description": "mongo port",
                      "defaultValue": "${{MongoDB.MONGOPORT}}"
                    },
                    "MONGOUSER": {
                      "isOptional": true,
                      "description": "mongo user",
                      "defaultValue": "{${{MongoDB.MONGOUSER}}"
                    },
                    "MONGO_URL": {
                      "isOptional": true,
                      "description": "mongo url",
                      "defaultValue": "mongodb://${{MONGO_INITDB_ROOT_USERNAME}}:${{MONGO_INITDB_ROOT_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:27017"
                    },
                    "MONGOPASSWORD": {
                      "isOptional": true,
                      "description": "mongo password",
                      "defaultValue": "${{MONGO_INITDB_ROOT_PASSWORD}}"
                    },
                    "MONGO_INITDB_ROOT_PASSWORD": {
                      "isOptional": true,
                      "description": "root password",
                      "defaultValue": "{{MONGO_INITDB_ROOT_PASSWORD}}"
                    },
                    "MONGO_INITDB_ROOT_USERNAME": {
                      "isOptional": true,
                      "description": "change before deployment mongo initial user name",
                      "defaultValue": "user"
                    }
                  },
                  "volumeMounts": {
                    "e72416fd-c69c-447c-b174-50b3af190d55": {
                      "mountPath": "/data/db"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "frontend+backend",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-23T16:14:58.907Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-21T20:34:08.344Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_f80fc29134384580a61a",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 142,
    "typical_build_seconds": 57,
    "typical_start_seconds": 20,
    "slowest_service": "frontend+backend"
  }
}
