{
  "manifest_version": "1.0.0",
  "template": {
    "id": "06eb9b9d-ad33-41ac-9a7b-2f9bb4e4d35b",
    "slug": "wagtail",
    "name": "Wagtail",
    "description": "Content management system for building and editing websites",
    "url": "https://railway.com/deploy/wagtail",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/wagtail-railway"
    }
  },
  "services": [
    {
      "name": "wagtail",
      "source": {
        "repo": "https://github.com/gridalpha/wagtail-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "wagtail-scheduler",
      "source": {
        "repo": "https://github.com/gridalpha/wagtail-railway"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "wagtail-worker",
      "source": {
        "repo": "https://github.com/gridalpha/wagtail-railway"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "wagtail",
      "description": "HTTP port gunicorn binds",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "REDIS_URL",
      "service": "wagtail",
      "description": "Cache and session cache",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "wagtail",
      "description": "Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_ACCESS_KEY_ID",
      "service": "wagtail",
      "description": "Bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DJANGO_SECRET_KEY",
      "service": "wagtail",
      "description": "Django signing key, must stay stable",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "WAGTAIL_SITE_NAME",
      "service": "wagtail",
      "description": "Site name in header and titles",
      "secret": false,
      "strategy": "default",
      "default": "Wagtail"
    },
    {
      "key": "AWS_S3_REGION_NAME",
      "service": "wagtail",
      "description": "Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_S3_ENDPOINT_URL",
      "service": "wagtail",
      "description": "Bucket S3 endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_SECRET_ACCESS_KEY",
      "service": "wagtail",
      "description": "Bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DJANGO_SUPERUSER_EMAIL",
      "service": "wagtail",
      "description": "First administrator email",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "AWS_STORAGE_BUCKET_NAME",
      "service": "wagtail",
      "description": "Bucket holding uploaded media",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DJANGO_SUPERUSER_PASSWORD",
      "service": "wagtail",
      "description": "First administrator password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DJANGO_SUPERUSER_USERNAME",
      "service": "wagtail",
      "description": "First administrator username",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "wagtail",
      "description": "First-boot migration window",
      "secret": false,
      "strategy": "default",
      "default": "900"
    },
    {
      "key": "PORT",
      "service": "wagtail-scheduler",
      "description": "Port serving the health endpoint",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "REDIS_URL",
      "service": "wagtail-scheduler",
      "description": "Cache and session cache",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "wagtail-scheduler",
      "description": "Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_ACCESS_KEY_ID",
      "service": "wagtail-scheduler",
      "description": "Bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DJANGO_SECRET_KEY",
      "service": "wagtail-scheduler",
      "description": "Shared Django signing key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WAGTAIL_SITE_NAME",
      "service": "wagtail-scheduler",
      "description": "Site name used in generated URLs",
      "secret": false,
      "strategy": "default",
      "default": "Wagtail"
    },
    {
      "key": "AWS_S3_REGION_NAME",
      "service": "wagtail-scheduler",
      "description": "Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_S3_ENDPOINT_URL",
      "service": "wagtail-scheduler",
      "description": "Bucket S3 endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_SECRET_ACCESS_KEY",
      "service": "wagtail-scheduler",
      "description": "Bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_STORAGE_BUCKET_NAME",
      "service": "wagtail-scheduler",
      "description": "Bucket holding uploaded media",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "wagtail-scheduler",
      "description": "Waits for the schema on first boot",
      "secret": false,
      "strategy": "default",
      "default": "900"
    },
    {
      "key": "PORT",
      "service": "wagtail-worker",
      "description": "Port serving the health endpoint",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "REDIS_URL",
      "service": "wagtail-worker",
      "description": "Cache and session cache",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "wagtail-worker",
      "description": "Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_ACCESS_KEY_ID",
      "service": "wagtail-worker",
      "description": "Bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DJANGO_SECRET_KEY",
      "service": "wagtail-worker",
      "description": "Shared Django signing key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WAGTAIL_SITE_NAME",
      "service": "wagtail-worker",
      "description": "Site name used in generated URLs",
      "secret": false,
      "strategy": "default",
      "default": "Wagtail"
    },
    {
      "key": "AWS_S3_REGION_NAME",
      "service": "wagtail-worker",
      "description": "Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_S3_ENDPOINT_URL",
      "service": "wagtail-worker",
      "description": "Bucket S3 endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_SECRET_ACCESS_KEY",
      "service": "wagtail-worker",
      "description": "Bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_STORAGE_BUCKET_NAME",
      "service": "wagtail-worker",
      "description": "Bucket holding uploaded media",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "wagtail-worker",
      "description": "Waits for the schema on first boot",
      "secret": false,
      "strategy": "default",
      "default": "900"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Auth password, read by the server",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Cluster location on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Superuser created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate expiry in days",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Superuser password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "wagtail"
      }
    },
    "cli": "railway deploy --template wagtail",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "06eb9b9d-ad33-41ac-9a7b-2f9bb4e4d35b",
            "serializedConfig": {
              "buckets": {
                "ea19b245-ea4b-43a4-a224-3a26f5a6d90a": {
                  "name": "wagtail-media"
                }
              },
              "services": {
                "01b14e7e-f86e-45ea-9dcc-38d436c5e653": {
                  "icon": "https://cdn.simpleicons.org/wagtail/43b1b0.svg",
                  "name": "wagtail",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/wagtail-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port gunicorn binds",
                      "defaultValue": "8080"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Cache and session cache",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "AWS_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key",
                      "defaultValue": "${{wagtail-media.ACCESS_KEY_ID}}"
                    },
                    "DJANGO_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Django signing key, must stay stable",
                      "defaultValue": "{{DJANGO_SECRET_KEY}}"
                    },
                    "WAGTAIL_SITE_NAME": {
                      "isOptional": false,
                      "description": "Site name in header and titles",
                      "defaultValue": "Wagtail"
                    },
                    "AWS_S3_REGION_NAME": {
                      "isOptional": false,
                      "description": "Bucket region",
                      "defaultValue": "${{wagtail-media.REGION}}"
                    },
                    "AWS_S3_ENDPOINT_URL": {
                      "isOptional": false,
                      "description": "Bucket S3 endpoint",
                      "defaultValue": "${{wagtail-media.ENDPOINT}}"
                    },
                    "AWS_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret key",
                      "defaultValue": "${{wagtail-media.SECRET_ACCESS_KEY}}"
                    },
                    "DJANGO_SUPERUSER_EMAIL": {
                      "isOptional": false,
                      "description": "First administrator email",
                      "defaultValue": "admin@example.com"
                    },
                    "AWS_STORAGE_BUCKET_NAME": {
                      "isOptional": false,
                      "description": "Bucket holding uploaded media",
                      "defaultValue": "${{wagtail-media.BUCKET}}"
                    },
                    "DJANGO_SUPERUSER_PASSWORD": {
                      "isOptional": false,
                      "description": "First administrator password",
                      "defaultValue": "{{DJANGO_SUPERUSER_PASSWORD}}"
                    },
                    "DJANGO_SUPERUSER_USERNAME": {
                      "isOptional": false,
                      "description": "First administrator username",
                      "defaultValue": "admin"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "First-boot migration window",
                      "defaultValue": "900"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "6f4818f6-836d-4c08-b7ce-f8bf3a88ce46": {
                  "icon": "https://cdn.simpleicons.org/wagtail/43b1b0.svg",
                  "name": "wagtail-scheduler",
                  "deploy": {
                    "startCommand": "/app/entrypoint.sh scheduler",
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/wagtail-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port serving the health endpoint",
                      "defaultValue": "8080"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Cache and session cache",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "AWS_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key",
                      "defaultValue": "${{wagtail-media.ACCESS_KEY_ID}}"
                    },
                    "DJANGO_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Shared Django signing key",
                      "defaultValue": "${{wagtail.DJANGO_SECRET_KEY}}"
                    },
                    "WAGTAIL_SITE_NAME": {
                      "isOptional": false,
                      "description": "Site name used in generated URLs",
                      "defaultValue": "Wagtail"
                    },
                    "AWS_S3_REGION_NAME": {
                      "isOptional": false,
                      "description": "Bucket region",
                      "defaultValue": "${{wagtail-media.REGION}}"
                    },
                    "AWS_S3_ENDPOINT_URL": {
                      "isOptional": false,
                      "description": "Bucket S3 endpoint",
                      "defaultValue": "${{wagtail-media.ENDPOINT}}"
                    },
                    "AWS_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret key",
                      "defaultValue": "${{wagtail-media.SECRET_ACCESS_KEY}}"
                    },
                    "AWS_STORAGE_BUCKET_NAME": {
                      "isOptional": false,
                      "description": "Bucket holding uploaded media",
                      "defaultValue": "${{wagtail-media.BUCKET}}"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "Waits for the schema on first boot",
                      "defaultValue": "900"
                    }
                  }
                },
                "916cd6f4-1577-4da5-b06d-86ebc990bffc": {
                  "icon": "https://cdn.simpleicons.org/wagtail/43b1b0.svg",
                  "name": "wagtail-worker",
                  "deploy": {
                    "startCommand": "/app/entrypoint.sh worker",
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/wagtail-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port serving the health endpoint",
                      "defaultValue": "8080"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Cache and session cache",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "AWS_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key",
                      "defaultValue": "${{wagtail-media.ACCESS_KEY_ID}}"
                    },
                    "DJANGO_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Shared Django signing key",
                      "defaultValue": "${{wagtail.DJANGO_SECRET_KEY}}"
                    },
                    "WAGTAIL_SITE_NAME": {
                      "isOptional": false,
                      "description": "Site name used in generated URLs",
                      "defaultValue": "Wagtail"
                    },
                    "AWS_S3_REGION_NAME": {
                      "isOptional": false,
                      "description": "Bucket region",
                      "defaultValue": "${{wagtail-media.REGION}}"
                    },
                    "AWS_S3_ENDPOINT_URL": {
                      "isOptional": false,
                      "description": "Bucket S3 endpoint",
                      "defaultValue": "${{wagtail-media.ENDPOINT}}"
                    },
                    "AWS_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret key",
                      "defaultValue": "${{wagtail-media.SECRET_ACCESS_KEY}}"
                    },
                    "AWS_STORAGE_BUCKET_NAME": {
                      "isOptional": false,
                      "description": "Bucket holding uploaded media",
                      "defaultValue": "${{wagtail-media.BUCKET}}"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "Waits for the schema on first boot",
                      "defaultValue": "900"
                    }
                  }
                },
                "b3502570-d9d0-4109-932b-5508a3850887": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/redis.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Auth password, read by the server",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "b3502570-d9d0-4109-932b-5508a3850887": {
                      "mountPath": "/data"
                    }
                  }
                },
                "d650d191-2711-4929-8915-205772aba959": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/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": false,
                      "description": "Cluster location on the volume",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Superuser created on first boot",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "SSL certificate expiry in days",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "d650d191-2711-4929-8915-205772aba959": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "wagtail",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T22:14:50.114Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-21T19:31:48.119Z",
  "success_rate_30d": 0.1429,
  "validation": {
    "last_run_id": "run_3130a2889070495da128",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ],
    "typical_ready_seconds": 130
  }
}
