{
  "manifest_version": "1.0.0",
  "template": {
    "id": "4b50eca6-4c58-481a-ab5e-18b155760380",
    "slug": "romanovich-school-marketplace",
    "name": "romanovich-school-marketplace",
    "description": "Pet project romanovich.school. Microservices, Postgres, Kafka, Redis",
    "url": "https://railway.com/deploy/romanovich-school-marketplace",
    "upstream": {
      "image": "traefik/whoami:v1.12.0"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "gateway",
      "source": {
        "image": "traefik/whoami:v1.12.0"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "kafka",
      "source": {
        "image": "apache/kafka-native:3.9.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/kafka/data",
      "http": false
    },
    {
      "name": "orders-service",
      "source": {
        "image": "traefik/whoami:v1.12.0"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "redis",
      "source": {
        "image": "redis:7-alpine"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "catalog-service",
      "source": {
        "image": "traefik/whoami:v1.12.0"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "JWT_SECRET",
      "service": "gateway",
      "description": "//",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DATABASE_URL",
      "service": "gateway",
      "description": "//",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "ORDERS_GRPC_ADDR",
      "service": "gateway",
      "description": "//",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "CATALOG_GRPC_ADDR",
      "service": "gateway",
      "description": "//",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "KAFKA_BROKERS",
      "service": "kafka",
      "description": "//",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "KAFKA_ADVERTISED_LISTENERS",
      "service": "kafka",
      "description": "//",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDIS_URL",
      "service": "orders-service",
      "description": "//",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "orders-service",
      "description": "//",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "KAFKA_BROKERS",
      "service": "orders-service",
      "description": "//",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CATALOG_GRPC_ADDR",
      "service": "orders-service",
      "description": "//",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDIS_URL",
      "service": "redis",
      "description": "//",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDIS_URL",
      "service": "catalog-service",
      "description": "//",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "catalog-service",
      "description": "//",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "KAFKA_BROKERS",
      "service": "catalog-service",
      "description": "//",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "romanovich-school-marketplace"
      }
    },
    "cli": "railway deploy --template romanovich-school-marketplace",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "4b50eca6-4c58-481a-ab5e-18b155760380",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "5197bb42-cb0e-41e4-80c8-8dd1449b3977": {
                  "icon": "https://devicons.railway.app/gola",
                  "name": "gateway",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "traefik/whoami:v1.12.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "//",
                      "defaultValue": ""
                    },
                    "JWT_SECRET": {
                      "isOptional": true,
                      "description": "//",
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "//",
                      "defaultValue": "{{DATABASE_URL}}"
                    },
                    "ORDERS_GRPC_ADDR": {
                      "isOptional": true,
                      "description": "//",
                      "defaultValue": "${{orders-service.RAILWAY_PRIVATE_DOMAIN}}:50052"
                    },
                    "CATALOG_GRPC_ADDR": {
                      "isOptional": true,
                      "description": "//",
                      "defaultValue": "${{catalog-service.RAILWAY_PRIVATE_DOMAIN}}:50051"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  }
                },
                "5b4b0612-7168-4275-8615-91ea0a4fbbfc": {
                  "icon": "https://romanovich.school/tech/apachekafka.svg",
                  "name": "kafka",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "apache/kafka-native:3.9.2"
                  },
                  "variables": {
                    "CLUSTER_ID": {
                      "isOptional": true,
                      "description": "//",
                      "defaultValue": ""
                    },
                    "KAFKA_BROKERS": {
                      "isOptional": true,
                      "description": "//",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}:9092"
                    },
                    "KAFKA_NODE_ID": {
                      "isOptional": true,
                      "description": "//",
                      "defaultValue": ""
                    },
                    "KAFKA_LOG_DIRS": {
                      "isOptional": true,
                      "description": "//",
                      "defaultValue": ""
                    },
                    "KAFKA_LISTENERS": {
                      "isOptional": true,
                      "description": "//",
                      "defaultValue": ""
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": true,
                      "description": "//",
                      "defaultValue": ""
                    },
                    "KAFKA_PROCESS_ROLES": {
                      "isOptional": true,
                      "description": "//",
                      "defaultValue": ""
                    },
                    "KAFKA_ADVERTISED_LISTENERS": {
                      "isOptional": true,
                      "description": "//",
                      "defaultValue": "PLAINTEXT://${{RAILWAY_PRIVATE_DOMAIN}}:9092"
                    },
                    "KAFKA_CONTROLLER_QUORUM_VOTERS": {
                      "isOptional": true,
                      "description": "//",
                      "defaultValue": ""
                    },
                    "KAFKA_AUTO_CREATE_TOPICS_ENABLE": {
                      "isOptional": true,
                      "description": "//",
                      "defaultValue": ""
                    },
                    "KAFKA_CONTROLLER_LISTENER_NAMES": {
                      "isOptional": true,
                      "description": "//",
                      "defaultValue": ""
                    },
                    "KAFKA_INTER_BROKER_LISTENER_NAME": {
                      "isOptional": true,
                      "description": "//",
                      "defaultValue": ""
                    },
                    "KAFKA_TRANSACTION_STATE_LOG_MIN_ISR": {
                      "isOptional": true,
                      "description": "//",
                      "defaultValue": ""
                    },
                    "KAFKA_LISTENER_SECURITY_PROTOCOL_MAP": {
                      "isOptional": true,
                      "description": "//",
                      "defaultValue": ""
                    },
                    "KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR": {
                      "isOptional": true,
                      "description": "//",
                      "defaultValue": ""
                    },
                    "KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR": {
                      "isOptional": true,
                      "description": "//",
                      "defaultValue": ""
                    }
                  },
                  "volumeMounts": {
                    "5b4b0612-7168-4275-8615-91ea0a4fbbfc": {
                      "mountPath": "/var/lib/kafka/data"
                    }
                  }
                },
                "72c73a0b-9364-4759-875e-2d041a4ea2fa": {
                  "icon": "https://devicons.railway.app/golang",
                  "name": "orders-service",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "traefik/whoami:v1.12.0"
                  },
                  "variables": {
                    "GRPC_ADDR": {
                      "isOptional": true,
                      "description": "//",
                      "defaultValue": ""
                    },
                    "REDIS_URL": {
                      "isOptional": true,
                      "description": "//",
                      "defaultValue": "${{redis.REDIS_URL}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "//",
                      "defaultValue": "{{DATABASE_URL}}"
                    },
                    "KAFKA_BROKERS": {
                      "isOptional": true,
                      "description": "//",
                      "defaultValue": "${{kafka.KAFKA_BROKERS}}"
                    },
                    "CATALOG_GRPC_ADDR": {
                      "isOptional": true,
                      "description": "//",
                      "defaultValue": "${{catalog-service.RAILWAY_PRIVATE_DOMAIN}}:50051"
                    }
                  }
                },
                "a57eb70d-cf70-4f27-85f2-832ce4755272": {
                  "icon": "https://devicons.railway.app/redis",
                  "name": "redis",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:7-alpine"
                  },
                  "variables": {
                    "REDIS_URL": {
                      "isOptional": true,
                      "description": "//",
                      "defaultValue": "redis://${{RAILWAY_PRIVATE_DOMAIN}}:6379"
                    }
                  }
                },
                "a70738d2-6dc7-4d24-b5b3-b6b2a3c518b1": {
                  "icon": "https://devicons.railway.app/gol",
                  "name": "catalog-service",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "traefik/whoami:v1.12.0"
                  },
                  "variables": {
                    "GRPC_ADDR": {
                      "isOptional": true,
                      "description": "//",
                      "defaultValue": ""
                    },
                    "REDIS_URL": {
                      "isOptional": true,
                      "description": "//",
                      "defaultValue": "${{redis.REDIS_URL}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "//",
                      "defaultValue": "{{DATABASE_URL}}"
                    },
                    "KAFKA_BROKERS": {
                      "isOptional": true,
                      "description": "//",
                      "defaultValue": "${{kafka.KAFKA_BROKERS}}"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "gateway",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T22:14:43.398Z",
  "generator_version": "0.1.0"
}
