{
  "manifest_version": "1.0.0",
  "template": {
    "id": "5b419fbe-f111-4769-9df4-f4480041e741",
    "slug": "gotenberg-production",
    "name": "Gotenberg Production",
    "description": "Docker-based API for converting web pages and office documents to PDF",
    "url": "https://railway.com/deploy/gotenberg-production",
    "upstream": {
      "image": "gotenberg/gotenberg:8"
    }
  },
  "services": [
    {
      "name": "Gotenberg",
      "source": {
        "image": "gotenberg/gotenberg:8"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Gotenberg",
      "description": "Port used by Gotenberg and Railway public networking.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "API_TIMEOUT",
      "service": "Gotenberg",
      "description": "Maximum duration allowed for a conversion request.",
      "secret": false,
      "strategy": "default",
      "default": "60s"
    },
    {
      "key": "LOG_STD_FORMAT",
      "service": "Gotenberg",
      "description": "Emit structured JSON logs for Railway.",
      "secret": false,
      "strategy": "default",
      "default": "json"
    },
    {
      "key": "CHROMIUM_AUTO_START",
      "service": "Gotenberg",
      "description": "Start Chromium during container startup to avoid first-request cold starts.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "API_ENABLE_BASIC_AUTH",
      "service": "Gotenberg",
      "description": "Enable HTTP Basic Auth for API routes.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LIBREOFFICE_AUTO_START",
      "service": "Gotenberg",
      "description": "Start LibreOffice during container startup to avoid first-request cold starts.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "GOTENBERG_API_BASIC_AUTH_PASSWORD",
      "service": "Gotenberg",
      "description": "Randomly generated password used for HTTP Basic Auth.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "GOTENBERG_API_BASIC_AUTH_USERNAME",
      "service": "Gotenberg",
      "description": "Username used for HTTP Basic Auth.",
      "secret": false,
      "strategy": "default",
      "default": "gotenberg"
    },
    {
      "key": "GOTENBERG_GRACEFUL_SHUTDOWN_DURATION",
      "service": "Gotenberg",
      "description": "Time allowed for active conversions to finish during shutdown.",
      "secret": false,
      "strategy": "default",
      "default": "60s"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "gotenberg-production"
      }
    },
    "cli": "railway deploy --template gotenberg-production",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "5b419fbe-f111-4769-9df4-f4480041e741",
            "serializedConfig": {
              "services": {
                "e3e5e23f-1377-4d33-bf98-62296d398fa2": {
                  "icon": "https://gotenberg.dev/img/logo.png",
                  "name": "Gotenberg",
                  "deploy": {
                    "healthcheckPath": "/health"
                  },
                  "source": {
                    "image": "gotenberg/gotenberg:8"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port used by Gotenberg and Railway public networking.",
                      "defaultValue": "3000"
                    },
                    "API_TIMEOUT": {
                      "description": "Maximum duration allowed for a conversion request.",
                      "defaultValue": "60s"
                    },
                    "LOG_STD_FORMAT": {
                      "description": "Emit structured JSON logs for Railway.",
                      "defaultValue": "json"
                    },
                    "CHROMIUM_AUTO_START": {
                      "description": "Start Chromium during container startup to avoid first-request cold starts.",
                      "defaultValue": "true"
                    },
                    "API_ENABLE_BASIC_AUTH": {
                      "description": "Enable HTTP Basic Auth for API routes.",
                      "defaultValue": "true"
                    },
                    "LIBREOFFICE_AUTO_START": {
                      "description": "Start LibreOffice during container startup to avoid first-request cold starts.",
                      "defaultValue": "true"
                    },
                    "GOTENBERG_API_BASIC_AUTH_PASSWORD": {
                      "description": "Randomly generated password used for HTTP Basic Auth.",
                      "defaultValue": "{{GOTENBERG_API_BASIC_AUTH_PASSWORD}}"
                    },
                    "GOTENBERG_API_BASIC_AUTH_USERNAME": {
                      "description": "Username used for HTTP Basic Auth.",
                      "defaultValue": "gotenberg"
                    },
                    "GOTENBERG_GRACEFUL_SHUTDOWN_DURATION": {
                      "description": "Time allowed for active conversions to finish during shutdown.",
                      "defaultValue": "60s"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-10T10:14:45.332Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-09T01:18:42.152Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_2c4fcf7e48154287ae65",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 56,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "Gotenberg"
  }
}
