{
  "manifest_version": "1.0.0",
  "template": {
    "id": "3b3c71ff-9951-4fd8-9fbd-b8c21591b5b0",
    "slug": "rallly-railway",
    "name": "Rallly",
    "description": "Doodle alternative. Open-source group scheduling and meeting polls",
    "url": "https://railway.com/deploy/rallly-railway",
    "upstream": {
      "image": "lukevella/rallly:latest"
    }
  },
  "services": [
    {
      "name": "rallly",
      "source": {
        "image": "lukevella/rallly:latest"
      },
      "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
    },
    {
      "name": "mailpit",
      "source": {
        "image": "axllent/mailpit:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "rallly",
      "description": "Container time zone",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "rallly",
      "description": "HTTP listening port",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "S3_REGION",
      "service": "rallly",
      "description": "Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SMTP_HOST",
      "service": "rallly",
      "description": "Private mail service hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SMTP_PORT",
      "service": "rallly",
      "description": "Mailpit SMTP listener port",
      "secret": false,
      "strategy": "default",
      "default": "1025"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "rallly",
      "description": "Bucket API endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SMTP_SECURE",
      "service": "rallly",
      "description": "Plain SMTP on the private network",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "DATABASE_URL",
      "service": "rallly",
      "description": "Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NODE_OPTIONS",
      "service": "rallly",
      "description": "Node heap ceiling",
      "secret": false,
      "strategy": "default",
      "default": "--max-old-space-size=4096"
    },
    {
      "key": "NOREPLY_EMAIL",
      "service": "rallly",
      "description": "Transactional email sender",
      "secret": false,
      "strategy": "default",
      "default": "noreply@example.com"
    },
    {
      "key": "SUPPORT_EMAIL",
      "service": "rallly",
      "description": "Contact address shown to users",
      "secret": false,
      "strategy": "default",
      "default": "support@example.com"
    },
    {
      "key": "ALLOWED_EMAILS",
      "service": "rallly",
      "description": "Allowlist for registration and sign-in",
      "secret": false,
      "strategy": "default",
      "default": "*@example.com"
    },
    {
      "key": "S3_BUCKET_NAME",
      "service": "rallly",
      "description": "Avatar and branding bucket",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SECRET_PASSWORD",
      "service": "rallly",
      "description": "Session encryption key, 32+ chars",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "S3_ACCESS_KEY_ID",
      "service": "rallly",
      "description": "Bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "INITIAL_ADMIN_EMAIL",
      "service": "rallly",
      "description": "Address allowed to claim admin",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "NEXT_PUBLIC_BASE_URL",
      "service": "rallly",
      "description": "Public instance URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "REGISTRATION_ENABLED",
      "service": "rallly",
      "description": "Hides the signup UI only",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "S3_SECRET_ACCESS_KEY",
      "service": "rallly",
      "description": "Bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Data directory, a subdirectory of the volume mount",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Private hostname, reachable only inside the project",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Standard PostgreSQL port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "libpq alias of the superuser name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "libpq alias of the default database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "libpq alias of the superuser password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection string, use this from other services",
      "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": "Validity window of the generated self-signed TLS certificate",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Generated superuser password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "Public connection string over the TCP proxy, for external tools",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Grace period for in-flight connections on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "mailpit",
      "description": "Inbox UI port",
      "secret": false,
      "strategy": "default",
      "default": "8025"
    },
    {
      "key": "MP_UI_AUTH",
      "service": "mailpit",
      "description": "Basic auth for the inbox UI",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "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": "UI bind address",
      "secret": false,
      "strategy": "default",
      "default": "[::]:8025"
    },
    {
      "key": "MP_SMTP_MAX_SIZE",
      "service": "mailpit",
      "description": "Maximum message size in bytes",
      "secret": false,
      "strategy": "default",
      "default": "26214400"
    },
    {
      "key": "MP_SMTP_BIND_ADDR",
      "service": "mailpit",
      "description": "SMTP bind address",
      "secret": false,
      "strategy": "default",
      "default": "[::]:1025"
    },
    {
      "key": "MP_SMTP_MAX_RECIPIENTS",
      "service": "mailpit",
      "description": "Recipients allowed per message",
      "secret": false,
      "strategy": "default",
      "default": "100"
    },
    {
      "key": "MP_DISABLE_VERSION_CHECK",
      "service": "mailpit",
      "description": "Skip outbound update checks",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "rallly-railway"
      }
    },
    "cli": "railway deploy --template rallly-railway",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "3b3c71ff-9951-4fd8-9fbd-b8c21591b5b0",
            "serializedConfig": {
              "buckets": {
                "82b65512-ec2d-42a5-bdde-f56f0fda33a3": {
                  "name": "rallly-storage"
                }
              },
              "services": {
                "839ba584-2a10-4e48-a059-778d827c9149": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/rallly.svg",
                  "name": "rallly",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/status",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "lukevella/rallly:latest"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Container time zone",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP listening port",
                      "defaultValue": "3000"
                    },
                    "S3_REGION": {
                      "isOptional": false,
                      "description": "Bucket region",
                      "defaultValue": "${{rallly-storage.REGION}}"
                    },
                    "SMTP_HOST": {
                      "isOptional": false,
                      "description": "Private mail service hostname",
                      "defaultValue": "${{mailpit.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "SMTP_PORT": {
                      "isOptional": false,
                      "description": "Mailpit SMTP listener port",
                      "defaultValue": "1025"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Bucket API endpoint",
                      "defaultValue": "${{rallly-storage.ENDPOINT}}"
                    },
                    "SMTP_SECURE": {
                      "isOptional": false,
                      "description": "Plain SMTP on the private network",
                      "defaultValue": "false"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "NODE_OPTIONS": {
                      "isOptional": false,
                      "description": "Node heap ceiling",
                      "defaultValue": "--max-old-space-size=4096"
                    },
                    "NOREPLY_EMAIL": {
                      "isOptional": false,
                      "description": "Transactional email sender",
                      "defaultValue": "noreply@example.com"
                    },
                    "SUPPORT_EMAIL": {
                      "isOptional": false,
                      "description": "Contact address shown to users",
                      "defaultValue": "support@example.com"
                    },
                    "ALLOWED_EMAILS": {
                      "isOptional": false,
                      "description": "Allowlist for registration and sign-in",
                      "defaultValue": "*@example.com"
                    },
                    "S3_BUCKET_NAME": {
                      "isOptional": false,
                      "description": "Avatar and branding bucket",
                      "defaultValue": "${{rallly-storage.BUCKET}}"
                    },
                    "SECRET_PASSWORD": {
                      "isOptional": false,
                      "description": "Session encryption key, 32+ chars",
                      "defaultValue": "{{SECRET_PASSWORD}}"
                    },
                    "S3_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key",
                      "defaultValue": "${{rallly-storage.ACCESS_KEY_ID}}"
                    },
                    "INITIAL_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Address allowed to claim admin",
                      "defaultValue": "admin@example.com"
                    },
                    "NEXT_PUBLIC_BASE_URL": {
                      "isOptional": false,
                      "description": "Public instance URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "REGISTRATION_ENABLED": {
                      "isOptional": false,
                      "description": "Hides the signup UI only",
                      "defaultValue": "false"
                    },
                    "S3_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret key",
                      "defaultValue": "${{rallly-storage.SECRET_ACCESS_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                },
                "8bd74e0d-68bb-4572-8c98-55a324218380": {
                  "icon": "https://devicons.railway.app/i/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": "Data directory, a subdirectory of the volume mount",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Private hostname, reachable only inside the project",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Standard PostgreSQL port",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "libpq alias of the superuser name",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "libpq alias of the default database",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "libpq alias of the superuser password",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database created on first boot",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection string, use this from other services",
                      "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": "Validity window of the generated self-signed TLS certificate",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated superuser password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "description": "Public connection string over the TCP proxy, for external tools",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Grace period for in-flight connections on redeploy",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "8bd74e0d-68bb-4572-8c98-55a324218380": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "f6b0db2b-659b-4e9d-9bdf-f17918012bf0": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mailpit.svg",
                  "name": "mailpit",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/livez",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "axllent/mailpit:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Inbox UI port",
                      "defaultValue": "8025"
                    },
                    "MP_UI_AUTH": {
                      "isOptional": false,
                      "description": "Basic auth for the inbox UI",
                      "defaultValue": "{{MP_UI_AUTH}}"
                    },
                    "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": "UI bind address",
                      "defaultValue": "[::]:8025"
                    },
                    "MP_SMTP_MAX_SIZE": {
                      "isOptional": false,
                      "description": "Maximum message size in bytes",
                      "defaultValue": "26214400"
                    },
                    "MP_SMTP_BIND_ADDR": {
                      "isOptional": false,
                      "description": "SMTP bind address",
                      "defaultValue": "[::]:1025"
                    },
                    "MP_SMTP_MAX_RECIPIENTS": {
                      "isOptional": false,
                      "description": "Recipients allowed per message",
                      "defaultValue": "100"
                    },
                    "MP_DISABLE_VERSION_CHECK": {
                      "isOptional": false,
                      "description": "Skip outbound update checks",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8025": {
                        "port": 8025
                      }
                    }
                  },
                  "volumeMounts": {
                    "f6b0db2b-659b-4e9d-9bdf-f17918012bf0": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "rallly",
      "method": "GET",
      "path": "/api/status",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-10T17:20:12.053Z",
  "success_rate_30d": 0.5,
  "validation": {
    "last_run_id": "run_699415802ae441da8c77",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ],
    "typical_ready_seconds": 37,
    "typical_build_seconds": 0,
    "typical_start_seconds": 20,
    "slowest_service": "rallly"
  }
}
