{
  "manifest_version": "1.0.0",
  "template": {
    "id": "8f925214-d36e-4799-995c-be01586142c5",
    "slug": "languagetool",
    "name": "LanguageTool",
    "description": "Grammar, style and spell checking API for more than 30 languages",
    "url": "https://railway.com/deploy/languagetool",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/languagetool-railway"
    }
  },
  "services": [
    {
      "name": "MySQL",
      "source": {
        "image": "mysql:9.4"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    },
    {
      "name": "gateway",
      "source": {
        "repo": "https://github.com/gridalpha/languagetool-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "languagetool",
      "source": {
        "repo": "https://github.com/gridalpha/languagetool-railway"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "MYSQLHOST",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLPORT",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "MYSQLUSER",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "root"
    },
    {
      "key": "MYSQL_URL",
      "service": "MySQL",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLDATABASE",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQLPASSWORD",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_DATABASE",
      "service": "MySQL",
      "description": "Database created on image startup",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "MySQL",
      "description": "Root password, read by the server",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "gateway",
      "description": "Port Caddy listens on",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "LT_UPSTREAM",
      "service": "gateway",
      "description": "Where /v2/* is proxied",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "gateway",
      "description": "Dockerfile for this service",
      "secret": false,
      "strategy": "default",
      "default": "gateway/Dockerfile"
    },
    {
      "key": "PORT",
      "service": "languagetool",
      "description": "Port the API server listens on",
      "secret": false,
      "strategy": "default",
      "default": "8010"
    },
    {
      "key": "MYSQLHOST",
      "service": "languagetool",
      "description": "Database host for the schema bootstrap",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQLPORT",
      "service": "languagetool",
      "description": "Database port for the schema bootstrap",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQLUSER",
      "service": "languagetool",
      "description": "Database user for the schema bootstrap",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LT_API_KEY",
      "service": "languagetool",
      "description": "Secret callers send as `apiKey`",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MYSQLDATABASE",
      "service": "languagetool",
      "description": "Database name for the schema bootstrap",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQLPASSWORD",
      "service": "languagetool",
      "description": "Database password for the schema bootstrap",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "langtool_dbUrl",
      "service": "languagetool",
      "description": "JDBC connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LT_API_USERNAME",
      "service": "languagetool",
      "description": "Username callers send as `username`",
      "secret": false,
      "strategy": "default",
      "default": "apiuser"
    },
    {
      "key": "langtool_dbDriver",
      "service": "languagetool",
      "description": "Only JDBC driver the server bundles",
      "secret": false,
      "strategy": "default",
      "default": "org.mariadb.jdbc.Driver"
    },
    {
      "key": "langtool_cacheSize",
      "service": "languagetool",
      "description": "Results cached in memory",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "langtool_dbPassword",
      "service": "languagetool",
      "description": "JDBC password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "langtool_dbUsername",
      "service": "languagetool",
      "description": "JDBC user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "langtool_requestLimit",
      "service": "languagetool",
      "description": "Requests per client IP per period",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "langtool_maxTextLength",
      "service": "languagetool",
      "description": "Maximum characters per request",
      "secret": false,
      "strategy": "default",
      "default": "50000"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "languagetool",
      "description": "Dockerfile for this service",
      "secret": false,
      "strategy": "default",
      "default": "languagetool/Dockerfile"
    },
    {
      "key": "langtool_cacheTTLSeconds",
      "service": "languagetool",
      "description": "Lifetime of a cached result",
      "secret": false,
      "strategy": "default",
      "default": "300"
    },
    {
      "key": "langtool_pipelineCaching",
      "service": "languagetool",
      "description": "Reuse analysis pipelines between requests",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "langtool_maxCheckTimeMillis",
      "service": "languagetool",
      "description": "Maximum time spent on one check",
      "secret": false,
      "strategy": "default",
      "default": "60000"
    },
    {
      "key": "langtool_maxPipelinePoolSize",
      "service": "languagetool",
      "description": "Cached pipelines held per language",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "languagetool",
      "description": "Window for JVM start and dictionary load",
      "secret": false,
      "strategy": "default",
      "default": "600"
    },
    {
      "key": "langtool_anonymousAccessAllowed",
      "service": "languagetool",
      "description": "Reject checks with no API key",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "langtool_trustXForwardForHeader",
      "service": "languagetool",
      "description": "Read the client IP the gateway sets",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "langtool_requestLimitPeriodInSeconds",
      "service": "languagetool",
      "description": "Length of the rate-limit window",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "languagetool"
      }
    },
    "cli": "railway deploy --template languagetool",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "8f925214-d36e-4799-995c-be01586142c5",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "44ca6484-66a7-4298-b170-c282579670ac": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mysql.svg",
                  "name": "MySQL",
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mysqld --innodb-use-native-aio=0 --disable-log-bin --performance_schema=0 --innodb-buffer-pool-size=1G",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mysql:9.4"
                  },
                  "variables": {
                    "MYSQLHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MYSQLPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "3306"
                    },
                    "MYSQLUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "root"
                    },
                    "MYSQL_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "mysql://${{ MYSQLUSER }}:${{ MYSQL_ROOT_PASSWORD }}@${{ RAILWAY_PRIVATE_DOMAIN }}:3306/${{ MYSQL_DATABASE }}"
                    },
                    "MYSQLDATABASE": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{ MYSQL_DATABASE }}"
                    },
                    "MYSQLPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{ MYSQL_ROOT_PASSWORD }}"
                    },
                    "MYSQL_DATABASE": {
                      "isOptional": false,
                      "description": "Database created on image startup",
                      "defaultValue": "railway"
                    },
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Root password, read by the server",
                      "defaultValue": "{{MYSQL_ROOT_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "44ca6484-66a7-4298-b170-c282579670ac": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                },
                "ac4e52af-443e-4b6e-991d-0dc007f15b27": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/caddy.svg",
                  "name": "gateway",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/languagetool-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Caddy listens on",
                      "defaultValue": "8080"
                    },
                    "LT_UPSTREAM": {
                      "isOptional": false,
                      "description": "Where /v2/* is proxied",
                      "defaultValue": "${{languagetool.RAILWAY_PRIVATE_DOMAIN}}:8010"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Dockerfile for this service",
                      "defaultValue": "gateway/Dockerfile"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "def5cd52-cdbe-4d0f-9aed-a1e205eecc06": {
                  "icon": "https://cdn.simpleicons.org/languagetool/white.svg",
                  "name": "languagetool",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/v2/languages",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/languagetool-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the API server listens on",
                      "defaultValue": "8010"
                    },
                    "MYSQLHOST": {
                      "isOptional": false,
                      "description": "Database host for the schema bootstrap",
                      "defaultValue": "${{MySQL.MYSQLHOST}}"
                    },
                    "MYSQLPORT": {
                      "isOptional": false,
                      "description": "Database port for the schema bootstrap",
                      "defaultValue": "${{MySQL.MYSQLPORT}}"
                    },
                    "MYSQLUSER": {
                      "isOptional": false,
                      "description": "Database user for the schema bootstrap",
                      "defaultValue": "${{MySQL.MYSQLUSER}}"
                    },
                    "LT_API_KEY": {
                      "isOptional": false,
                      "description": "Secret callers send as `apiKey`",
                      "defaultValue": "{{LT_API_KEY}}"
                    },
                    "MYSQLDATABASE": {
                      "isOptional": false,
                      "description": "Database name for the schema bootstrap",
                      "defaultValue": "${{MySQL.MYSQLDATABASE}}"
                    },
                    "MYSQLPASSWORD": {
                      "isOptional": false,
                      "description": "Database password for the schema bootstrap",
                      "defaultValue": "${{MySQL.MYSQLPASSWORD}}"
                    },
                    "langtool_dbUrl": {
                      "isOptional": false,
                      "description": "JDBC connection string",
                      "defaultValue": "jdbc:mariadb://${{MySQL.MYSQLHOST}}:${{MySQL.MYSQLPORT}}/${{MySQL.MYSQLDATABASE}}?allowPublicKeyRetrieval=true&sslMode=disable"
                    },
                    "LT_API_USERNAME": {
                      "isOptional": false,
                      "description": "Username callers send as `username`",
                      "defaultValue": "apiuser"
                    },
                    "langtool_dbDriver": {
                      "isOptional": false,
                      "description": "Only JDBC driver the server bundles",
                      "defaultValue": "org.mariadb.jdbc.Driver"
                    },
                    "langtool_cacheSize": {
                      "isOptional": true,
                      "description": "Results cached in memory",
                      "defaultValue": "1000"
                    },
                    "langtool_dbPassword": {
                      "isOptional": false,
                      "description": "JDBC password",
                      "defaultValue": "${{MySQL.MYSQLPASSWORD}}"
                    },
                    "langtool_dbUsername": {
                      "isOptional": false,
                      "description": "JDBC user",
                      "defaultValue": "${{MySQL.MYSQLUSER}}"
                    },
                    "langtool_requestLimit": {
                      "isOptional": true,
                      "description": "Requests per client IP per period",
                      "defaultValue": "60"
                    },
                    "langtool_maxTextLength": {
                      "isOptional": true,
                      "description": "Maximum characters per request",
                      "defaultValue": "50000"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Dockerfile for this service",
                      "defaultValue": "languagetool/Dockerfile"
                    },
                    "langtool_cacheTTLSeconds": {
                      "isOptional": true,
                      "description": "Lifetime of a cached result",
                      "defaultValue": "300"
                    },
                    "langtool_pipelineCaching": {
                      "isOptional": true,
                      "description": "Reuse analysis pipelines between requests",
                      "defaultValue": "true"
                    },
                    "langtool_maxCheckTimeMillis": {
                      "isOptional": true,
                      "description": "Maximum time spent on one check",
                      "defaultValue": "60000"
                    },
                    "langtool_maxPipelinePoolSize": {
                      "isOptional": true,
                      "description": "Cached pipelines held per language",
                      "defaultValue": "10"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "Window for JVM start and dictionary load",
                      "defaultValue": "600"
                    },
                    "langtool_anonymousAccessAllowed": {
                      "isOptional": false,
                      "description": "Reject checks with no API key",
                      "defaultValue": "false"
                    },
                    "langtool_trustXForwardForHeader": {
                      "isOptional": false,
                      "description": "Read the client IP the gateway sets",
                      "defaultValue": "true"
                    },
                    "langtool_requestLimitPeriodInSeconds": {
                      "isOptional": true,
                      "description": "Length of the rate-limit window",
                      "defaultValue": "60"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "gateway",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-04T05:44:27.711Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-04T05:42:01.818Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_c4e210c7923d44bca3a2",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 57,
    "typical_workflow_seconds": 6,
    "typical_queue_seconds": 30,
    "typical_init_seconds": 0,
    "typical_build_seconds": 10,
    "typical_deploy_seconds": 0,
    "typical_healthcheck_lag_seconds": 0,
    "slowest_service": "gateway"
  }
}
