{
  "manifest_version": "1.0.0",
  "template": {
    "id": "639cc540-cc9c-4aff-bb17-266194896ed1",
    "slug": "asobeast",
    "name": "AsoBeast",
    "description": "Open-source ASO keyword rank tracker for the App Store and Google Play",
    "url": "https://railway.com/deploy/asobeast",
    "upstream": {
      "image": "ghcr.io/asobeast/asobeast-web:1"
    }
  },
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "postgres:18-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "http": false
    },
    {
      "name": "web",
      "source": {
        "image": "ghcr.io/asobeast/asobeast-web:1"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "api",
      "source": {
        "image": "ghcr.io/asobeast/asobeast-api:1"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database name for AsoBeast. Keep asobeast.",
      "secret": false,
      "strategy": "default",
      "default": "asobeast"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "\tDatabase user AsoBeast connects as. Keep asobeast.",
      "secret": false,
      "strategy": "default",
      "default": "asobeast"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "\tDatabase password, generated at deploy. No need to change it.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "web",
      "description": "Port the web app listens on. Keep 3000, matching the public domain target port.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "HOSTNAME",
      "service": "web",
      "description": "Address the web app binds to. Keep :: to listen on IPv4 and IPv6.",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "TRUST_PROXY",
      "service": "web",
      "description": "\tProxies in front of the web app. Keep 1 for Railway's edge proxy.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "API_INTERNAL_URL",
      "service": "web",
      "description": "\tPrivate address of the API service. Set automatically.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PORT",
      "service": "api",
      "description": "Port the API listens on inside the private network. Keep 4000.",
      "secret": false,
      "strategy": "default",
      "default": "4000"
    },
    {
      "key": "NODE_ENV",
      "service": "api",
      "description": "Runtime mode. Keep production.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "LOG_LEVEL",
      "service": "api",
      "description": "Log verbosity: error, warn, log, debug or verbose. Keep log.",
      "secret": false,
      "strategy": "default",
      "default": "log"
    },
    {
      "key": "REDIS_HOST",
      "service": "api",
      "description": "\tPrivate hostname of the Redis service. Set automatically.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDIS_PORT",
      "service": "api",
      "description": "\tRedis port. Keep 6379.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "AUTH_SECRET",
      "service": "api",
      "description": "\tSecret that signs sign-in sessions, generated at deploy. Changing it signs everyone out.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "TRUST_PROXY",
      "service": "api",
      "description": "\tProxies in front of the API. Keep 1, because the web service forwards requests to it.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "DATABASE_URL",
      "service": "api",
      "description": "\tConnection string to the Postgres service over the private network. Built automatically.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "WEB_PUBLIC_URL",
      "service": "api",
      "description": "\tPublic address of the web service, used in alert links and account recovery. Set automatically.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DEFAULT_COUNTRY",
      "service": "api",
      "description": "Home store country used when an imported store link has none, as a two-letter code such as us, gb or de.",
      "secret": false,
      "strategy": "default",
      "default": "us"
    },
    {
      "key": "AUTH_COOKIE_SECURE",
      "service": "api",
      "description": "Send session cookies over HTTPS only. Keep true on Railway domains.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "asobeast"
      }
    },
    "cli": "railway deploy --template asobeast",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "639cc540-cc9c-4aff-bb17-266194896ed1",
            "serializedConfig": {
              "services": {
                "5061050c-a10b-4704-b0c3-694ec80eb937": {
                  "name": "Postgres",
                  "source": {
                    "image": "postgres:18-alpine"
                  },
                  "variables": {
                    "POSTGRES_DB": {
                      "description": "Database name for AsoBeast. Keep asobeast.",
                      "defaultValue": "asobeast"
                    },
                    "POSTGRES_USER": {
                      "description": "\tDatabase user AsoBeast connects as. Keep asobeast.",
                      "defaultValue": "asobeast"
                    },
                    "POSTGRES_PASSWORD": {
                      "description": "\tDatabase password, generated at deploy. No need to change it.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "5061050c-a10b-4704-b0c3-694ec80eb937": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                },
                "9648a396-8404-4457-9b40-8228b0cb59e5": {
                  "name": "web",
                  "deploy": {
                    "healthcheckPath": "/api/health"
                  },
                  "source": {
                    "image": "ghcr.io/asobeast/asobeast-web:1"
                  },
                  "variables": {
                    "PORT": {
                      "description": "Port the web app listens on. Keep 3000, matching the public domain target port.",
                      "defaultValue": "3000"
                    },
                    "HOSTNAME": {
                      "description": "Address the web app binds to. Keep :: to listen on IPv4 and IPv6.",
                      "defaultValue": "::"
                    },
                    "TRUST_PROXY": {
                      "description": "\tProxies in front of the web app. Keep 1 for Railway's edge proxy.",
                      "defaultValue": "1"
                    },
                    "API_INTERNAL_URL": {
                      "description": "\tPrivate address of the API service. Set automatically.",
                      "defaultValue": "http://${{api.RAILWAY_PRIVATE_DOMAIN}}:4000"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                },
                "ade6a6e0-70f0-445e-9895-6329d68bd755": {
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "redis-server --maxmemory 192mb --maxmemory-policy noeviction"
                  },
                  "source": {
                    "image": "redis:8-alpine"
                  },
                  "volumeMounts": {
                    "ade6a6e0-70f0-445e-9895-6329d68bd755": {
                      "mountPath": "/data"
                    }
                  }
                },
                "f5809373-ff47-4fbe-a7e9-de1e13835be0": {
                  "name": "api",
                  "deploy": {
                    "healthcheckPath": "/health"
                  },
                  "source": {
                    "image": "ghcr.io/asobeast/asobeast-api:1"
                  },
                  "variables": {
                    "PORT": {
                      "description": "Port the API listens on inside the private network. Keep 4000.",
                      "defaultValue": "4000"
                    },
                    "NODE_ENV": {
                      "description": "Runtime mode. Keep production.",
                      "defaultValue": "production"
                    },
                    "LOG_LEVEL": {
                      "description": "Log verbosity: error, warn, log, debug or verbose. Keep log.",
                      "defaultValue": "log"
                    },
                    "REDIS_HOST": {
                      "description": "\tPrivate hostname of the Redis service. Set automatically.",
                      "defaultValue": "${{Redis.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDIS_PORT": {
                      "description": "\tRedis port. Keep 6379.",
                      "defaultValue": "6379"
                    },
                    "AUTH_SECRET": {
                      "description": "\tSecret that signs sign-in sessions, generated at deploy. Changing it signs everyone out.",
                      "defaultValue": "{{AUTH_SECRET}}"
                    },
                    "TRUST_PROXY": {
                      "description": "\tProxies in front of the API. Keep 1, because the web service forwards requests to it.",
                      "defaultValue": "1"
                    },
                    "DATABASE_URL": {
                      "description": "\tConnection string to the Postgres service over the private network. Built automatically.",
                      "defaultValue": "postgresql://asobeast:${{Postgres.POSTGRES_PASSWORD}}@${{Postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/asobeast"
                    },
                    "WEB_PUBLIC_URL": {
                      "description": "\tPublic address of the web service, used in alert links and account recovery. Set automatically.",
                      "defaultValue": "https://${{web.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DEFAULT_COUNTRY": {
                      "description": "Home store country used when an imported store link has none, as a two-letter code such as us, gb or de.",
                      "defaultValue": "us"
                    },
                    "AUTH_COOKIE_SECURE": {
                      "description": "Send session cookies over HTTPS only. Keep true on Railway domains.",
                      "defaultValue": "true"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "web",
      "method": "GET",
      "path": "/api/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-10-08T10:14:37.803Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-08T10:02:38.519Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_6b14e12d40954f5ca668",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 121,
    "typical_build_seconds": 0,
    "typical_start_seconds": 41,
    "slowest_service": "api"
  }
}
