{
  "manifest_version": "1.0.0",
  "template": {
    "id": "6f2469cb-86c9-4d38-a492-7e0f84887de8",
    "slug": "rundeck",
    "name": "Rundeck",
    "description": "Run and schedule your ops scripts from one permissioned web UI",
    "url": "https://railway.com/deploy/rundeck",
    "upstream": {
      "image": "axllent/mailpit:latest"
    }
  },
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "mailpit",
      "source": {
        "image": "axllent/mailpit:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "rundeck",
      "source": {
        "repo": "https://github.com/gridalpha/rundeck-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/home/rundeck/railway-data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "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"
    },
    {
      "key": "PORT",
      "service": "mailpit",
      "description": "Inbox UI port Railway probes",
      "secret": false,
      "strategy": "default",
      "default": "8025"
    },
    {
      "key": "MP_UI_AUTH",
      "service": "mailpit",
      "description": "Basic-auth credentials for the inbox",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MP_WEBROOT",
      "service": "mailpit",
      "description": "Inbox UI path prefix",
      "secret": false,
      "strategy": "default",
      "default": "/"
    },
    {
      "key": "MP_DATABASE",
      "service": "mailpit",
      "description": "Message store on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/data/mailpit.db"
    },
    {
      "key": "MP_MAX_MESSAGES",
      "service": "mailpit",
      "description": "Messages retained before rotation",
      "secret": false,
      "strategy": "default",
      "default": "5000"
    },
    {
      "key": "MP_UI_BIND_ADDR",
      "service": "mailpit",
      "description": "Inbox UI bind address",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0:8025"
    },
    {
      "key": "MP_SMTP_BIND_ADDR",
      "service": "mailpit",
      "description": "SMTP bind address, IPv6 for private networking",
      "secret": false,
      "strategy": "default",
      "default": "[::]:1025"
    },
    {
      "key": "PORT",
      "service": "rundeck",
      "description": "HTTP listen port Railway probes",
      "secret": false,
      "strategy": "default",
      "default": "4440"
    },
    {
      "key": "RUNDECK_MAIL_FROM",
      "service": "rundeck",
      "description": "Default notification sender",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RUNDECK_ADMIN_USER",
      "service": "rundeck",
      "description": "Seeded administrator login",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "RUNDECK_GRAILS_URL",
      "service": "rundeck",
      "description": "Public base URL for links",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RUNDECK_ADMIN_ROLES",
      "service": "rundeck",
      "description": "Roles on that account",
      "secret": false,
      "strategy": "default",
      "default": "user,admin,architect,deploy,build"
    },
    {
      "key": "RUNDECK_DATABASE_URL",
      "service": "rundeck",
      "description": "Private JDBC connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RUNDECK_ADMIN_PASSWORD",
      "service": "rundeck",
      "description": "Seeded administrator password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RUNDECK_MAIL_SMTP_HOST",
      "service": "rundeck",
      "description": "Notification SMTP host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RUNDECK_MAIL_SMTP_PORT",
      "service": "rundeck",
      "description": "Notification SMTP port",
      "secret": false,
      "strategy": "default",
      "default": "1025"
    },
    {
      "key": "RUNDECK_SERVER_ADDRESS",
      "service": "rundeck",
      "description": "Bind address inside the container",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "RUNDECK_DATABASE_DRIVER",
      "service": "rundeck",
      "description": "JDBC driver class",
      "secret": false,
      "strategy": "default",
      "default": "org.postgresql.Driver"
    },
    {
      "key": "RUNDECK_LOGGING_STRATEGY",
      "service": "rundeck",
      "description": "Send application logs to stdout",
      "secret": false,
      "strategy": "default",
      "default": "CONSOLE"
    },
    {
      "key": "RUNDECK_SERVER_FORWARDED",
      "service": "rundeck",
      "description": "Honour X-Forwarded-* from the edge",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RUNDECK_DATABASE_PASSWORD",
      "service": "rundeck",
      "description": "Database password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RUNDECK_DATABASE_USERNAME",
      "service": "rundeck",
      "description": "Database user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "rundeck",
      "description": "Let running executions finish on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "RUNDECK_PLUGIN_EXECUTIONFILESTORAGE_NAME",
      "service": "rundeck",
      "description": "Execution log storage plugin",
      "secret": false,
      "strategy": "default",
      "default": "org.rundeck.amazon-s3"
    },
    {
      "key": "RUNDECK_STORAGE_CONVERTER_1_CONFIG_PASSWORD",
      "service": "rundeck",
      "description": "Encrypts key storage at rest",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RUNDECK_PLUGIN_EXECUTIONFILESTORAGE_S3_BUCKET",
      "service": "rundeck",
      "description": "Bucket receiving log files",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RUNDECK_PLUGIN_EXECUTIONFILESTORAGE_S3_REGION",
      "service": "rundeck",
      "description": "SigV4 signing region",
      "secret": false,
      "strategy": "default",
      "default": "us-east-1"
    },
    {
      "key": "RUNDECK_PLUGIN_EXECUTIONFILESTORAGE_S3_ENDPOINT",
      "service": "rundeck",
      "description": "S3-compatible endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RUNDECK_PLUGIN_EXECUTIONFILESTORAGE_S3_ACCESSKEY",
      "service": "rundeck",
      "description": "Bucket access key id",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RUNDECK_PLUGIN_EXECUTIONFILESTORAGE_S3_PATHSTYLE",
      "service": "rundeck",
      "description": "Path-style bucket addressing",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RUNDECK_PLUGIN_EXECUTIONFILESTORAGE_S3_SECRETKEY",
      "service": "rundeck",
      "description": "Bucket secret access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RUNDECK_CONFIG_STORAGE_CONVERTER_1_CONFIG_PASSWORD",
      "service": "rundeck",
      "description": "Encrypts project config at rest",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "rundeck"
      }
    },
    "cli": "railway deploy --template rundeck",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "6f2469cb-86c9-4d38-a492-7e0f84887de8",
            "serializedConfig": {
              "buckets": {
                "11a24d65-afbd-4604-90e8-fd18a7a17f8a": {
                  "name": "rundeck-logs"
                }
              },
              "services": {
                "3b1cd049-67df-4745-85bc-71af5b2e353f": {
                  "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": {
                    "3b1cd049-67df-4745-85bc-71af5b2e353f": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "4cb5adc0-18af-4c40-b20f-de76e9939555": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mailpit.svg",
                  "name": "mailpit",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "axllent/mailpit:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Inbox UI port Railway probes",
                      "defaultValue": "8025"
                    },
                    "MP_UI_AUTH": {
                      "isOptional": false,
                      "description": "Basic-auth credentials for the inbox",
                      "defaultValue": "{{MP_UI_AUTH}}"
                    },
                    "MP_WEBROOT": {
                      "isOptional": false,
                      "description": "Inbox UI path prefix",
                      "defaultValue": "/"
                    },
                    "MP_DATABASE": {
                      "isOptional": false,
                      "description": "Message store on the volume",
                      "defaultValue": "/data/mailpit.db"
                    },
                    "MP_MAX_MESSAGES": {
                      "isOptional": false,
                      "description": "Messages retained before rotation",
                      "defaultValue": "5000"
                    },
                    "MP_UI_BIND_ADDR": {
                      "isOptional": false,
                      "description": "Inbox UI bind address",
                      "defaultValue": "0.0.0.0:8025"
                    },
                    "MP_SMTP_BIND_ADDR": {
                      "isOptional": false,
                      "description": "SMTP bind address, IPv6 for private networking",
                      "defaultValue": "[::]:1025"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8025": {
                        "port": 8025
                      }
                    }
                  },
                  "volumeMounts": {
                    "4cb5adc0-18af-4c40-b20f-de76e9939555": {
                      "mountPath": "/data"
                    }
                  }
                },
                "adf7c8f8-0994-41c7-a941-8f259e3edae1": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/rundeck.svg",
                  "name": "rundeck",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/rundeck-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP listen port Railway probes",
                      "defaultValue": "4440"
                    },
                    "RUNDECK_MAIL_FROM": {
                      "isOptional": false,
                      "description": "Default notification sender",
                      "defaultValue": "rundeck@${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RUNDECK_ADMIN_USER": {
                      "isOptional": false,
                      "description": "Seeded administrator login",
                      "defaultValue": "admin"
                    },
                    "RUNDECK_GRAILS_URL": {
                      "isOptional": false,
                      "description": "Public base URL for links",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RUNDECK_ADMIN_ROLES": {
                      "isOptional": false,
                      "description": "Roles on that account",
                      "defaultValue": "user,admin,architect,deploy,build"
                    },
                    "RUNDECK_DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private JDBC connection string",
                      "defaultValue": "jdbc:postgresql://${{Postgres.PGHOST}}:${{Postgres.PGPORT}}/${{Postgres.PGDATABASE}}?sslmode=require"
                    },
                    "RUNDECK_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Seeded administrator password",
                      "defaultValue": "{{RUNDECK_ADMIN_PASSWORD}}"
                    },
                    "RUNDECK_MAIL_SMTP_HOST": {
                      "isOptional": false,
                      "description": "Notification SMTP host",
                      "defaultValue": "${{mailpit.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "RUNDECK_MAIL_SMTP_PORT": {
                      "isOptional": false,
                      "description": "Notification SMTP port",
                      "defaultValue": "1025"
                    },
                    "RUNDECK_SERVER_ADDRESS": {
                      "isOptional": false,
                      "description": "Bind address inside the container",
                      "defaultValue": "0.0.0.0"
                    },
                    "RUNDECK_DATABASE_DRIVER": {
                      "isOptional": false,
                      "description": "JDBC driver class",
                      "defaultValue": "org.postgresql.Driver"
                    },
                    "RUNDECK_LOGGING_STRATEGY": {
                      "isOptional": false,
                      "description": "Send application logs to stdout",
                      "defaultValue": "CONSOLE"
                    },
                    "RUNDECK_SERVER_FORWARDED": {
                      "isOptional": false,
                      "description": "Honour X-Forwarded-* from the edge",
                      "defaultValue": "true"
                    },
                    "RUNDECK_DATABASE_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "RUNDECK_DATABASE_USERNAME": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Let running executions finish on redeploy",
                      "defaultValue": "30"
                    },
                    "RUNDECK_PLUGIN_EXECUTIONFILESTORAGE_NAME": {
                      "isOptional": false,
                      "description": "Execution log storage plugin",
                      "defaultValue": "org.rundeck.amazon-s3"
                    },
                    "RUNDECK_STORAGE_CONVERTER_1_CONFIG_PASSWORD": {
                      "isOptional": false,
                      "description": "Encrypts key storage at rest",
                      "defaultValue": "{{RUNDECK_STORAGE_CONVERTER_1_CONFIG_PASSWORD}}"
                    },
                    "RUNDECK_PLUGIN_EXECUTIONFILESTORAGE_S3_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket receiving log files",
                      "defaultValue": "${{rundeck-logs.BUCKET}}"
                    },
                    "RUNDECK_PLUGIN_EXECUTIONFILESTORAGE_S3_REGION": {
                      "isOptional": false,
                      "description": "SigV4 signing region",
                      "defaultValue": "us-east-1"
                    },
                    "RUNDECK_PLUGIN_EXECUTIONFILESTORAGE_S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "S3-compatible endpoint",
                      "defaultValue": "${{rundeck-logs.ENDPOINT}}"
                    },
                    "RUNDECK_PLUGIN_EXECUTIONFILESTORAGE_S3_ACCESSKEY": {
                      "isOptional": false,
                      "description": "Bucket access key id",
                      "defaultValue": "${{rundeck-logs.ACCESS_KEY_ID}}"
                    },
                    "RUNDECK_PLUGIN_EXECUTIONFILESTORAGE_S3_PATHSTYLE": {
                      "isOptional": false,
                      "description": "Path-style bucket addressing",
                      "defaultValue": "true"
                    },
                    "RUNDECK_PLUGIN_EXECUTIONFILESTORAGE_S3_SECRETKEY": {
                      "isOptional": false,
                      "description": "Bucket secret access key",
                      "defaultValue": "${{rundeck-logs.SECRET_ACCESS_KEY}}"
                    },
                    "RUNDECK_CONFIG_STORAGE_CONVERTER_1_CONFIG_PASSWORD": {
                      "isOptional": false,
                      "description": "Encrypts project config at rest",
                      "defaultValue": "{{RUNDECK_CONFIG_STORAGE_CONVERTER_1_CONFIG_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:4440": {
                        "port": 4440
                      }
                    }
                  },
                  "volumeMounts": {
                    "adf7c8f8-0994-41c7-a941-8f259e3edae1": {
                      "mountPath": "/home/rundeck/railway-data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "rundeck",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T22:14:50.114Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-21T19:28:35.513Z",
  "success_rate_30d": 0.1429,
  "validation": {
    "last_run_id": "run_64976062cf0843f3b33b",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ],
    "typical_ready_seconds": 98
  }
}
