{
  "manifest_version": "1.0.0",
  "template": {
    "id": "a72212e2-490b-4777-afda-4a3809305538",
    "slug": "lynx-seo",
    "name": "lynx-seo",
    "description": "Deploy and Host 🚀 SEO Content Automation with Railway",
    "url": "https://railway.com/deploy/lynx-seo",
    "upstream": {
      "repo_url": "https://github.com/JohnWickBK99/seo-admin-app-frontend"
    }
  },
  "services": [
    {
      "name": "Admin CMS",
      "source": {
        "repo": "https://github.com/JohnWickBK99/seo-admin-app-frontend"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "SEO TrendGen Bot",
      "source": {
        "image": "nierdna/seo-trendgen-bot"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:16"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "tcp_ports": [
        5432
      ],
      "http": false
    },
    {
      "name": "Landingpage + Blog",
      "source": {
        "repo": "https://github.com/JohnWickBK99/seo-landingpage-frontend"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "GA Telegram Reporter",
      "source": {
        "image": "nierdna/ga-telegram-reporter"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "DATABASE_URL",
      "service": "Admin CMS",
      "description": "Supabase Anon Key",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXTAUTH_SECRET",
      "service": "Admin CMS",
      "description": "Provide a value for NEXTAUTH_SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "TZ",
      "service": "SEO TrendGen Bot",
      "description": "Provide a value for TZ.",
      "secret": false,
      "strategy": "default",
      "default": "Asia/Ho_Chi_Min"
    },
    {
      "key": "POSTGRES_URL",
      "service": "SEO TrendGen Bot",
      "description": "Supabase Postgres URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CRON_SCHEDULE",
      "service": "SEO TrendGen Bot",
      "description": "Provide a value for CRON_SCHEDULE.",
      "secret": false,
      "strategy": "default",
      "default": "0 */6 * * *"
    },
    {
      "key": "TOPIC_KEYWORD",
      "service": "SEO TrendGen Bot",
      "description": "topic to search trending",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OPENAI_API_KEY",
      "service": "SEO TrendGen Bot",
      "description": "Provide a value for OPENAI_API_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "TARGET_LANGUAGE",
      "service": "SEO TrendGen Bot",
      "description": "Provide a value for TARGET_LANGUAGE.",
      "secret": false,
      "strategy": "default",
      "default": "en"
    },
    {
      "key": "MAX_ARTICLES_PER_RUN",
      "service": "SEO TrendGen Bot",
      "description": "Provide a value for MAX_ARTICLES_PER_RUN.",
      "secret": false,
      "strategy": "default",
      "default": "5"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created when image is started.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "URL to connect to Postgres database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "User to connect to Postgres DB",
      "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": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "Public URL to connect to Postgres database, used by the Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Allow Postgres to cleanly shut down",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "DATABASE_URL",
      "service": "Landingpage + Blog",
      "description": "Provide a value for DATABASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "lynx-seo"
      }
    },
    "cli": "railway deploy --template lynx-seo",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "a72212e2-490b-4777-afda-4a3809305538",
            "serializedConfig": {
              "services": {
                "5ef1caf2-5880-4ed5-8132-7fd7bb39289e": {
                  "icon": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSpNXCt-jDVzB_Gjw0QwfLM9iV2xfd3yzUvew&s",
                  "name": "Admin CMS",
                  "deploy": {
                    "preDeployCommand": "npm prisma db push"
                  },
                  "source": {
                    "repo": "JohnWickBK99/seo-admin-app-frontend",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Supabase Anon Key",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "NEXTAUTH_SECRET": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "{{NEXTAUTH_SECRET}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "6b797822-fe83-463b-b383-b0988c81a0bc": {
                  "icon": "https://static.vecteezy.com/system/resources/thumbnails/010/044/386/small_2x/chat-bot-icon-isolated-contour-symbol-illustration-vector.jpg",
                  "name": "SEO TrendGen Bot",
                  "source": {
                    "image": "nierdna/seo-trendgen-bot"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "Asia/Ho_Chi_Min"
                    },
                    "POSTGRES_URL": {
                      "isOptional": false,
                      "description": "Supabase Postgres URL",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "CRON_SCHEDULE": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "0 */6 * * *"
                    },
                    "TOPIC_KEYWORD": {
                      "isOptional": false,
                      "description": "topic to search trending",
                      "defaultValue": "{{TOPIC_KEYWORD}}"
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "{{OPENAI_API_KEY}}"
                    },
                    "TARGET_LANGUAGE": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "en"
                    },
                    "MAX_ARTICLES_PER_RUN": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "5"
                    }
                  }
                },
                "ac1d060c-e77a-4485-9c8e-89670fb9a000": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "build": {},
                  "deploy": {
                    "requiredMountPath": "/var/lib/postgresql/data"
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:16"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Port to connect to Postgres.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Required variable for the data panel.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database created when image is started.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "URL to connect to Postgres database.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "User to connect to Postgres DB",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate expiry in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to DB",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "description": "Public URL to connect to Postgres database, used by the Data panel.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Allow Postgres to cleanly shut down",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5432": {}
                    },
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "ac1d060c-e77a-4485-9c8e-89670fb9a000": {
                      "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."
                  }
                },
                "d206cebd-750f-475a-9d27-44e726bf1a9c": {
                  "icon": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQVzAgz3QVe9-u-4BOYoIH-DRQeRE5lmYDU2g&s",
                  "name": "Landingpage + Blog",
                  "source": {
                    "repo": "JohnWickBK99/seo-landingpage-frontend",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "DATABASE_URL": {
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "NEXT_PUBLIC_GA_MEASUREMENT_ID": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": ""
                    }
                  }
                },
                "ea140dfb-9e87-4df2-96b5-a7ef8139b141": {
                  "icon": "https://i.ibb.co/0yXTsvDw/Chat-GPT-Image-Jul-7-2025-12-05-15-AM.png",
                  "name": "GA Telegram Reporter",
                  "source": {
                    "image": "nierdna/ga-telegram-reporter"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-18T22:24:42.423Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_2a45f77977914de79d3a",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED,FAILED,DEPLOYING,SUCCESS,SUCCESS"
      }
    ]
  }
}
