{
  "manifest_version": "1.0.0",
  "template": {
    "id": "e41565f6-9417-49f9-b2b8-414d35f4a295",
    "slug": "bar-assistant-salt-rim",
    "name": "Bar Assistant + Salt Rim",
    "description": "Cocktail recipes and home-bar inventory with Salt Rim and Meilisearch.",
    "url": "https://railway.com/deploy/bar-assistant-salt-rim",
    "upstream": {
      "repo_url": "https://github.com/orenaksakal/railway-templates"
    }
  },
  "services": [
    {
      "name": "search",
      "source": {
        "image": "getmeili/meilisearch:v1.50@sha256:9694a59df43ee3f54b3fda9c5de381a3ee9852678e3e31cadf37d6bddea7fc1b"
      },
      "needs_volume": true,
      "volume_mount_path": "/meili_data",
      "http": false
    },
    {
      "name": "web",
      "source": {
        "image": "barassistant/salt-rim:v5@sha256:77f2e5f55a494c93617b7fd2da43899d505fc2f87d2f5b9290442ae93d95a1ec"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "bar-assistant",
      "source": {
        "repo": "https://github.com/orenaksakal/railway-templates"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "api",
      "source": {
        "repo": "https://github.com/orenaksakal/railway-templates"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/www/cocktails/storage/bar-assistant",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "MEILI_ENV",
      "service": "search",
      "description": "Meili env for search. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "MEILI_DB_PATH",
      "service": "search",
      "description": "Meili db path for search. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "/meili_data/db"
    },
    {
      "key": "MEILI_MASTER_KEY",
      "service": "search",
      "description": "Generated meili master key. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MEILI_NO_ANALYTICS",
      "service": "search",
      "description": "Meili no analytics for search. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "API_URL",
      "service": "web",
      "description": "Api url resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "MEILISEARCH_URL",
      "service": "web",
      "description": "Meilisearch url resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PORT",
      "service": "bar-assistant",
      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "API_HOST",
      "service": "bar-assistant",
      "description": "Api host resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "WEB_HOST",
      "service": "bar-assistant",
      "description": "Web host resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "OWNER_AUTH",
      "service": "bar-assistant",
      "description": "Owner gateway routing and authentication; retain the supplied value.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "OWNER_SCOPE",
      "service": "bar-assistant",
      "description": "Owner gateway routing and authentication; retain the supplied value.",
      "secret": false,
      "strategy": "default",
      "default": "all"
    },
    {
      "key": "SEARCH_HOST",
      "service": "bar-assistant",
      "description": "Search host resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "UPSTREAM_HOST",
      "service": "bar-assistant",
      "description": "Owner gateway routing and authentication; retain the supplied value.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "UPSTREAM_PORT",
      "service": "bar-assistant",
      "description": "Owner gateway routing and authentication; retain the supplied value.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "ACCESS_PASSWORD",
      "service": "bar-assistant",
      "description": "Owner gateway password. Keep it enabled to protect registration and all routes.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "bar-assistant",
      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
      "secret": false,
      "strategy": "default",
      "default": "templates/round9/bar-assistant/Gateway.Dockerfile"
    },
    {
      "key": "APP_KEY",
      "service": "api",
      "description": "Generated app key. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "APP_URL",
      "service": "api",
      "description": "App url resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "CACHE_DRIVER",
      "service": "api",
      "description": "Cache driver for api. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "file"
    },
    {
      "key": "SESSION_DRIVER",
      "service": "api",
      "description": "Session driver for api. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "file"
    },
    {
      "key": "MEILISEARCH_KEY",
      "service": "api",
      "description": "Meilisearch key resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MEILISEARCH_HOST",
      "service": "api",
      "description": "Meilisearch host resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "QUEUE_CONNECTION",
      "service": "api",
      "description": "Queue connection for api. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "sync"
    },
    {
      "key": "ALLOW_REGISTRATION",
      "service": "api",
      "description": "Create your account, then set false to close registration. This draft initially permits public signup.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "api",
      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
      "secret": false,
      "strategy": "default",
      "default": "templates/round9/bar-assistant/Api.Dockerfile"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "bar-assistant-salt-rim"
      }
    },
    "cli": "railway deploy --template bar-assistant-salt-rim",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "e41565f6-9417-49f9-b2b8-414d35f4a295",
            "serializedConfig": {
              "services": {
                "11392c83-3e5d-53be-b9b2-993b4ade745c": {
                  "name": "search",
                  "deploy": {
                    "requiredMountPath": "/meili_data",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "getmeili/meilisearch:v1.50@sha256:9694a59df43ee3f54b3fda9c5de381a3ee9852678e3e31cadf37d6bddea7fc1b"
                  },
                  "variables": {
                    "MEILI_ENV": {
                      "isOptional": false,
                      "description": "Meili env for search. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "production"
                    },
                    "MEILI_DB_PATH": {
                      "isOptional": false,
                      "description": "Meili db path for search. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "/meili_data/db"
                    },
                    "MEILI_MASTER_KEY": {
                      "isOptional": false,
                      "description": "Generated meili master key. Keep private and preserve with backups.",
                      "defaultValue": "{{MEILI_MASTER_KEY}}"
                    },
                    "MEILI_NO_ANALYTICS": {
                      "isOptional": false,
                      "description": "Meili no analytics for search. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "69fcdc9d-2298-5c14-88a7-f543bd933da2": {
                      "mountPath": "/meili_data"
                    }
                  }
                },
                "3e83a989-8228-5741-8128-dbde67036d50": {
                  "name": "web",
                  "deploy": {
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "barassistant/salt-rim:v5@sha256:77f2e5f55a494c93617b7fd2da43899d505fc2f87d2f5b9290442ae93d95a1ec"
                  },
                  "variables": {
                    "API_URL": {
                      "isOptional": false,
                      "description": "Api url resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "https://${{bar-assistant.RAILWAY_PUBLIC_DOMAIN}}/bar"
                    },
                    "MEILISEARCH_URL": {
                      "isOptional": false,
                      "description": "Meilisearch url resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "https://${{bar-assistant.RAILWAY_PUBLIC_DOMAIN}}/search"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {}
                },
                "9c22ae2d-8e5c-504b-b288-6a30eb5dd0b1": {
                  "name": "bar-assistant",
                  "build": {
                    "builder": "RAILPACK",
                    "dockerfilePath": "templates/round9/bar-assistant/Gateway.Dockerfile"
                  },
                  "deploy": {
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "orenaksakal/railway-templates",
                    "branch": "codex/unique-template-drafts"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
                      "defaultValue": "8080"
                    },
                    "API_HOST": {
                      "isOptional": false,
                      "description": "Api host resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{api.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "WEB_HOST": {
                      "isOptional": false,
                      "description": "Web host resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{web.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "OWNER_AUTH": {
                      "isOptional": false,
                      "description": "Owner gateway routing and authentication; retain the supplied value.",
                      "defaultValue": "true"
                    },
                    "OWNER_SCOPE": {
                      "isOptional": false,
                      "description": "Owner gateway routing and authentication; retain the supplied value.",
                      "defaultValue": "all"
                    },
                    "SEARCH_HOST": {
                      "isOptional": false,
                      "description": "Search host resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{search.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "UPSTREAM_HOST": {
                      "isOptional": false,
                      "description": "Owner gateway routing and authentication; retain the supplied value.",
                      "defaultValue": "${{web.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "UPSTREAM_PORT": {
                      "isOptional": false,
                      "description": "Owner gateway routing and authentication; retain the supplied value.",
                      "defaultValue": "8080"
                    },
                    "ACCESS_PASSWORD": {
                      "isOptional": false,
                      "description": "Owner gateway password. Keep it enabled to protect registration and all routes.",
                      "defaultValue": "{{ACCESS_PASSWORD}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
                      "defaultValue": "templates/round9/bar-assistant/Gateway.Dockerfile"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {}
                },
                "deefc9c8-d36f-5d49-8042-8ff105e2aa15": {
                  "name": "api",
                  "build": {
                    "builder": "RAILPACK",
                    "dockerfilePath": "templates/round9/bar-assistant/Api.Dockerfile"
                  },
                  "deploy": {
                    "requiredMountPath": "/var/www/cocktails/storage/bar-assistant",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "orenaksakal/railway-templates",
                    "branch": "codex/unique-template-drafts"
                  },
                  "variables": {
                    "APP_KEY": {
                      "isOptional": false,
                      "description": "Generated app key. Keep private and preserve with backups.",
                      "defaultValue": "{{APP_KEY}}"
                    },
                    "APP_URL": {
                      "isOptional": false,
                      "description": "App url resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "https://${{bar-assistant.RAILWAY_PUBLIC_DOMAIN}}/bar"
                    },
                    "CACHE_DRIVER": {
                      "isOptional": false,
                      "description": "Cache driver for api. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "file"
                    },
                    "SESSION_DRIVER": {
                      "isOptional": false,
                      "description": "Session driver for api. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "file"
                    },
                    "MEILISEARCH_KEY": {
                      "isOptional": false,
                      "description": "Meilisearch key resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{search.MEILI_MASTER_KEY}}"
                    },
                    "MEILISEARCH_HOST": {
                      "isOptional": false,
                      "description": "Meilisearch host resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "http://${{search.RAILWAY_PRIVATE_DOMAIN}}:7700"
                    },
                    "QUEUE_CONNECTION": {
                      "isOptional": false,
                      "description": "Queue connection for api. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "sync"
                    },
                    "ALLOW_REGISTRATION": {
                      "isOptional": false,
                      "description": "Create your account, then set false to close registration. This draft initially permits public signup.",
                      "defaultValue": "true"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
                      "defaultValue": "templates/round9/bar-assistant/Api.Dockerfile"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "78172867-3681-5019-94b2-fa8624792940": {
                      "mountPath": "/var/www/cocktails/storage/bar-assistant"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "bar-assistant",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-19T10:14:38.021Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-19T07:58:40.197Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_35eb28436502441c83ec",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED,SUCCESS,SUCCESS,SUCCESS"
      }
    ]
  }
}
