{
  "manifest_version": "1.0.0",
  "template": {
    "id": "454304bb-0d1d-446b-8b74-3a46678ef780",
    "slug": "woodpecker",
    "name": "Woodpecker-CI",
    "description": "Continuous integration server that runs builds from your Git repos",
    "url": "https://railway.com/deploy/woodpecker",
    "upstream": {
      "image": "woodpeckerci/woodpecker-server:v3"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "woodpecker-agent",
      "source": {
        "repo": "https://github.com/gridalpha/woodpecker-ci-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/woodpecker",
      "http": false
    },
    {
      "name": "woodpecker-server",
      "source": {
        "image": "woodpeckerci/woodpecker-server:v3"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "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": "woodpecker-agent",
      "description": "Health check port",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "WOODPECKER_SERVER",
      "service": "woodpecker-agent",
      "description": "Server gRPC address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "WOODPECKER_BACKEND",
      "service": "woodpecker-agent",
      "description": "Run steps as processes",
      "secret": false,
      "strategy": "default",
      "default": "local"
    },
    {
      "key": "WOODPECKER_HOSTNAME",
      "service": "woodpecker-agent",
      "description": "Stable runner name across deploys",
      "secret": false,
      "strategy": "default",
      "default": "railway-agent"
    },
    {
      "key": "WOODPECKER_LOG_LEVEL",
      "service": "woodpecker-agent",
      "description": "Runner log verbosity",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "WOODPECKER_AGENT_SECRET",
      "service": "woodpecker-agent",
      "description": "Shared runner authentication secret",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WOODPECKER_MAX_WORKFLOWS",
      "service": "woodpecker-agent",
      "description": "Parallel workflows per runner",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "WOODPECKER_RAILWAY_DATA_DIR",
      "service": "woodpecker-agent",
      "description": "Volume mount path",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/woodpecker"
    },
    {
      "key": "PORT",
      "service": "woodpecker-server",
      "description": "HTTP port Railway health-checks",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "WOODPECKER_HOST",
      "service": "woodpecker-server",
      "description": "Public URL, used for OAuth callback",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "WOODPECKER_OPEN",
      "service": "woodpecker-server",
      "description": "Closed registration",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "WOODPECKER_ADMIN",
      "service": "woodpecker-server",
      "description": "Comma-separated forge logins granted admin",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "WOODPECKER_GITHUB",
      "service": "woodpecker-server",
      "description": "Enable the GitHub forge driver",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "WOODPECKER_GRPC_ADDR",
      "service": "woodpecker-server",
      "description": "gRPC listener for runners",
      "secret": false,
      "strategy": "default",
      "default": ":9000"
    },
    {
      "key": "WOODPECKER_LOG_LEVEL",
      "service": "woodpecker-server",
      "description": "Server log verbosity",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "WOODPECKER_GRPC_SECRET",
      "service": "woodpecker-server",
      "description": "Signs gRPC tokens issued to runners",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "WOODPECKER_SERVER_ADDR",
      "service": "woodpecker-server",
      "description": "HTTP listener address",
      "secret": false,
      "strategy": "default",
      "default": ":8000"
    },
    {
      "key": "WOODPECKER_AGENT_SECRET",
      "service": "woodpecker-server",
      "description": "Shared runner authentication secret",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "WOODPECKER_GITHUB_CLIENT",
      "service": "woodpecker-server",
      "description": "Paste your OAuth app client ID",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "WOODPECKER_GITHUB_SECRET",
      "service": "woodpecker-server",
      "description": "Paste your OAuth app client secret",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "WOODPECKER_DATABASE_DRIVER",
      "service": "woodpecker-server",
      "description": "Use Postgres, not SQLite",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "WOODPECKER_DATABASE_DATASOURCE",
      "service": "woodpecker-server",
      "description": "Private Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WOODPECKER_METRICS_SERVER_ADDR",
      "service": "woodpecker-server",
      "description": "Prometheus endpoint, private only",
      "secret": false,
      "strategy": "default",
      "default": ":9001"
    },
    {
      "key": "WOODPECKER_MAX_PIPELINE_TIMEOUT",
      "service": "woodpecker-server",
      "description": "Maximum pipeline timeout, minutes",
      "secret": false,
      "strategy": "default",
      "default": "120"
    },
    {
      "key": "WOODPECKER_DEFAULT_PIPELINE_TIMEOUT",
      "service": "woodpecker-server",
      "description": "Default pipeline timeout, minutes",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "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": "woodpecker"
      }
    },
    "cli": "railway deploy --template woodpecker",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "454304bb-0d1d-446b-8b74-3a46678ef780",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "4ede76af-a650-45f0-a72e-36fb293f54d3": {
                  "icon": "https://raw.githubusercontent.com/woodpecker-ci/woodpecker/main/web/src/assets/logo.svg",
                  "name": "woodpecker-agent",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/woodpecker-ci-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Health check port",
                      "defaultValue": "3000"
                    },
                    "WOODPECKER_SERVER": {
                      "isOptional": false,
                      "description": "Server gRPC address",
                      "defaultValue": "${{woodpecker-server.RAILWAY_PRIVATE_DOMAIN}}:9000"
                    },
                    "WOODPECKER_BACKEND": {
                      "isOptional": false,
                      "description": "Run steps as processes",
                      "defaultValue": "local"
                    },
                    "WOODPECKER_HOSTNAME": {
                      "isOptional": false,
                      "description": "Stable runner name across deploys",
                      "defaultValue": "railway-agent"
                    },
                    "WOODPECKER_LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Runner log verbosity",
                      "defaultValue": "info"
                    },
                    "WOODPECKER_AGENT_SECRET": {
                      "isOptional": false,
                      "description": "Shared runner authentication secret",
                      "defaultValue": "${{woodpecker-server.WOODPECKER_AGENT_SECRET}}"
                    },
                    "WOODPECKER_MAX_WORKFLOWS": {
                      "isOptional": false,
                      "description": "Parallel workflows per runner",
                      "defaultValue": "2"
                    },
                    "WOODPECKER_RAILWAY_DATA_DIR": {
                      "isOptional": false,
                      "description": "Volume mount path",
                      "defaultValue": "/var/lib/woodpecker"
                    }
                  },
                  "volumeMounts": {
                    "4ede76af-a650-45f0-a72e-36fb293f54d3": {
                      "mountPath": "/var/lib/woodpecker"
                    }
                  }
                },
                "7dcc7bb8-6fd7-4efa-9da1-98a71a5258f2": {
                  "icon": "https://raw.githubusercontent.com/woodpecker-ci/woodpecker/main/web/src/assets/logo.svg",
                  "name": "woodpecker-server",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "woodpeckerci/woodpecker-server:v3"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port Railway health-checks",
                      "defaultValue": "8000"
                    },
                    "WOODPECKER_HOST": {
                      "isOptional": false,
                      "description": "Public URL, used for OAuth callback",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "WOODPECKER_OPEN": {
                      "isOptional": false,
                      "description": "Closed registration",
                      "defaultValue": "false"
                    },
                    "WOODPECKER_ADMIN": {
                      "description": "Comma-separated forge logins granted admin",
                      "defaultValue": "{{WOODPECKER_ADMIN}}"
                    },
                    "WOODPECKER_GITHUB": {
                      "isOptional": false,
                      "description": "Enable the GitHub forge driver",
                      "defaultValue": "true"
                    },
                    "WOODPECKER_GRPC_ADDR": {
                      "isOptional": false,
                      "description": "gRPC listener for runners",
                      "defaultValue": ":9000"
                    },
                    "WOODPECKER_LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Server log verbosity",
                      "defaultValue": "info"
                    },
                    "WOODPECKER_GRPC_SECRET": {
                      "isOptional": false,
                      "description": "Signs gRPC tokens issued to runners",
                      "defaultValue": "{{WOODPECKER_GRPC_SECRET}}"
                    },
                    "WOODPECKER_SERVER_ADDR": {
                      "isOptional": false,
                      "description": "HTTP listener address",
                      "defaultValue": ":8000"
                    },
                    "WOODPECKER_AGENT_SECRET": {
                      "isOptional": false,
                      "description": "Shared runner authentication secret",
                      "defaultValue": "{{WOODPECKER_AGENT_SECRET}}"
                    },
                    "WOODPECKER_GITHUB_CLIENT": {
                      "description": "Paste your OAuth app client ID",
                      "defaultValue": "{{WOODPECKER_GITHUB_CLIENT}}"
                    },
                    "WOODPECKER_GITHUB_SECRET": {
                      "description": "Paste your OAuth app client secret",
                      "defaultValue": "{{WOODPECKER_GITHUB_SECRET}}"
                    },
                    "WOODPECKER_DATABASE_DRIVER": {
                      "isOptional": false,
                      "description": "Use Postgres, not SQLite",
                      "defaultValue": "postgres"
                    },
                    "WOODPECKER_DATABASE_DATASOURCE": {
                      "isOptional": false,
                      "description": "Private Postgres connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "WOODPECKER_METRICS_SERVER_ADDR": {
                      "isOptional": false,
                      "description": "Prometheus endpoint, private only",
                      "defaultValue": ":9001"
                    },
                    "WOODPECKER_MAX_PIPELINE_TIMEOUT": {
                      "isOptional": false,
                      "description": "Maximum pipeline timeout, minutes",
                      "defaultValue": "120"
                    },
                    "WOODPECKER_DEFAULT_PIPELINE_TIMEOUT": {
                      "isOptional": false,
                      "description": "Default pipeline timeout, minutes",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8000": {
                        "port": 8000
                      }
                    }
                  }
                },
                "8e497051-3c93-4129-b93b-aac2d4115dc3": {
                  "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": {
                    "8e497051-3c93-4129-b93b-aac2d4115dc3": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "woodpecker-server",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-17T22:14:38.342Z",
  "generator_version": "0.1.0"
}
