{
  "manifest_version": "1.0.0",
  "template": {
    "id": "bcc25a92-4323-4059-ab0f-c18910ba6b48",
    "slug": "nBQI2d",
    "name": "Authentik",
    "description": "Open-source Identity Provider that emphasizes flexibility and versatility.",
    "url": "https://railway.com/deploy/nBQI2d",
    "upstream": {
      "repo_url": "https://github.com/leonardochappuis/authentik-railway"
    }
  },
  "services": [
    {
      "name": "Redis",
      "source": {
        "image": "bitnami/redis"
      },
      "needs_volume": true,
      "volume_mount_path": "/bitnami",
      "tcp_ports": [
        6379
      ],
      "http": false
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "tcp_ports": [
        5432
      ],
      "http": false
    },
    {
      "name": "server",
      "source": {
        "repo": "https://github.com/leonardochappuis/authentik-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "worker",
      "source": {
        "repo": "https://github.com/leonardochappuis/authentik-railway"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Default Proxy Domain",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Default Proxy port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Default User",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Redis URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Linking variables as default config.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Default Redis Password",
      "secret": true,
      "strategy": "default",
      "default": "IepNEEIelIACAbLDpdbGKMFGEnFkoBhI"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Redis",
      "description": "Run as Root",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "REDIS_PRIVATE_URL",
      "service": "Redis",
      "description": "Redis Private URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAILWAY_RUN_AS_ROOT",
      "service": "Redis",
      "description": "Run as Root",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Mount path of volume",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Default PGHOST",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Default TCP proxy port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Just linking variables",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Default Config",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Just linking variables",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default DB Name",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Database URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Default User",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "Time to expire cert",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Secret Postgres Password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PRIVATE_URL",
      "service": "Postgres",
      "description": "Database Private URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PORT",
      "service": "server",
      "description": "HTTP port",
      "secret": false,
      "strategy": "default",
      "default": "9000"
    },
    {
      "key": "AUTHENTIK_SECRET_KEY",
      "service": "server",
      "description": "Secret key. Best left autogenerated",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "AUTHENTIK_REDIS__HOST",
      "service": "server",
      "description": "Redis Host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AUTHENTIK_REDIS__PORT",
      "service": "server",
      "description": "Redis Port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AUTHENTIK_REDIS__PASSWORD",
      "service": "server",
      "description": "Redis Password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AUTHENTIK_POSTGRESQL__HOST",
      "service": "server",
      "description": "Postgres Host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AUTHENTIK_POSTGRESQL__NAME",
      "service": "server",
      "description": "Postgres DB Name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AUTHENTIK_POSTGRESQL__PORT",
      "service": "server",
      "description": "Postgres Port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AUTHENTIK_POSTGRESQL__USER",
      "service": "server",
      "description": "Postgres User",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AUTHENTIK_POSTGRESQL__PASSWORD",
      "service": "server",
      "description": "Postgres Password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "worker",
      "description": "HTTP Port",
      "secret": false,
      "strategy": "default",
      "default": "9000"
    },
    {
      "key": "AUTHENTIK_SECRET_KEY",
      "service": "worker",
      "description": "Secret key. Linked to server.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AUTHENTIK_REDIS__HOST",
      "service": "worker",
      "description": "Redis Host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AUTHENTIK_REDIS__PORT",
      "service": "worker",
      "description": "Redis Port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AUTHENTIK_REDIS__PASSWORD",
      "service": "worker",
      "description": "Redis Password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AUTHENTIK_POSTGRESQL__HOST",
      "service": "worker",
      "description": "Postgres Host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AUTHENTIK_POSTGRESQL__NAME",
      "service": "worker",
      "description": "Postgres DB Name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AUTHENTIK_POSTGRESQL__PORT",
      "service": "worker",
      "description": "Postgres Port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AUTHENTIK_POSTGRESQL__USER",
      "service": "worker",
      "description": "Postgres User",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AUTHENTIK_POSTGRESQL__PASSWORD",
      "service": "worker",
      "description": "Postgres Pasword",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "nBQI2d"
      }
    },
    "cli": "railway deploy --template nBQI2d",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "bcc25a92-4323-4059-ab0f-c18910ba6b48",
            "serializedConfig": {
              "services": {
                "38f1792c-149e-4a44-92f2-34aa6141b4af": {
                  "name": "Redis",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "bitnami/redis"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": true,
                      "description": "Default Proxy Domain",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": true,
                      "description": "Default Proxy port",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_PORT}}"
                    },
                    "REDISUSER": {
                      "isOptional": true,
                      "description": "Default User",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": true,
                      "description": "Redis URL",
                      "defaultValue": "redis://default:${{REDIS_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": true,
                      "description": "Linking variables as default config.",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": true,
                      "description": "Default Redis Password",
                      "defaultValue": "IepNEEIelIACAbLDpdbGKMFGEnFkoBhI"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": true,
                      "description": "Run as Root",
                      "defaultValue": "0"
                    },
                    "REDIS_PRIVATE_URL": {
                      "isOptional": true,
                      "description": "Redis Private URL",
                      "defaultValue": "redis://default:${{REDIS_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "RAILWAY_RUN_AS_ROOT": {
                      "isOptional": true,
                      "description": "Run as Root",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "6379": {}
                    },
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "38f1792c-149e-4a44-92f2-34aa6141b4af": {
                      "mountPath": "/bitnami"
                    }
                  }
                },
                "4af26c29-5c95-4b60-87ac-cadf6d50eb87": {
                  "name": "Postgres",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:latest"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": true,
                      "description": "Mount path of volume",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": true,
                      "description": "Default PGHOST",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": true,
                      "description": "Default TCP proxy port",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_PORT}}"
                    },
                    "PGUSER": {
                      "isOptional": true,
                      "description": "Just linking variables",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": true,
                      "description": "Default Config",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": true,
                      "description": "Just linking variables",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": true,
                      "description": "Default DB Name",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": true,
                      "description": "Database URL",
                      "defaultValue": "postgres://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": true,
                      "description": "Default User",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "Time to expire cert",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": true,
                      "description": "Secret Postgres Password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PRIVATE_URL": {
                      "isOptional": true,
                      "description": "Database Private URL",
                      "defaultValue": "postgres://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5432": {}
                    },
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "4af26c29-5c95-4b60-87ac-cadf6d50eb87": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  },
                  "haTemplateCode": "postgres-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxy",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "Routes traffic to the primary",
                      "defaultValue": 3
                    },
                    "replica": {
                      "label": "Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5,
                        6,
                        7
                      ],
                      "nodeLabel": "Postgres",
                      "description": "Streaming replicas for automatic failover",
                      "defaultValue": 2
                    },
                    "internal": {
                      "label": "Coordinator Nodes",
                      "options": [
                        3,
                        5,
                        7,
                        9
                      ],
                      "nodeLabel": "etcd",
                      "defaultValue": 3
                    },
                    "description": "This will convert your Postgres database to an HA cluster with Patroni failover and etcd consensus."
                  }
                },
                "a9e621cb-3eb7-4690-b9aa-d5ebc5e3ae3d": {
                  "name": "server",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "repo": "https://github.com/leonardochappuis/authentik-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "HTTP port",
                      "defaultValue": "9000"
                    },
                    "AUTHENTIK_SECRET_KEY": {
                      "isOptional": true,
                      "description": "Secret key. Best left autogenerated",
                      "defaultValue": "{{AUTHENTIK_SECRET_KEY}}"
                    },
                    "AUTHENTIK_REDIS__HOST": {
                      "isOptional": true,
                      "description": "Redis Host",
                      "defaultValue": "${{Redis.REDISHOST}}"
                    },
                    "AUTHENTIK_REDIS__PORT": {
                      "isOptional": true,
                      "description": "Redis Port",
                      "defaultValue": "${{Redis.REDISPORT}}"
                    },
                    "AUTHENTIK_REDIS__PASSWORD": {
                      "isOptional": true,
                      "description": "Redis Password",
                      "defaultValue": "${{Redis.REDISPASSWORD}}"
                    },
                    "AUTHENTIK_POSTGRESQL__HOST": {
                      "isOptional": true,
                      "description": "Postgres Host",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "AUTHENTIK_POSTGRESQL__NAME": {
                      "isOptional": true,
                      "description": "Postgres DB Name",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "AUTHENTIK_POSTGRESQL__PORT": {
                      "isOptional": true,
                      "description": "Postgres Port",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "AUTHENTIK_POSTGRESQL__USER": {
                      "isOptional": true,
                      "description": "Postgres User",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "AUTHENTIK_POSTGRESQL__PASSWORD": {
                      "isOptional": true,
                      "description": "Postgres Password",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {}
                },
                "d41e1b3b-3b4c-4725-974d-562c2efc143d": {
                  "name": "worker",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "repo": "https://github.com/leonardochappuis/authentik-railway",
                    "rootDirectory": "/worker"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP Port",
                      "defaultValue": "9000"
                    },
                    "AUTHENTIK_SECRET_KEY": {
                      "isOptional": true,
                      "description": "Secret key. Linked to server.",
                      "defaultValue": "${{server.AUTHENTIK_SECRET_KEY}}"
                    },
                    "AUTHENTIK_REDIS__HOST": {
                      "isOptional": true,
                      "description": "Redis Host",
                      "defaultValue": "${{Redis.REDISHOST}}"
                    },
                    "AUTHENTIK_REDIS__PORT": {
                      "isOptional": true,
                      "description": "Redis Port",
                      "defaultValue": "${{Redis.REDISPORT}}"
                    },
                    "AUTHENTIK_REDIS__PASSWORD": {
                      "isOptional": true,
                      "description": "Redis Password",
                      "defaultValue": "${{Redis.REDISPASSWORD}}"
                    },
                    "AUTHENTIK_POSTGRESQL__HOST": {
                      "isOptional": true,
                      "description": "Postgres Host",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "AUTHENTIK_POSTGRESQL__NAME": {
                      "isOptional": true,
                      "description": "Postgres DB Name",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "AUTHENTIK_POSTGRESQL__PORT": {
                      "isOptional": true,
                      "description": "Postgres Port",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "AUTHENTIK_POSTGRESQL__USER": {
                      "isOptional": true,
                      "description": "Postgres User",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "AUTHENTIK_POSTGRESQL__PASSWORD": {
                      "isOptional": true,
                      "description": "Postgres Pasword",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {}
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T04:14:41.730Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-21T15:56:31.360Z",
  "success_rate_30d": 0.1667,
  "validation": {
    "last_run_id": "run_9d6adc4d72414ffa8922",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "BUILDING,BUILDING,SUCCESS,CRASHED"
      }
    ],
    "typical_ready_seconds": 119,
    "typical_build_seconds": 50,
    "typical_start_seconds": 20,
    "slowest_service": "worker"
  }
}
