{
  "manifest_version": "1.0.0",
  "template": {
    "id": "8c479a32-8770-4dff-914d-2126fba04c1b",
    "slug": "phpipam-address-inventory",
    "name": "phpIPAM Address Inventory",
    "description": "IP address and subnet inventory with MariaDB and protected administration.",
    "url": "https://railway.com/deploy/phpipam-address-inventory",
    "upstream": {
      "repo_url": "https://github.com/orenaksakal/railway-templates"
    }
  },
  "services": [
    {
      "name": "app",
      "source": {
        "image": "phpipam/phpipam-www:v1.8.3@sha256:1ec1035d7e650bbe722faecc56ded7231c479b08297437dd8a37fde4f314fb04"
      },
      "needs_volume": true,
      "volume_mount_path": "/phpipam/css/images/logo",
      "http": false
    },
    {
      "name": "phpipam",
      "source": {
        "repo": "https://github.com/orenaksakal/railway-templates"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "mariadb",
      "source": {
        "image": "mariadb:11.4@sha256:70cc072b29b4a89ae07abb2d4da2c64678a7f2dfe092751bb51c87d67dc1338b"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "app",
      "description": "Tz for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "IPAM_DATABASE_HOST",
      "service": "app",
      "description": "Ipam database host resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "IPAM_DATABASE_NAME",
      "service": "app",
      "description": "Ipam database name for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "phpipam"
    },
    {
      "key": "IPAM_DATABASE_PASS",
      "service": "app",
      "description": "Ipam database pass resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "IPAM_DATABASE_USER",
      "service": "app",
      "description": "Ipam database user for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "phpipam"
    },
    {
      "key": "IPAM_DATABASE_WEBHOST",
      "service": "app",
      "description": "Ipam database webhost for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "%"
    },
    {
      "key": "IPAM_TRUST_X_FORWARDED",
      "service": "app",
      "description": "Ipam trust x forwarded for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "PORT",
      "service": "phpipam",
      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "OWNER_AUTH",
      "service": "phpipam",
      "description": "Require owner authentication for every application route.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "OWNER_SCOPE",
      "service": "phpipam",
      "description": "Protect all application routes.",
      "secret": false,
      "strategy": "default",
      "default": "all"
    },
    {
      "key": "UPSTREAM_HOST",
      "service": "phpipam",
      "description": "Upstream host resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "UPSTREAM_PORT",
      "service": "phpipam",
      "description": "Upstream port for phpipam. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "ACCESS_PASSWORD",
      "service": "phpipam",
      "description": "Generated access password. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "phpipam",
      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
      "secret": false,
      "strategy": "default",
      "default": "shared/round6-gateway/Dockerfile"
    },
    {
      "key": "MARIADB_USER",
      "service": "mariadb",
      "description": "Mariadb user for mariadb. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "phpipam"
    },
    {
      "key": "MARIADB_DATABASE",
      "service": "mariadb",
      "description": "Mariadb database for mariadb. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "phpipam"
    },
    {
      "key": "MARIADB_PASSWORD",
      "service": "mariadb",
      "description": "Generated mariadb password. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MARIADB_ROOT_PASSWORD",
      "service": "mariadb",
      "description": "Generated mariadb root password. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "phpipam-address-inventory"
      }
    },
    "cli": "railway deploy --template phpipam-address-inventory",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "8c479a32-8770-4dff-914d-2126fba04c1b",
            "serializedConfig": {
              "services": {
                "00806c5d-9127-54a8-af96-45decc47baa2": {
                  "name": "app",
                  "deploy": {
                    "requiredMountPath": "/phpipam/css/images/logo",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "phpipam/phpipam-www:v1.8.3@sha256:1ec1035d7e650bbe722faecc56ded7231c479b08297437dd8a37fde4f314fb04"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Tz for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "UTC"
                    },
                    "IPAM_DATABASE_HOST": {
                      "isOptional": false,
                      "description": "Ipam database host resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{mariadb.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "IPAM_DATABASE_NAME": {
                      "isOptional": false,
                      "description": "Ipam database name for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "phpipam"
                    },
                    "IPAM_DATABASE_PASS": {
                      "isOptional": false,
                      "description": "Ipam database pass resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{mariadb.MARIADB_PASSWORD}}"
                    },
                    "IPAM_DATABASE_USER": {
                      "isOptional": false,
                      "description": "Ipam database user for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "phpipam"
                    },
                    "IPAM_DATABASE_WEBHOST": {
                      "isOptional": false,
                      "description": "Ipam database webhost for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "%"
                    },
                    "IPAM_TRUST_X_FORWARDED": {
                      "isOptional": false,
                      "description": "Ipam trust x forwarded for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "26489e7f-f7cf-54a8-ab2c-2739478b6f1c": {
                      "mountPath": "/phpipam/css/images/logo"
                    }
                  }
                },
                "d9603754-e71a-57d2-8451-496846063f05": {
                  "name": "phpipam",
                  "build": {
                    "builder": "RAILPACK",
                    "dockerfilePath": "shared/round6-gateway/Dockerfile"
                  },
                  "deploy": {
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "orenaksakal/railway-templates",
                    "branch": "codex/unique-template-drafts"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
                      "defaultValue": "8080"
                    },
                    "OWNER_AUTH": {
                      "isOptional": false,
                      "description": "Require owner authentication for every application route.",
                      "defaultValue": "true"
                    },
                    "OWNER_SCOPE": {
                      "isOptional": false,
                      "description": "Protect all application routes.",
                      "defaultValue": "all"
                    },
                    "UPSTREAM_HOST": {
                      "isOptional": false,
                      "description": "Upstream host resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{app.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "UPSTREAM_PORT": {
                      "isOptional": false,
                      "description": "Upstream port for phpipam. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "80"
                    },
                    "ACCESS_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated access password. Keep private and preserve with backups.",
                      "defaultValue": "{{ACCESS_PASSWORD}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
                      "defaultValue": "shared/round6-gateway/Dockerfile"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {}
                },
                "ec56ed22-b641-5e98-b256-ccbd2ecd2961": {
                  "name": "mariadb",
                  "deploy": {
                    "requiredMountPath": "/var/lib/mysql",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mariadb:11.4@sha256:70cc072b29b4a89ae07abb2d4da2c64678a7f2dfe092751bb51c87d67dc1338b"
                  },
                  "variables": {
                    "MARIADB_USER": {
                      "isOptional": false,
                      "description": "Mariadb user for mariadb. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "phpipam"
                    },
                    "MARIADB_DATABASE": {
                      "isOptional": false,
                      "description": "Mariadb database for mariadb. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "phpipam"
                    },
                    "MARIADB_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated mariadb password. Keep private and preserve with backups.",
                      "defaultValue": "{{MARIADB_PASSWORD}}"
                    },
                    "MARIADB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated mariadb root password. Keep private and preserve with backups.",
                      "defaultValue": "{{MARIADB_ROOT_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "0ed1fdcd-07f3-5630-9ec9-95794a648445": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "phpipam",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-19T10:14:38.021Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T07:55:33.713Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_2459c88cb9754eb98f34",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 140,
    "typical_build_seconds": 30,
    "typical_start_seconds": 0,
    "slowest_service": "phpipam"
  }
}
