{
  "manifest_version": "1.0.0",
  "template": {
    "id": "393079f2-b6c1-4457-9736-3fbde3b93271",
    "slug": "affine-027-docs-and-whiteboards",
    "name": "AFFiNE 0.27 Docs and Whiteboards",
    "description": "Docs, whiteboards and databases in one workspace you own.",
    "url": "https://railway.com/deploy/affine-027-docs-and-whiteboards",
    "upstream": {
      "repo_url": "https://github.com/baranberkay96/affine-railway"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "AFFiNE",
      "source": {
        "repo": "https://github.com/baranberkay96/affine-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/root/.affine/storage",
      "http": true
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Postgres",
      "source": {
        "image": "pgvector/pgvector:0.8.7-pg16"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "Indexer",
      "source": {
        "image": "manticoresearch/manticore:10.1.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/manticore",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "AFFiNE",
      "description": "Port the AFFiNE server listens on (domain and healthcheck).",
      "secret": false,
      "strategy": "default",
      "default": "3010"
    },
    {
      "key": "BUCKET_NAME",
      "service": "AFFiNE",
      "description": "Railway Bucket name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LISTEN_ADDR",
      "service": "AFFiNE",
      "description": "Listen on IPv4 and IPv6.",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "DATABASE_URL",
      "service": "AFFiNE",
      "description": "Postgres with pgvector (private network).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "BUCKET_REGION",
      "service": "AFFiNE",
      "description": "Railway Bucket region.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AFFINE_STORAGE",
      "service": "AFFiNE",
      "description": "'bucket' = workspace files in the Railway Bucket, 'fs' = everything on the service volume.",
      "secret": false,
      "strategy": "default",
      "default": "bucket"
    },
    {
      "key": "BUCKET_ENDPOINT",
      "service": "AFFiNE",
      "description": "Railway Bucket S3 endpoint.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_SERVER_HOST",
      "service": "AFFiNE",
      "description": "Redis host (cache, job queues, sync).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDIS_SERVER_PORT",
      "service": "AFFiNE",
      "description": "Redis port.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "AFFINE_ADMIN_EMAIL",
      "service": "AFFiNE",
      "description": "Email of the first administrator, created automatically on first start. Used to sign in.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "AFFINE_SERVER_HOST",
      "service": "AFFiNE",
      "description": "Public host name. Change for a custom domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "AFFINE_SERVER_NAME",
      "service": "AFFiNE",
      "description": "Server name shown when connecting from the desktop and mobile apps.",
      "secret": false,
      "strategy": "default",
      "default": "AFFiNE"
    },
    {
      "key": "AFFINE_SERVER_PORT",
      "service": "AFFiNE",
      "description": "Same port, AFFiNE's own setting.",
      "secret": false,
      "strategy": "default",
      "default": "3010"
    },
    {
      "key": "AFFINE_ALLOW_SIGNUP",
      "service": "AFFiNE",
      "description": "Default for open registration. Admins can change it later in Admin > Settings.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "AFFINE_SERVER_HTTPS",
      "service": "AFFiNE",
      "description": "Railway serves the domain over HTTPS.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "BUCKET_CORS_ENABLED",
      "service": "AFFiNE",
      "description": "Set the Bucket CORS rule in the pre-deploy step (browsers fetch files from presigned Bucket URLs).",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "BUCKET_CORS_ORIGINS",
      "service": "AFFiNE",
      "description": "Allowed origins for GET/HEAD on presigned URLs (space-separated). '*' covers web, desktop and mobile apps.",
      "secret": false,
      "strategy": "default",
      "default": "*"
    },
    {
      "key": "BUCKET_ACCESS_KEY_ID",
      "service": "AFFiNE",
      "description": "Railway Bucket access key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AFFINE_ADMIN_PASSWORD",
      "service": "AFFiNE",
      "description": "Password of the first administrator (generated). Change it after the first login.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDIS_SERVER_PASSWORD",
      "service": "AFFiNE",
      "description": "Redis password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AFFINE_COPILOT_ENABLED",
      "service": "AFFiNE",
      "description": "Enable AFFiNE AI; workspace owners add their own provider keys (BYOK).",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "AFFINE_INDEXER_ENABLED",
      "service": "AFFiNE",
      "description": "Server-side full-text search through the Indexer service (Manticore).",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "AFFINE_PRIVATE_KEY_SEED",
      "service": "AFFiNE",
      "description": "Seed for the server's signing/encryption key (derived on every start). Never change it.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BUCKET_FORCE_PATH_STYLE",
      "service": "AFFiNE",
      "description": "Railway Buckets use virtual-hosted URLs; true only if the Bucket's Credentials tab says path-style.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "BUCKET_SECRET_ACCESS_KEY",
      "service": "AFFiNE",
      "description": "Railway Bucket secret key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AFFINE_SERVER_EXTERNAL_URL",
      "service": "AFFiNE",
      "description": "Public base URL used in links and emails. Change for a custom domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "AFFINE_INDEXER_SEARCH_ENDPOINT",
      "service": "AFFiNE",
      "description": "Manticore HTTP endpoint (private network).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "AFFiNE",
      "description": "Time for open sync connections to close on redeploy.",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Private network hostname of the Redis service, only resolvable from services in the same environment",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Port that Redis listens on",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Username for authenticating with Redis",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Connection string for connecting to Redis using the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Alias of REDIS_PASSWORD for clients that expect the unseparated name",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Randomly generated password for authenticating with Redis",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created when image is started.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "URL to connect to Postgres (private network).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "User to connect to Postgres DB",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Allow Postgres to cleanly shut down",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "Indexer",
      "description": "Manticore HTTP port (healthcheck and AFFiNE).",
      "secret": false,
      "strategy": "default",
      "default": "9308"
    },
    {
      "key": "searchd_threads",
      "service": "Indexer",
      "description": "Search worker threads (default would follow the host's CPU count).",
      "secret": false,
      "strategy": "default",
      "default": "4"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "affine-027-docs-and-whiteboards"
      }
    },
    "cli": "railway deploy --template affine-027-docs-and-whiteboards",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "393079f2-b6c1-4457-9736-3fbde3b93271",
            "serializedConfig": {
              "buckets": {
                "db16cec2-32f5-5248-b814-5d8ab7cf89ce": {
                  "name": "Bucket"
                }
              },
              "services": {
                "37880b75-15ea-5d41-9c8b-7f6405989360": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/affine.svg",
                  "name": "AFFiNE",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/info",
                    "preDeployCommand": [
                      "/app/railway/predeploy.sh"
                    ],
                    "restartPolicyType": "ALWAYS",
                    "healthcheckTimeout": 300,
                    "preDeployTimeoutSeconds": 900
                  },
                  "source": {
                    "repo": "baranberkay96/affine-railway",
                    "branch": "main",
                    "rootDirectory": "/services/affine"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Port the AFFiNE server listens on (domain and healthcheck).",
                      "defaultValue": "3010"
                    },
                    "BUCKET_NAME": {
                      "isOptional": false,
                      "description": "Railway Bucket name.",
                      "defaultValue": "${{Bucket.BUCKET}}"
                    },
                    "LISTEN_ADDR": {
                      "isOptional": true,
                      "description": "Listen on IPv4 and IPv6.",
                      "defaultValue": "::"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres with pgvector (private network).",
                      "defaultValue": "postgresql://${{Postgres.PGUSER}}:${{Postgres.PGPASSWORD}}@${{Postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/${{Postgres.PGDATABASE}}"
                    },
                    "BUCKET_REGION": {
                      "isOptional": false,
                      "description": "Railway Bucket region.",
                      "defaultValue": "${{Bucket.REGION}}"
                    },
                    "AFFINE_STORAGE": {
                      "isOptional": true,
                      "description": "'bucket' = workspace files in the Railway Bucket, 'fs' = everything on the service volume.",
                      "defaultValue": "bucket"
                    },
                    "BUCKET_ENDPOINT": {
                      "isOptional": false,
                      "description": "Railway Bucket S3 endpoint.",
                      "defaultValue": "${{Bucket.ENDPOINT}}"
                    },
                    "REDIS_SERVER_HOST": {
                      "isOptional": false,
                      "description": "Redis host (cache, job queues, sync).",
                      "defaultValue": "${{Redis.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDIS_SERVER_PORT": {
                      "isOptional": true,
                      "description": "Redis port.",
                      "defaultValue": "6379"
                    },
                    "AFFINE_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Email of the first administrator, created automatically on first start. Used to sign in.",
                      "defaultValue": "{{AFFINE_ADMIN_EMAIL}}"
                    },
                    "AFFINE_SERVER_HOST": {
                      "isOptional": false,
                      "description": "Public host name. Change for a custom domain.",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "AFFINE_SERVER_NAME": {
                      "isOptional": true,
                      "description": "Server name shown when connecting from the desktop and mobile apps.",
                      "defaultValue": "AFFiNE"
                    },
                    "AFFINE_SERVER_PORT": {
                      "isOptional": true,
                      "description": "Same port, AFFiNE's own setting.",
                      "defaultValue": "3010"
                    },
                    "AFFINE_ALLOW_SIGNUP": {
                      "isOptional": true,
                      "description": "Default for open registration. Admins can change it later in Admin > Settings.",
                      "defaultValue": "false"
                    },
                    "AFFINE_SERVER_HTTPS": {
                      "isOptional": true,
                      "description": "Railway serves the domain over HTTPS.",
                      "defaultValue": "true"
                    },
                    "BUCKET_CORS_ENABLED": {
                      "isOptional": true,
                      "description": "Set the Bucket CORS rule in the pre-deploy step (browsers fetch files from presigned Bucket URLs).",
                      "defaultValue": "true"
                    },
                    "BUCKET_CORS_ORIGINS": {
                      "isOptional": true,
                      "description": "Allowed origins for GET/HEAD on presigned URLs (space-separated). '*' covers web, desktop and mobile apps.",
                      "defaultValue": "*"
                    },
                    "BUCKET_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Railway Bucket access key.",
                      "defaultValue": "${{Bucket.ACCESS_KEY_ID}}"
                    },
                    "AFFINE_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Password of the first administrator (generated). Change it after the first login.",
                      "defaultValue": "{{AFFINE_ADMIN_PASSWORD}}"
                    },
                    "REDIS_SERVER_PASSWORD": {
                      "isOptional": false,
                      "description": "Redis password.",
                      "defaultValue": "${{Redis.REDIS_PASSWORD}}"
                    },
                    "AFFINE_COPILOT_ENABLED": {
                      "isOptional": true,
                      "description": "Enable AFFiNE AI; workspace owners add their own provider keys (BYOK).",
                      "defaultValue": "true"
                    },
                    "AFFINE_INDEXER_ENABLED": {
                      "isOptional": true,
                      "description": "Server-side full-text search through the Indexer service (Manticore).",
                      "defaultValue": "true"
                    },
                    "AFFINE_PRIVATE_KEY_SEED": {
                      "isOptional": false,
                      "description": "Seed for the server's signing/encryption key (derived on every start). Never change it.",
                      "defaultValue": "{{AFFINE_PRIVATE_KEY_SEED}}"
                    },
                    "BUCKET_FORCE_PATH_STYLE": {
                      "isOptional": true,
                      "description": "Railway Buckets use virtual-hosted URLs; true only if the Bucket's Credentials tab says path-style.",
                      "defaultValue": "false"
                    },
                    "BUCKET_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Railway Bucket secret key.",
                      "defaultValue": "${{Bucket.SECRET_ACCESS_KEY}}"
                    },
                    "AFFINE_SERVER_EXTERNAL_URL": {
                      "isOptional": false,
                      "description": "Public base URL used in links and emails. Change for a custom domain.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "AFFINE_INDEXER_SEARCH_ENDPOINT": {
                      "isOptional": true,
                      "description": "Manticore HTTP endpoint (private network).",
                      "defaultValue": "http://${{Indexer.RAILWAY_PRIVATE_DOMAIN}}:9308"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Time for open sync connections to close on redeploy.",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:3010": {
                        "port": 3010
                      }
                    }
                  },
                  "volumeMounts": {
                    "eb2faa7f-5bfd-5ed1-a30b-7198ab2e725e": {
                      "mountPath": "/root/.affine/storage"
                    }
                  }
                },
                "4003e857-a6ea-5845-bebf-a7cf67ab997e": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.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\"",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Private network hostname of the Redis service, only resolvable from services in the same environment",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Port that Redis listens on",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Username for authenticating with Redis",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Connection string for connecting to Redis using the private network",
                      "defaultValue": "redis://${{ REDISUSER }}:${{ REDIS_PASSWORD }}@${{ REDISHOST }}:${{ REDISPORT }}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Alias of REDIS_PASSWORD for clients that expect the unseparated name",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Randomly generated password for authenticating with Redis",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "96eea087-569c-56ce-a5f8-f4d4d56e8ea9": {
                      "mountPath": "/data"
                    }
                  }
                },
                "8685101b-1967-5803-b489-60bd8b32c203": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "pgvector/pgvector:0.8.7-pg16"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Port to connect to Postgres.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Required variable for the data panel.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database created when image is started.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "URL to connect to Postgres (private network).",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "User to connect to Postgres DB",
                      "defaultValue": "postgres"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to DB",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Allow Postgres to cleanly shut down",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "de0ed7c1-6ace-51dd-82ac-475e987d5cea": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "8d890519-232f-5a71-9e0b-c36eb1f8573a": {
                  "icon": "https://manticoresearch.com/logo.png",
                  "name": "Indexer",
                  "deploy": {
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "manticoresearch/manticore:10.1.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Manticore HTTP port (healthcheck and AFFiNE).",
                      "defaultValue": "9308"
                    },
                    "searchd_threads": {
                      "isOptional": true,
                      "description": "Search worker threads (default would follow the host's CPU count).",
                      "defaultValue": "4"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "8037f6e8-9785-56c7-a197-232bc5bdfaad": {
                      "mountPath": "/var/lib/manticore"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "AFFiNE",
      "method": "GET",
      "path": "/info",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-10-11T22:14:38.939Z",
  "generator_version": "0.1.0"
}
