{
  "manifest_version": "1.0.0",
  "template": {
    "id": "2a778462-ed45-49f6-96b9-cf03814f492e",
    "slug": "oracle-database-1",
    "name": "Oracle database",
    "description": "Oracle 26ai instance with persistent storage, private networking.",
    "url": "https://railway.com/deploy/oracle-database-1",
    "upstream": {
      "repo_url": "https://github.com/lassegit/oracle-database"
    }
  },
  "services": [
    {
      "name": "oracle-database",
      "source": {
        "repo": "https://github.com/lassegit/oracle-database"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "ORACLE_PWD",
      "service": "oracle-database",
      "description": "Password for the Oracle SYS, SYSTEM and PDBADMIN users. Generated at deploy; applied on every start, so change it and restart the service to rotate it.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "oracle-database",
      "description": "Run the container as root (0) so the wrapper can fix ownership of /opt/oracle/oradata before dropping privileges to the Oracle user. Required for Railway volumes.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "ORACLE_IMAGE_TAG",
      "service": "oracle-database",
      "description": "Container image tag to build. Use a -lite tag; latest and untagged names point at the ~3.7 GB full image. Move forward only and test on a copy of the volume first.",
      "secret": false,
      "strategy": "default",
      "default": "23.26.3.0-lite"
    },
    {
      "key": "APP_USER_PASSWORD",
      "service": "oracle-database",
      "description": "Password for APP_USER. Only used when APP_USER is set. Generated at deploy; change it and restart the service to rotate.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_SHM_SIZE_BYTES",
      "service": "oracle-database",
      "description": "Size of /dev/shm in bytes. 2147483648 (2 GiB) keeps Oracle shared-memory allocations from hitting Railway's 64 MB default.",
      "secret": false,
      "strategy": "default",
      "default": "2147483648"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "oracle-database",
      "description": "Seconds Railway waits between SIGTERM and SIGKILL on redeploy, giving Oracle time to shut down cleanly instead of recovering from a crash.",
      "secret": false,
      "strategy": "default",
      "default": "30"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "oracle-database-1"
      }
    },
    "cli": "railway deploy --template oracle-database-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "2a778462-ed45-49f6-96b9-cf03814f492e",
            "serializedConfig": {
              "services": {
                "c7f42ea7-47bf-4480-b47b-2fc2c01fddbe": {
                  "icon": "https://upload.wikimedia.org/wikipedia/commons/5/50/Oracle_logo.svg",
                  "name": "oracle-database",
                  "source": {
                    "repo": "lassegit/oracle-database"
                  },
                  "variables": {
                    "APP_USER": {
                      "isOptional": true,
                      "description": "Optional name of an application schema/user to create in FREEPDB1 at startup (for example app). Leave empty to skip; when set, APP_USER_PASSWORD is used for it.",
                      "defaultValue": ""
                    },
                    "ORACLE_PWD": {
                      "description": "Password for the Oracle SYS, SYSTEM and PDBADMIN users. Generated at deploy; applied on every start, so change it and restart the service to rotate it.",
                      "defaultValue": "{{ORACLE_PWD}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "description": "Run the container as root (0) so the wrapper can fix ownership of /opt/oracle/oradata before dropping privileges to the Oracle user. Required for Railway volumes.",
                      "defaultValue": "0"
                    },
                    "ORACLE_IMAGE_TAG": {
                      "description": "Container image tag to build. Use a -lite tag; latest and untagged names point at the ~3.7 GB full image. Move forward only and test on a copy of the volume first.",
                      "defaultValue": "23.26.3.0-lite"
                    },
                    "APP_USER_PASSWORD": {
                      "description": "Password for APP_USER. Only used when APP_USER is set. Generated at deploy; change it and restart the service to rotate.",
                      "defaultValue": "{{APP_USER_PASSWORD}}"
                    },
                    "RAILWAY_SHM_SIZE_BYTES": {
                      "description": "Size of /dev/shm in bytes. 2147483648 (2 GiB) keeps Oracle shared-memory allocations from hitting Railway's 64 MB default.",
                      "defaultValue": "2147483648"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "description": "Seconds Railway waits between SIGTERM and SIGKILL on redeploy, giving Oracle time to shut down cleanly instead of recovering from a crash.",
                      "defaultValue": "30"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-10-05T16:14:45.410Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-05T10:43:58.418Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_b60070f31b5d4019809d",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 132,
    "typical_build_seconds": 41,
    "typical_start_seconds": 10,
    "slowest_service": "oracle-database"
  }
}
