{
  "manifest_version": "1.0.0",
  "template": {
    "id": "bd798a83-41ce-403c-9f1f-47b96b62881d",
    "slug": "authorizer-or-just-updated-auth0-alterna",
    "name": "Authorizer | (Just Updated) Auth0 Alternative, Login Page + Postgres Included",
    "description": "Auth0 alternative: login page, admin dashboard and Postgres included",
    "url": "https://railway.com/deploy/authorizer-or-just-updated-auth0-alterna",
    "upstream": {
      "image": "lakhansamani/authorizer:2.4.2@sha256:7c87f8c4c39bdb245addf63f3f74dc2139d1129421900365ca2e645979532709"
    }
  },
  "services": [
    {
      "name": "postgres",
      "source": {
        "image": "postgres:18.6@sha256:74935e72241653ca55e0414067e6d8763aceb8a810eb51b452253ec3dcfc4336"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "http": false
    },
    {
      "name": "authorizer",
      "source": {
        "image": "lakhansamani/authorizer:2.4.2@sha256:7c87f8c4c39bdb245addf63f3f74dc2139d1129421900365ca2e645979532709"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "CLIENT_ID",
      "service": "authorizer",
      "description": "Provide a value for CLIENT_ID.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "JWT_SECRET",
      "service": "authorizer",
      "description": "Provide a value for JWT_SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ADMIN_SECRET",
      "service": "authorizer",
      "description": "Provide a value for ADMIN_SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DATABASE_URL",
      "service": "authorizer",
      "description": "Provide a value for DATABASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "CLIENT_SECRET",
      "service": "authorizer",
      "description": "Provide a value for CLIENT_SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "authorizer",
      "description": "Provide a value for ENCRYPTION_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "authorizer-or-just-updated-auth0-alterna"
      }
    },
    "cli": "railway deploy --template authorizer-or-just-updated-auth0-alterna",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "bd798a83-41ce-403c-9f1f-47b96b62881d",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "385819f3-6e3c-479c-9be9-e0c64641bac8": {
                  "icon": null,
                  "name": "postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:18.6@sha256:74935e72241653ca55e0414067e6d8763aceb8a810eb51b452253ec3dcfc4336"
                  },
                  "variables": {
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "385819f3-6e3c-479c-9be9-e0c64641bac8": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                },
                "ac1cb901-9362-4784-af0f-58797bfb8c6a": {
                  "icon": null,
                  "name": "authorizer",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'exec ./authorizer --url=\"https://$RAILWAY_PUBLIC_DOMAIN\" --allowed-origins=\"https://$RAILWAY_PUBLIC_DOMAIN\" --client-id=\"$CLIENT_ID\" --client-secret=\"$CLIENT_SECRET\" --admin-secret=\"$ADMIN_SECRET\" --jwt-type=HS256 --jwt-secret=\"$JWT_SECRET\" --encryption-key=\"$ENCRYPTION_KEY\" --database-type=postgres --database-url=\"$DATABASE_URL\" --env=production --log-level=info --disable-mfa --http-port=\"${PORT:-8080}\"'",
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "lakhansamani/authorizer:2.4.2@sha256:7c87f8c4c39bdb245addf63f3f74dc2139d1129421900365ca2e645979532709"
                  },
                  "variables": {
                    "CLIENT_ID": {
                      "isOptional": false,
                      "defaultValue": "{{CLIENT_ID}}"
                    },
                    "JWT_SECRET": {
                      "isOptional": false,
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "ADMIN_SECRET": {
                      "isOptional": false,
                      "defaultValue": "{{ADMIN_SECRET}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "defaultValue": "postgres://postgres:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/postgres?sslmode=disable"
                    },
                    "CLIENT_SECRET": {
                      "isOptional": false,
                      "defaultValue": "{{CLIENT_SECRET}}"
                    },
                    "ENCRYPTION_KEY": {
                      "isOptional": false,
                      "defaultValue": "{{ENCRYPTION_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "authorizer",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-10-30T04:14:55.026Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-21T03:19:06.510Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_edea8bf8f14b4c46884a",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 37,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "authorizer"
  }
}
