{
  "manifest_version": "1.0.0",
  "template": {
    "id": "be6d542c-e91d-471e-99a9-000bc821b6de",
    "slug": "netbox",
    "name": "Netbox",
    "description": "IP address and data centre management",
    "url": "https://railway.com/deploy/netbox",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/netbox-railway"
    }
  },
  "services": [
    {
      "name": "Redis-Cache",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "netbox",
      "source": {
        "repo": "https://github.com/gridalpha/netbox-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "netbox-worker",
      "source": {
        "repo": "https://github.com/gridalpha/netbox-railway"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "REDISHOST",
      "service": "Redis-Cache",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis-Cache",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis-Cache",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis-Cache",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis-Cache",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis-Cache",
      "description": "Auth password, read by the server",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "netbox",
      "description": "HTTP port Granian binds",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "DB_HOST",
      "service": "netbox",
      "description": "Postgres private hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_NAME",
      "service": "netbox",
      "description": "Postgres database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_PORT",
      "service": "netbox",
      "description": "Postgres port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_USER",
      "service": "netbox",
      "description": "Postgres username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_BUCKET",
      "service": "netbox",
      "description": "Object storage bucket name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_REGION",
      "service": "netbox",
      "description": "Object storage region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TIME_ZONE",
      "service": "netbox",
      "description": "Display timezone",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "REDIS_HOST",
      "service": "netbox",
      "description": "Task queue Redis hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PORT",
      "service": "netbox",
      "description": "Task queue Redis port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SECRET_KEY",
      "service": "netbox",
      "description": "Django signing key, must stay stable",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DB_PASSWORD",
      "service": "netbox",
      "description": "Postgres password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "netbox",
      "description": "Object storage endpoint URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_DATABASE",
      "service": "netbox",
      "description": "Task queue Redis database index",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "netbox",
      "description": "Task queue Redis password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SKIP_SUPERUSER",
      "service": "netbox",
      "description": "Create the first administrator on boot",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "SUPERUSER_NAME",
      "service": "netbox",
      "description": "First administrator username",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "GRAPHQL_ENABLED",
      "service": "netbox",
      "description": "Enable the GraphQL API",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SUPERUSER_EMAIL",
      "service": "netbox",
      "description": "First administrator email",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "MAX_DB_WAIT_TIME",
      "service": "netbox",
      "description": "Seconds to wait for the database",
      "secret": false,
      "strategy": "default",
      "default": "180"
    },
    {
      "key": "REDIS_CACHE_HOST",
      "service": "netbox",
      "description": "Cache Redis hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_CACHE_PORT",
      "service": "netbox",
      "description": "Cache Redis port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_ACCESS_KEY_ID",
      "service": "netbox",
      "description": "Object storage access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RELEASE_CHECK_URL",
      "service": "netbox",
      "description": "New release notice source",
      "secret": false,
      "strategy": "default",
      "default": "https://api.github.com/repos/netbox-community/netbox/releases"
    },
    {
      "key": "API_TOKEN_PEPPER_1",
      "service": "netbox",
      "description": "Peppers stored API token hashes",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SUPERUSER_PASSWORD",
      "service": "netbox",
      "description": "First administrator password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SECURE_HSTS_SECONDS",
      "service": "netbox",
      "description": "HSTS max-age on responses",
      "secret": false,
      "strategy": "default",
      "default": "31536000"
    },
    {
      "key": "REDIS_CACHE_DATABASE",
      "service": "netbox",
      "description": "Cache Redis database index",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "REDIS_CACHE_PASSWORD",
      "service": "netbox",
      "description": "Cache Redis password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_SECRET_ACCESS_KEY",
      "service": "netbox",
      "description": "Object storage secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "netbox",
      "description": "Dockerfile to build",
      "secret": false,
      "strategy": "default",
      "default": "Dockerfile"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Cluster location on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Superuser created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate expiry in days",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Superuser password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "DB_HOST",
      "service": "netbox-worker",
      "description": "Postgres private hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_NAME",
      "service": "netbox-worker",
      "description": "Postgres database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_PORT",
      "service": "netbox-worker",
      "description": "Postgres port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_USER",
      "service": "netbox-worker",
      "description": "Postgres username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_BUCKET",
      "service": "netbox-worker",
      "description": "Object storage bucket name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_REGION",
      "service": "netbox-worker",
      "description": "Object storage region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_HOST",
      "service": "netbox-worker",
      "description": "Task queue Redis hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PORT",
      "service": "netbox-worker",
      "description": "Task queue Redis port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SECRET_KEY",
      "service": "netbox-worker",
      "description": "Must match the web service",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_PASSWORD",
      "service": "netbox-worker",
      "description": "Postgres password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "netbox-worker",
      "description": "Object storage endpoint URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_DATABASE",
      "service": "netbox-worker",
      "description": "Task queue Redis database index",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "netbox-worker",
      "description": "Task queue Redis password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SKIP_SUPERUSER",
      "service": "netbox-worker",
      "description": "Web service owns administrator creation",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "GRAPHQL_ENABLED",
      "service": "netbox-worker",
      "description": "Enable the GraphQL API",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "REDIS_CACHE_HOST",
      "service": "netbox-worker",
      "description": "Cache Redis hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_CACHE_PORT",
      "service": "netbox-worker",
      "description": "Cache Redis port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_ACCESS_KEY_ID",
      "service": "netbox-worker",
      "description": "Object storage access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "API_TOKEN_PEPPER_1",
      "service": "netbox-worker",
      "description": "Must match the web service",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_CACHE_DATABASE",
      "service": "netbox-worker",
      "description": "Cache Redis database index",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "REDIS_CACHE_PASSWORD",
      "service": "netbox-worker",
      "description": "Cache Redis password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_SECRET_ACCESS_KEY",
      "service": "netbox-worker",
      "description": "Object storage secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "netbox-worker",
      "description": "Dockerfile to build",
      "secret": false,
      "strategy": "default",
      "default": "Dockerfile"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Auth password, read by the server",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "netbox"
      }
    },
    "cli": "railway deploy --template netbox",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "be6d542c-e91d-471e-99a9-000bc821b6de",
            "serializedConfig": {
              "buckets": {
                "97a2b4d8-75fd-474a-8eea-2c2ea6ebb5ea": {
                  "name": "netbox-storage"
                }
              },
              "services": {
                "082cc106-a30d-4dd2-98b9-f6dcffc38efc": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/redis.svg",
                  "name": "Redis-Cache",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Auth password, read by the server",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "082cc106-a30d-4dd2-98b9-f6dcffc38efc": {
                      "mountPath": "/data"
                    }
                  }
                },
                "2f6140bb-2a41-460a-a382-f8948203956d": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/netbox.svg",
                  "name": "netbox",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/login/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/netbox-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port Granian binds",
                      "defaultValue": "8080"
                    },
                    "DB_HOST": {
                      "isOptional": false,
                      "description": "Postgres private hostname",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "DB_NAME": {
                      "isOptional": false,
                      "description": "Postgres database name",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "Postgres port",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "DB_USER": {
                      "isOptional": false,
                      "description": "Postgres username",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "S3_BUCKET": {
                      "isOptional": false,
                      "description": "Object storage bucket name",
                      "defaultValue": "${{netbox-storage.BUCKET}}"
                    },
                    "S3_REGION": {
                      "isOptional": false,
                      "description": "Object storage region",
                      "defaultValue": "${{netbox-storage.REGION}}"
                    },
                    "TIME_ZONE": {
                      "isOptional": false,
                      "description": "Display timezone",
                      "defaultValue": "UTC"
                    },
                    "REDIS_HOST": {
                      "isOptional": false,
                      "description": "Task queue Redis hostname",
                      "defaultValue": "${{Redis.REDISHOST}}"
                    },
                    "REDIS_PORT": {
                      "isOptional": false,
                      "description": "Task queue Redis port",
                      "defaultValue": "${{Redis.REDISPORT}}"
                    },
                    "SECRET_KEY": {
                      "isOptional": false,
                      "description": "Django signing key, must stay stable",
                      "defaultValue": "{{SECRET_KEY}}"
                    },
                    "DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Postgres password",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Object storage endpoint URL",
                      "defaultValue": "${{netbox-storage.ENDPOINT}}"
                    },
                    "REDIS_DATABASE": {
                      "isOptional": false,
                      "description": "Task queue Redis database index",
                      "defaultValue": "0"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Task queue Redis password",
                      "defaultValue": "${{Redis.REDISPASSWORD}}"
                    },
                    "SKIP_SUPERUSER": {
                      "isOptional": false,
                      "description": "Create the first administrator on boot",
                      "defaultValue": "false"
                    },
                    "SUPERUSER_NAME": {
                      "isOptional": false,
                      "description": "First administrator username",
                      "defaultValue": "admin"
                    },
                    "GRAPHQL_ENABLED": {
                      "isOptional": false,
                      "description": "Enable the GraphQL API",
                      "defaultValue": "true"
                    },
                    "SUPERUSER_EMAIL": {
                      "isOptional": false,
                      "description": "First administrator email",
                      "defaultValue": "admin@example.com"
                    },
                    "MAX_DB_WAIT_TIME": {
                      "isOptional": false,
                      "description": "Seconds to wait for the database",
                      "defaultValue": "180"
                    },
                    "REDIS_CACHE_HOST": {
                      "isOptional": false,
                      "description": "Cache Redis hostname",
                      "defaultValue": "${{Redis-Cache.REDISHOST}}"
                    },
                    "REDIS_CACHE_PORT": {
                      "isOptional": false,
                      "description": "Cache Redis port",
                      "defaultValue": "${{Redis-Cache.REDISPORT}}"
                    },
                    "S3_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Object storage access key",
                      "defaultValue": "${{netbox-storage.ACCESS_KEY_ID}}"
                    },
                    "RELEASE_CHECK_URL": {
                      "isOptional": false,
                      "description": "New release notice source",
                      "defaultValue": "https://api.github.com/repos/netbox-community/netbox/releases"
                    },
                    "API_TOKEN_PEPPER_1": {
                      "isOptional": false,
                      "description": "Peppers stored API token hashes",
                      "defaultValue": "{{API_TOKEN_PEPPER_1}}"
                    },
                    "SUPERUSER_PASSWORD": {
                      "isOptional": false,
                      "description": "First administrator password",
                      "defaultValue": "{{SUPERUSER_PASSWORD}}"
                    },
                    "SECURE_HSTS_SECONDS": {
                      "isOptional": false,
                      "description": "HSTS max-age on responses",
                      "defaultValue": "31536000"
                    },
                    "REDIS_CACHE_DATABASE": {
                      "isOptional": false,
                      "description": "Cache Redis database index",
                      "defaultValue": "1"
                    },
                    "REDIS_CACHE_PASSWORD": {
                      "isOptional": false,
                      "description": "Cache Redis password",
                      "defaultValue": "${{Redis-Cache.REDISPASSWORD}}"
                    },
                    "S3_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Object storage secret key",
                      "defaultValue": "${{netbox-storage.SECRET_ACCESS_KEY}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Dockerfile to build",
                      "defaultValue": "Dockerfile"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "68c17e6b-e2df-4c8b-9ff3-f415779ceaee": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Cluster location on the volume",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Superuser created on first boot",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "SSL certificate expiry in days",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "68c17e6b-e2df-4c8b-9ff3-f415779ceaee": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "a6ee42bc-38ea-48f2-837b-1e8f8005bf6e": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/netbox.svg",
                  "name": "netbox-worker",
                  "deploy": {
                    "startCommand": "/usr/bin/tini -- /opt/netbox/railway/worker.sh",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/netbox-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "DB_HOST": {
                      "isOptional": false,
                      "description": "Postgres private hostname",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "DB_NAME": {
                      "isOptional": false,
                      "description": "Postgres database name",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "Postgres port",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "DB_USER": {
                      "isOptional": false,
                      "description": "Postgres username",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "S3_BUCKET": {
                      "isOptional": false,
                      "description": "Object storage bucket name",
                      "defaultValue": "${{netbox-storage.BUCKET}}"
                    },
                    "S3_REGION": {
                      "isOptional": false,
                      "description": "Object storage region",
                      "defaultValue": "${{netbox-storage.REGION}}"
                    },
                    "REDIS_HOST": {
                      "isOptional": false,
                      "description": "Task queue Redis hostname",
                      "defaultValue": "${{Redis.REDISHOST}}"
                    },
                    "REDIS_PORT": {
                      "isOptional": false,
                      "description": "Task queue Redis port",
                      "defaultValue": "${{Redis.REDISPORT}}"
                    },
                    "SECRET_KEY": {
                      "isOptional": false,
                      "description": "Must match the web service",
                      "defaultValue": "${{netbox.SECRET_KEY}}"
                    },
                    "DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Postgres password",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Object storage endpoint URL",
                      "defaultValue": "${{netbox-storage.ENDPOINT}}"
                    },
                    "REDIS_DATABASE": {
                      "isOptional": false,
                      "description": "Task queue Redis database index",
                      "defaultValue": "0"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Task queue Redis password",
                      "defaultValue": "${{Redis.REDISPASSWORD}}"
                    },
                    "SKIP_SUPERUSER": {
                      "isOptional": false,
                      "description": "Web service owns administrator creation",
                      "defaultValue": "true"
                    },
                    "GRAPHQL_ENABLED": {
                      "isOptional": false,
                      "description": "Enable the GraphQL API",
                      "defaultValue": "true"
                    },
                    "REDIS_CACHE_HOST": {
                      "isOptional": false,
                      "description": "Cache Redis hostname",
                      "defaultValue": "${{Redis-Cache.REDISHOST}}"
                    },
                    "REDIS_CACHE_PORT": {
                      "isOptional": false,
                      "description": "Cache Redis port",
                      "defaultValue": "${{Redis-Cache.REDISPORT}}"
                    },
                    "S3_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Object storage access key",
                      "defaultValue": "${{netbox-storage.ACCESS_KEY_ID}}"
                    },
                    "API_TOKEN_PEPPER_1": {
                      "isOptional": false,
                      "description": "Must match the web service",
                      "defaultValue": "${{netbox.API_TOKEN_PEPPER_1}}"
                    },
                    "REDIS_CACHE_DATABASE": {
                      "isOptional": false,
                      "description": "Cache Redis database index",
                      "defaultValue": "1"
                    },
                    "REDIS_CACHE_PASSWORD": {
                      "isOptional": false,
                      "description": "Cache Redis password",
                      "defaultValue": "${{Redis-Cache.REDISPASSWORD}}"
                    },
                    "S3_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Object storage secret key",
                      "defaultValue": "${{netbox-storage.SECRET_ACCESS_KEY}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Dockerfile to build",
                      "defaultValue": "Dockerfile"
                    }
                  }
                },
                "d6b75bd8-641d-48a4-846e-2af78e2660a4": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/redis.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Auth password, read by the server",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "d6b75bd8-641d-48a4-846e-2af78e2660a4": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "netbox",
      "method": "GET",
      "path": "/login/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-19T17:18:37.358Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_789fbf3236ae4b02b715",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ]
  }
}
