{
  "manifest_version": "1.0.0",
  "template": {
    "id": "46573308-f3e9-463c-9f66-60aab8ee23e6",
    "slug": "seerr",
    "name": "Seerr",
    "description": "Open-source media request and discovery manager.",
    "url": "https://railway.com/deploy/seerr",
    "upstream": {
      "image": "seerr/seerr:latest"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "seerr",
      "source": {
        "image": "seerr/seerr:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/config",
      "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": "TZ",
      "service": "seerr",
      "description": "Timezone for the container (e.g., America/New_York)",
      "secret": false,
      "strategy": "default",
      "default": "Etc/UTC"
    },
    {
      "key": "PORT",
      "service": "seerr",
      "description": "Port Seerr listens on",
      "secret": false,
      "strategy": "default",
      "default": "5055"
    },
    {
      "key": "DB_HOST",
      "service": "seerr",
      "description": "PostgreSQL host address from Railway Postgres service",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_NAME",
      "service": "seerr",
      "description": "PostgreSQL database name from Railway Postgres service",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_PASS",
      "service": "seerr",
      "description": "PostgreSQL password from Railway Postgres service",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_PORT",
      "service": "seerr",
      "description": "PostgreSQL port from Railway Postgres service",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_TYPE",
      "service": "seerr",
      "description": "Database engine: \"sqlite\" or \"postgres\"",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "DB_USER",
      "service": "seerr",
      "description": "PostgreSQL username from Railway Postgres service",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_USE_SSL",
      "service": "seerr",
      "description": "Whether to enable SSL for the database connection",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "DB_LOG_QUERIES",
      "service": "seerr",
      "description": "Whether to log database queries for debugging",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Directory where PostgreSQL stores its data files",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Internal hostname for PostgreSQL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port PostgreSQL listens on (auto-assigned by Railway)",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "PostgreSQL connection username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "PostgreSQL connection database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "PostgreSQL connection password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Name of the default database to create",
      "secret": false,
      "strategy": "default",
      "default": "seerr"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Internal PostgreSQL connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "PostgreSQL superuser username",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "Number of days the auto-generated SSL certificate is valid",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "PostgreSQL superuser password (auto-generated)",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "Public PostgreSQL connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "seerr"
      }
    },
    "cli": "railway deploy --template seerr",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "46573308-f3e9-463c-9f66-60aab8ee23e6",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "afbd495a-54ba-4e76-8232-23d975011d00": {
                  "icon": "https://github.com/seerr-team.png",
                  "name": "seerr",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/v1/status",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "seerr/seerr:latest"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Timezone for the container (e.g., America/New_York)",
                      "defaultValue": "Etc/UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Seerr listens on",
                      "defaultValue": "5055"
                    },
                    "DB_HOST": {
                      "isOptional": false,
                      "description": "PostgreSQL host address from Railway Postgres service",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "DB_NAME": {
                      "isOptional": false,
                      "description": "PostgreSQL database name from Railway Postgres service",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "DB_PASS": {
                      "isOptional": false,
                      "description": "PostgreSQL password from Railway Postgres service",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "PostgreSQL port from Railway Postgres service",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "DB_TYPE": {
                      "isOptional": false,
                      "description": "Database engine: \"sqlite\" or \"postgres\"",
                      "defaultValue": "postgres"
                    },
                    "DB_USER": {
                      "isOptional": false,
                      "description": "PostgreSQL username from Railway Postgres service",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "DB_USE_SSL": {
                      "isOptional": false,
                      "description": "Whether to enable SSL for the database connection",
                      "defaultValue": "false"
                    },
                    "DB_LOG_QUERIES": {
                      "isOptional": false,
                      "description": "Whether to log database queries for debugging",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "afbd495a-54ba-4e76-8232-23d975011d00": {
                      "mountPath": "/app/config"
                    }
                  }
                },
                "ff5c5941-de66-40f6-b4bb-486ab2be76b7": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/v1/status",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Directory where PostgreSQL stores its data files",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Internal hostname for PostgreSQL",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Port PostgreSQL listens on (auto-assigned by Railway)",
                      "defaultValue": "{{PGPORT}}"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "PostgreSQL connection username",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "PostgreSQL connection database name",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "PostgreSQL connection password",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Name of the default database to create",
                      "defaultValue": "seerr"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Internal PostgreSQL connection string",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "PostgreSQL superuser username",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "Number of days the auto-generated SSL certificate is valid",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "PostgreSQL superuser password (auto-generated)",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public PostgreSQL connection string",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    }
                  },
                  "volumeMounts": {
                    "ff5c5941-de66-40f6-b4bb-486ab2be76b7": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  },
                  "haTemplateCode": "postgres-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxy",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "Routes traffic to the primary",
                      "defaultValue": 3
                    },
                    "replica": {
                      "label": "Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5,
                        6,
                        7
                      ],
                      "nodeLabel": "Postgres",
                      "description": "Streaming replicas for automatic failover",
                      "defaultValue": 2
                    },
                    "internal": {
                      "label": "Coordinator Nodes",
                      "options": [
                        3,
                        5,
                        7,
                        9
                      ],
                      "nodeLabel": "etcd",
                      "defaultValue": 3
                    },
                    "description": "This will convert your Postgres database to an HA cluster with Patroni failover and etcd consensus."
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "seerr",
      "method": "GET",
      "path": "/api/v1/status",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0"
}
