{
  "manifest_version": "1.0.0",
  "template": {
    "id": "8ee63008-77f5-40ca-a7bc-2195e9e4821f",
    "slug": "daaDbI",
    "name": "Postgres17 + Extensions",
    "description": "Railway Postgres 17 + Extensions",
    "url": "https://railway.com/deploy/daaDbI",
    "upstream": {
      "image": "ghcr.io/derek-rein/postgres-ssl:latest"
    }
  },
  "services": [
    {
      "name": "postgres-ssl:17",
      "source": {
        "image": "ghcr.io/derek-rein/postgres-ssl:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "tcp_ports": [
        5432
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "postgres-ssl:17",
      "description": "Storage Location",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "postgres-ssl:17",
      "description": "Postgres Host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPORT",
      "service": "postgres-ssl:17",
      "description": "Postgres Port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGUSER",
      "service": "postgres-ssl:17",
      "description": "Postgres User",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "postgres-ssl:17",
      "description": "Postgres Database Name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "postgres-ssl:17",
      "description": "Postgres Password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "postgres-ssl:17",
      "description": "Postgres Database Name",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "postgres-ssl:17",
      "description": "Connection Url (Public)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPRIVATEHOST",
      "service": "postgres-ssl:17",
      "description": "Postgres Private Host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgres-ssl:17",
      "description": "Postgres Username",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "postgres-ssl:17",
      "description": "SSL Certificate Expiration (Days)",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres-ssl:17",
      "description": "Randomly Generated Password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PRIVATE_URL",
      "service": "postgres-ssl:17",
      "description": "Database Connection URL (Internal)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "daaDbI"
      }
    },
    "cli": "railway deploy --template daaDbI",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "8ee63008-77f5-40ca-a7bc-2195e9e4821f",
            "serializedConfig": {
              "services": {
                "e1dacb78-828e-4ad7-8c25-846c671396a4": {
                  "icon": "https://w7.pngwing.com/pngs/448/730/png-transparent-postgresql-plain-logo-icon.png",
                  "name": "postgres-ssl:17",
                  "source": {
                    "image": "ghcr.io/derek-rein/postgres-ssl:latest"
                  },
                  "variables": {
                    "PGDATA": {
                      "description": "Storage Location",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "description": "Postgres Host",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_DOMAIN}}"
                    },
                    "PGPORT": {
                      "description": "Postgres Port",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_PORT}}"
                    },
                    "PGUSER": {
                      "description": "Postgres User",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "description": "Postgres Database Name",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "description": "Postgres Password",
                      "defaultValue": "${{postgres-ssl:17.POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "description": "Postgres Database Name",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "description": "Connection Url (Public)",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "PGPRIVATEHOST": {
                      "description": "Postgres Private Host",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "POSTGRES_USER": {
                      "description": "Postgres Username",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "description": "SSL Certificate Expiration (Days)",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "description": "Randomly Generated Password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PRIVATE_URL": {
                      "description": "Database Connection URL (Internal)",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5432": {}
                    }
                  },
                  "volumeMounts": {
                    "e1dacb78-828e-4ad7-8c25-846c671396a4": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T16:15:12.787Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-21T12:27:11.056Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_ccacd2aec01d4e9eaa26",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 82,
    "typical_build_seconds": 0,
    "typical_start_seconds": 20,
    "slowest_service": "postgres-ssl:17"
  }
}
