{
  "manifest_version": "1.0.0",
  "template": {
    "id": "d05289de-9bd1-4be1-b38c-85de8aee653b",
    "slug": "etherpad",
    "name": "Etherpad",
    "description": "Google Docs Alternative. Real-time collaborative text editor.",
    "url": "https://railway.com/deploy/etherpad",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/etherpad-railway"
    }
  },
  "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": "etherpad",
      "source": {
        "repo": "https://github.com/gridalpha/etherpad-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/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": "etherpad",
      "description": "HTTP server listening port",
      "secret": false,
      "strategy": "default",
      "default": "9001"
    },
    {
      "key": "DB_HOST",
      "service": "etherpad",
      "description": "Private Postgres hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_NAME",
      "service": "etherpad",
      "description": "Database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_PASS",
      "service": "etherpad",
      "description": "Database password",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_PORT",
      "service": "etherpad",
      "description": "Postgres port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_TYPE",
      "service": "etherpad",
      "description": "Storage backend selector",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "DB_USER",
      "service": "etherpad",
      "description": "Database user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PUBLIC_URL",
      "service": "etherpad",
      "description": "Canonical origin for link previews",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SSO_ISSUER",
      "service": "etherpad",
      "description": "Issuer for built-in sign-on",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "TRUST_PROXY",
      "service": "etherpad",
      "description": "Honour X-Forwarded headers from the edge",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "USER_SECRET",
      "service": "etherpad",
      "description": "User OAuth client secret",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ADMIN_SECRET",
      "service": "etherpad",
      "description": "Admin OAuth client secret",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "USER_PASSWORD",
      "service": "etherpad",
      "description": "Password for the user account",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "USER_REDIRECT",
      "service": "etherpad",
      "description": "User OAuth redirect URI",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "etherpad",
      "description": "Password for the admin account",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "ADMIN_REDIRECT",
      "service": "etherpad",
      "description": "Admin OAuth redirect URI",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "REQUIRE_AUTHENTICATION",
      "service": "etherpad",
      "description": "Require sign-in to open any pad",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SHOW_SETTINGS_IN_ADMIN_PAGE",
      "service": "etherpad",
      "description": "Hide the settings file editor",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "etherpad",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "30"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "etherpad"
      }
    },
    "cli": "railway deploy --template etherpad",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "d05289de-9bd1-4be1-b38c-85de8aee653b",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "5384d8c9-5887-48f5-9d95-daecdcc3e6e6": {
                  "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": {
                    "5384d8c9-5887-48f5-9d95-daecdcc3e6e6": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "f1ab2149-420e-475c-ab04-1984fc961196": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/etherpad.svg",
                  "name": "etherpad",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/etherpad-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP server listening port",
                      "defaultValue": "9001"
                    },
                    "DB_HOST": {
                      "isOptional": false,
                      "description": "Private Postgres hostname",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "DB_NAME": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "DB_PASS": {
                      "isOptional": false,
                      "description": "Database password",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "Postgres port",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "DB_TYPE": {
                      "isOptional": false,
                      "description": "Storage backend selector",
                      "defaultValue": "postgres"
                    },
                    "DB_USER": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Canonical origin for link previews",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SSO_ISSUER": {
                      "isOptional": false,
                      "description": "Issuer for built-in sign-on",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "TRUST_PROXY": {
                      "isOptional": false,
                      "description": "Honour X-Forwarded headers from the edge",
                      "defaultValue": "true"
                    },
                    "USER_SECRET": {
                      "isOptional": false,
                      "description": "User OAuth client secret",
                      "defaultValue": "{{USER_SECRET}}"
                    },
                    "ADMIN_SECRET": {
                      "isOptional": false,
                      "description": "Admin OAuth client secret",
                      "defaultValue": "{{ADMIN_SECRET}}"
                    },
                    "USER_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the user account",
                      "defaultValue": "{{USER_PASSWORD}}"
                    },
                    "USER_REDIRECT": {
                      "isOptional": false,
                      "description": "User OAuth redirect URI",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}/"
                    },
                    "ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the admin account",
                      "defaultValue": "{{ADMIN_PASSWORD}}"
                    },
                    "ADMIN_REDIRECT": {
                      "isOptional": false,
                      "description": "Admin OAuth redirect URI",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}/admin/"
                    },
                    "REQUIRE_AUTHENTICATION": {
                      "isOptional": false,
                      "description": "Require sign-in to open any pad",
                      "defaultValue": "true"
                    },
                    "SHOW_SETTINGS_IN_ADMIN_PAGE": {
                      "isOptional": false,
                      "description": "Hide the settings file editor",
                      "defaultValue": "false"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:9001": {
                        "port": 9001
                      }
                    }
                  },
                  "volumeMounts": {
                    "f1ab2149-420e-475c-ab04-1984fc961196": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "etherpad",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-23T10:14:44.639Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-21T19:39:10.629Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_f1e9777fcafa496ba72c",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 123,
    "typical_build_seconds": 40,
    "typical_start_seconds": 20,
    "slowest_service": "etherpad"
  }
}
