{
  "manifest_version": "1.0.0",
  "template": {
    "id": "c8bc1c38-cfa1-4f95-bec5-21ddfac09189",
    "slug": "libretranslate-or-just-updated-translati",
    "name": "LibreTranslate | (Just Updated) Translation API, Key-Locked, Models Survive Redeploys",
    "description": "LibreTranslate translation API, key-locked. Models survive redeploys",
    "url": "https://railway.com/deploy/libretranslate-or-just-updated-translati",
    "upstream": {
      "image": "libretranslate/libretranslate:v1.9.6@sha256:1de2d7056bb8ad607a412f4563d9abe324ff632b43b5be9428bcc8e213aebb32"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "libretranslate",
      "source": {
        "image": "libretranslate/libretranslate:v1.9.6@sha256:1de2d7056bb8ad607a412f4563d9abe324ff632b43b5be9428bcc8e213aebb32"
      },
      "needs_volume": true,
      "volume_mount_path": "/home/libretranslate/.local",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "RAILWAY_RUN_UID",
      "service": "libretranslate",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "LIBRETRANSLATE_URL",
      "service": "libretranslate",
      "description": "Provide a value for LIBRETRANSLATE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "LIBRETRANSLATE_API_KEY",
      "service": "libretranslate",
      "description": "Provide a value for LIBRETRANSLATE_API_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LIBRETRANSLATE_PRIVATE_URL",
      "service": "libretranslate",
      "description": "Provide a value for LIBRETRANSLATE_PRIVATE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "libretranslate-or-just-updated-translati"
      }
    },
    "cli": "railway deploy --template libretranslate-or-just-updated-translati",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "c8bc1c38-cfa1-4f95-bec5-21ddfac09189",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "1e3efcd8-b963-4f1c-91bf-73f105013b00": {
                  "icon": null,
                  "name": "libretranslate",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'set -e; cd /app; D=/home/libretranslate/.local; DB=$D/api_keys.db; mkdir -p \"$D\"; ./venv/bin/python -c \"import sys;from libretranslate.api_keys import Database;Database(sys.argv[1]).add(600, sys.argv[2])\" \"$DB\" \"$LIBRETRANSLATE_API_KEY\"; L=\"${LT_LOAD_ONLY:-en,es,fr,de,pt,it,ja,zh,ko,ru,ar,hi}\"; echo \"[railway] api key loaded uid=$(id -u) data=$(stat -c %u:%g \"$D\") port=${PORT:-5000} languages=$L\"; exec ./scripts/entrypoint.sh --host 0.0.0.0 --port \"${PORT:-5000}\" --api-keys --api-keys-db-path \"$DB\" --under-attack --req-limit 120 --load-only \"$L\"'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "libretranslate/libretranslate:v1.9.6@sha256:1de2d7056bb8ad607a412f4563d9abe324ff632b43b5be9428bcc8e213aebb32"
                  },
                  "variables": {
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "defaultValue": "{{RAILWAY_RUN_UID}}"
                    },
                    "LIBRETRANSLATE_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "LIBRETRANSLATE_API_KEY": {
                      "isOptional": false,
                      "defaultValue": "{{LIBRETRANSLATE_API_KEY}}"
                    },
                    "LIBRETRANSLATE_PRIVATE_URL": {
                      "isOptional": false,
                      "defaultValue": "http://${{RAILWAY_PRIVATE_DOMAIN}}:${{PORT}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "1e3efcd8-b963-4f1c-91bf-73f105013b00": {
                      "mountPath": "/home/libretranslate/.local"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-10-30T04:14:55.026Z",
  "generator_version": "0.1.0"
}
