{
  "manifest_version": "1.0.0",
  "template": {
    "id": "e4d4be76-b043-4c54-ba6c-cdfbd9407d6b",
    "slug": "nomad",
    "name": "NOMAD",
    "description": "Self-hosted collaborative travel planning with durable SQLite storage.",
    "url": "https://railway.com/deploy/nomad",
    "upstream": {
      "image": "ghcr.io/monotykamary/nomad:4.2.1@sha256:25d6d332eab937d871cb1f196fdacc1d2f34a77ee98f3028092d24a47c81433c"
    }
  },
  "services": [
    {
      "name": "TREK",
      "source": {
        "image": "ghcr.io/monotykamary/nomad:4.2.1@sha256:25d6d332eab937d871cb1f196fdacc1d2f34a77ee98f3028092d24a47c81433c"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "TREK",
      "description": "Timezone for logs, reminders, and scheduled tasks.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "TREK",
      "description": "TREK HTTP and WebSocket port.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "APP_URL",
      "service": "TREK",
      "description": "Canonical public TREK URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NODE_ENV",
      "service": "TREK",
      "description": "Node.js runtime environment.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "LOG_LEVEL",
      "service": "TREK",
      "description": "Application log verbosity.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "ADMIN_EMAIL",
      "service": "TREK",
      "description": "Initial administrator email; used only on an empty installation.",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "FORCE_HTTPS",
      "service": "TREK",
      "description": "Enable HTTPS redirects and secure browser policy.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "TRUST_PROXY",
      "service": "TREK",
      "description": "Trust Railway as one reverse-proxy hop.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "TREK",
      "description": "Generated initial administrator password; used only on an empty installation.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "TREK",
      "description": "Generated 256-bit key for encrypting sensitive settings.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ALLOWED_ORIGINS",
      "service": "TREK",
      "description": "Allowed browser origin for CORS.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "nomad"
      }
    },
    "cli": "railway deploy --template nomad",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "e4d4be76-b043-4c54-ba6c-cdfbd9407d6b",
            "serializedConfig": {
              "services": {
                "31b66287-536e-4949-a3ed-c5f6978deb91": {
                  "icon": "https://raw.githubusercontent.com/monotykamary/NOMAD/main/client/public/icons/icon.svg",
                  "name": "TREK",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 3
                  },
                  "source": {
                    "image": "ghcr.io/monotykamary/nomad:4.2.1@sha256:25d6d332eab937d871cb1f196fdacc1d2f34a77ee98f3028092d24a47c81433c"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Timezone for logs, reminders, and scheduled tasks.",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "TREK HTTP and WebSocket port.",
                      "defaultValue": "3000"
                    },
                    "APP_URL": {
                      "isOptional": false,
                      "description": "Canonical public TREK URL.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NODE_ENV": {
                      "isOptional": false,
                      "description": "Node.js runtime environment.",
                      "defaultValue": "production"
                    },
                    "LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Application log verbosity.",
                      "defaultValue": "info"
                    },
                    "ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Initial administrator email; used only on an empty installation.",
                      "defaultValue": "admin@example.com"
                    },
                    "FORCE_HTTPS": {
                      "isOptional": false,
                      "description": "Enable HTTPS redirects and secure browser policy.",
                      "defaultValue": "true"
                    },
                    "TRUST_PROXY": {
                      "isOptional": false,
                      "description": "Trust Railway as one reverse-proxy hop.",
                      "defaultValue": "1"
                    },
                    "ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated initial administrator password; used only on an empty installation.",
                      "defaultValue": "{{ADMIN_PASSWORD}}"
                    },
                    "ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Generated 256-bit key for encrypting sensitive settings.",
                      "defaultValue": "{{ENCRYPTION_KEY}}"
                    },
                    "ALLOWED_ORIGINS": {
                      "isOptional": false,
                      "description": "Allowed browser origin for CORS.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "31b66287-536e-4949-a3ed-c5f6978deb91": {
                      "mountPath": "/app/data",
                      "backupSchedules": [
                        "WEEKLY"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "TREK",
      "method": "GET",
      "path": "/api/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-18T07:57:39.473Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_071274091c364510b324",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 80,
    "typical_build_seconds": 0,
    "typical_start_seconds": 20,
    "slowest_service": "TREK"
  }
}
