{
  "manifest_version": "1.0.0",
  "template": {
    "id": "7abdfcf6-99b5-40d8-8f27-3b22f8015f5a",
    "slug": "gramps-web",
    "name": "Gramps Web",
    "description": "Family history with persistent trees, media and background jobs.",
    "url": "https://railway.com/deploy/gramps-web",
    "upstream": {
      "repo_url": "https://github.com/orenaksakal/railway-templates"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "gramps-web",
      "source": {
        "repo": "https://github.com/orenaksakal/railway-templates"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "redis",
      "source": {
        "image": "redis:7.4@sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "gramps-web",
      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
      "secret": false,
      "strategy": "default",
      "default": "5000"
    },
    {
      "key": "GRAMPSHOME",
      "service": "gramps-web",
      "description": "Persistent Gramps data location inside the single /data volume.",
      "secret": false,
      "strategy": "default",
      "default": "/data/home"
    },
    {
      "key": "OWNER_EMAIL",
      "service": "gramps-web",
      "description": "Email for the initial Gramps Web owner.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "GRAMPSWEB_TREE",
      "service": "gramps-web",
      "description": "Grampsweb tree for gramps-web. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "Family Tree"
    },
    {
      "key": "OWNER_PASSWORD",
      "service": "gramps-web",
      "description": "Generated owner password. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "GRAMPSWEB_BASE_URL",
      "service": "gramps-web",
      "description": "Grampsweb base url resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "GRAMPSWEB_EXPORT_DIR",
      "service": "gramps-web",
      "description": "Persistent Gramps data location inside the single /data volume.",
      "secret": false,
      "strategy": "default",
      "default": "/data/cache/export"
    },
    {
      "key": "GRAMPSWEB_REPORT_DIR",
      "service": "gramps-web",
      "description": "Persistent Gramps data location inside the single /data volume.",
      "secret": false,
      "strategy": "default",
      "default": "/data/cache/reports"
    },
    {
      "key": "GRAMPSWEB_SECRET_KEY",
      "service": "gramps-web",
      "description": "Generated grampsweb secret key. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "GRAMPS_DATABASE_PATH",
      "service": "gramps-web",
      "description": "Persistent Gramps data location inside the single /data volume.",
      "secret": false,
      "strategy": "default",
      "default": "/data/grampsdb"
    },
    {
      "key": "GUNICORN_NUM_WORKERS",
      "service": "gramps-web",
      "description": "Gunicorn num workers for gramps-web. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "GRAMPSWEB_USER_DB_URI",
      "service": "gramps-web",
      "description": "Persistent Gramps data location inside the single /data volume.",
      "secret": false,
      "strategy": "default",
      "default": "sqlite:////data/users/users.sqlite"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "gramps-web",
      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
      "secret": false,
      "strategy": "default",
      "default": "templates/round9/gramps-web/Dockerfile"
    },
    {
      "key": "GRAMPSWEB_MEDIA_BASE_DIR",
      "service": "gramps-web",
      "description": "Persistent Gramps data location inside the single /data volume.",
      "secret": false,
      "strategy": "default",
      "default": "/data/media"
    },
    {
      "key": "GRAMPSWEB_DISABLE_TELEMETRY",
      "service": "gramps-web",
      "description": "Grampsweb disable telemetry for gramps-web. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "GRAMPSWEB_SEARCH_INDEX_DB_URI",
      "service": "gramps-web",
      "description": "Persistent Gramps data location inside the single /data volume.",
      "secret": false,
      "strategy": "default",
      "default": "sqlite:////data/index/search_index.db"
    },
    {
      "key": "GRAMPSWEB_RATELIMIT_STORAGE_URI",
      "service": "gramps-web",
      "description": "Grampsweb ratelimit storage uri resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "GRAMPSWEB_REGISTRATION_DISABLED",
      "service": "gramps-web",
      "description": "Grampsweb registration disabled for gramps-web. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "GRAMPSWEB_CELERY_CONFIG__broker_url",
      "service": "gramps-web",
      "description": "Grampsweb celery config  broker url resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "GRAMPSWEB_CELERY_CONFIG__result_backend",
      "service": "gramps-web",
      "description": "Grampsweb celery config  result backend resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "GRAMPSWEB_REQUEST_CACHE_CONFIG__CACHE_DIR",
      "service": "gramps-web",
      "description": "Persistent Gramps data location inside the single /data volume.",
      "secret": false,
      "strategy": "default",
      "default": "/data/cache/request_cache"
    },
    {
      "key": "GRAMPSWEB_THUMBNAIL_CACHE_CONFIG__CACHE_DIR",
      "service": "gramps-web",
      "description": "Persistent Gramps data location inside the single /data volume.",
      "secret": false,
      "strategy": "default",
      "default": "/data/thumbnail_cache"
    },
    {
      "key": "GRAMPSWEB_PERSISTENT_CACHE_CONFIG__CACHE_DIR",
      "service": "gramps-web",
      "description": "Persistent Gramps data location inside the single /data volume.",
      "secret": false,
      "strategy": "default",
      "default": "/data/cache/persistent_cache"
    },
    {
      "key": "REDIS_URL",
      "service": "redis",
      "description": "Private authenticated Redis/Valkey connection URL. Automatically assembled from service references.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "redis",
      "description": "Generated private Redis/Valkey password, or a reference to that password. Keep secret.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "gramps-web"
      }
    },
    "cli": "railway deploy --template gramps-web",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "7abdfcf6-99b5-40d8-8f27-3b22f8015f5a",
            "serializedConfig": {
              "services": {
                "42060bed-e4c9-572b-9df3-16997b9784ea": {
                  "name": "gramps-web",
                  "build": {
                    "builder": "RAILPACK",
                    "dockerfilePath": "templates/round9/gramps-web/Dockerfile"
                  },
                  "deploy": {
                    "healthcheckPath": "/",
                    "requiredMountPath": "/data",
                    "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": "5000"
                    },
                    "GRAMPSHOME": {
                      "isOptional": false,
                      "description": "Persistent Gramps data location inside the single /data volume.",
                      "defaultValue": "/data/home"
                    },
                    "OWNER_EMAIL": {
                      "isOptional": false,
                      "description": "Email for the initial Gramps Web owner.",
                      "defaultValue": "{{OWNER_EMAIL}}"
                    },
                    "GRAMPSWEB_TREE": {
                      "isOptional": false,
                      "description": "Grampsweb tree for gramps-web. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "Family Tree"
                    },
                    "OWNER_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated owner password. Keep private and preserve with backups.",
                      "defaultValue": "{{OWNER_PASSWORD}}"
                    },
                    "GRAMPSWEB_BASE_URL": {
                      "isOptional": false,
                      "description": "Grampsweb base url resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "https://${{gramps-web.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "GRAMPSWEB_EXPORT_DIR": {
                      "isOptional": false,
                      "description": "Persistent Gramps data location inside the single /data volume.",
                      "defaultValue": "/data/cache/export"
                    },
                    "GRAMPSWEB_REPORT_DIR": {
                      "isOptional": false,
                      "description": "Persistent Gramps data location inside the single /data volume.",
                      "defaultValue": "/data/cache/reports"
                    },
                    "GRAMPSWEB_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Generated grampsweb secret key. Keep private and preserve with backups.",
                      "defaultValue": "{{GRAMPSWEB_SECRET_KEY}}"
                    },
                    "GRAMPS_DATABASE_PATH": {
                      "isOptional": false,
                      "description": "Persistent Gramps data location inside the single /data volume.",
                      "defaultValue": "/data/grampsdb"
                    },
                    "GUNICORN_NUM_WORKERS": {
                      "isOptional": false,
                      "description": "Gunicorn num workers for gramps-web. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "2"
                    },
                    "GRAMPSWEB_USER_DB_URI": {
                      "isOptional": false,
                      "description": "Persistent Gramps data location inside the single /data volume.",
                      "defaultValue": "sqlite:////data/users/users.sqlite"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
                      "defaultValue": "templates/round9/gramps-web/Dockerfile"
                    },
                    "GRAMPSWEB_MEDIA_BASE_DIR": {
                      "isOptional": false,
                      "description": "Persistent Gramps data location inside the single /data volume.",
                      "defaultValue": "/data/media"
                    },
                    "GRAMPSWEB_DISABLE_TELEMETRY": {
                      "isOptional": false,
                      "description": "Grampsweb disable telemetry for gramps-web. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "true"
                    },
                    "GRAMPSWEB_SEARCH_INDEX_DB_URI": {
                      "isOptional": false,
                      "description": "Persistent Gramps data location inside the single /data volume.",
                      "defaultValue": "sqlite:////data/index/search_index.db"
                    },
                    "GRAMPSWEB_RATELIMIT_STORAGE_URI": {
                      "isOptional": false,
                      "description": "Grampsweb ratelimit storage uri resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{redis.REDIS_URL}}/1"
                    },
                    "GRAMPSWEB_REGISTRATION_DISABLED": {
                      "isOptional": false,
                      "description": "Grampsweb registration disabled for gramps-web. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "true"
                    },
                    "GRAMPSWEB_CELERY_CONFIG__broker_url": {
                      "isOptional": false,
                      "description": "Grampsweb celery config  broker url resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{redis.REDIS_URL}}/0"
                    },
                    "GRAMPSWEB_CELERY_CONFIG__result_backend": {
                      "isOptional": false,
                      "description": "Grampsweb celery config  result backend resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{redis.REDIS_URL}}/0"
                    },
                    "GRAMPSWEB_REQUEST_CACHE_CONFIG__CACHE_DIR": {
                      "isOptional": false,
                      "description": "Persistent Gramps data location inside the single /data volume.",
                      "defaultValue": "/data/cache/request_cache"
                    },
                    "GRAMPSWEB_THUMBNAIL_CACHE_CONFIG__CACHE_DIR": {
                      "isOptional": false,
                      "description": "Persistent Gramps data location inside the single /data volume.",
                      "defaultValue": "/data/thumbnail_cache"
                    },
                    "GRAMPSWEB_PERSISTENT_CACHE_CONFIG__CACHE_DIR": {
                      "isOptional": false,
                      "description": "Persistent Gramps data location inside the single /data volume.",
                      "defaultValue": "/data/cache/persistent_cache"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:5000": {
                        "port": 5000
                      }
                    }
                  },
                  "volumeMounts": {
                    "05b19f47-c019-55a7-b0c1-4c49647689cb": {
                      "mountPath": "/data"
                    }
                  }
                },
                "f55c72d8-ac79-5e3e-b141-46688a31a7f4": {
                  "name": "redis",
                  "deploy": {
                    "startCommand": "sh -c 'exec redis-server --bind 0.0.0.0 :: --appendonly yes --maxmemory-policy noeviction --requirepass \"$REDIS_PASSWORD\"'",
                    "requiredMountPath": "/data",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:7.4@sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f"
                  },
                  "variables": {
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private authenticated Redis/Valkey connection URL. Automatically assembled from service references.",
                      "defaultValue": "redis://:${{redis.REDIS_PASSWORD}}@${{redis.RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated private Redis/Valkey password, or a reference to that password. Keep secret.",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "623ea7a2-1826-5278-87cc-fb0123bbac1d": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "gramps-web",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-19T10:14:38.021Z",
  "generator_version": "0.1.0"
}
