{
  "manifest_version": "1.0.0",
  "template": {
    "id": "eedeedb8-cc79-4b7a-9cab-19adf83ab1b9",
    "slug": "appwrite-2-core",
    "name": "Appwrite 2 Core",
    "description": "Appwrite 2 core backend with private databases and persistent storage.",
    "url": "https://railway.com/deploy/appwrite-2-core",
    "upstream": {
      "repo_url": "https://github.com/orenaksakal/railway-templates"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "console",
      "source": {
        "image": "appwrite/new:1.1.16@sha256:28d528e6f02c00d369baf44ee56dea153bd7cc6bf7bcb33961349eb7ad7a44d8"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "appwrite",
      "source": {
        "repo": "https://github.com/orenaksakal/railway-templates"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "realtime",
      "source": {
        "repo": "https://github.com/orenaksakal/railway-templates"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "postgres",
      "source": {
        "image": "appwrite/postgres:0.1.0@sha256:77156232a16d80f5830d914edb44f52a0853058939f2365cc3301d08db9d05e9"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "http": false
    },
    {
      "name": "geo",
      "source": {
        "image": "appwrite/geo:0.3.1@sha256:df3751399945ec22661f23d745d66ed3b06a61f70ac4d77a1e9011ea17797653"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "redis",
      "source": {
        "image": "redis:7.4@sha256:71da9275c5f3fcb97d0fa0c8c5b36cc995327265420f17a04bfd544f458059f7"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "mongodb",
      "source": {
        "repo": "https://github.com/orenaksakal/railway-templates"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "core",
      "source": {
        "repo": "https://github.com/orenaksakal/railway-templates"
      },
      "needs_volume": true,
      "volume_mount_path": "/storage",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "VITE_CONSOLE_PROFILE",
      "service": "console",
      "description": "Vite console profile for console. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "self-hosted"
    },
    {
      "key": "APPWRITE_ENDPOINT_SAME_ORIGIN",
      "service": "console",
      "description": "Appwrite endpoint same origin for console. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "PORT",
      "service": "appwrite",
      "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": "API_HOST",
      "service": "appwrite",
      "description": "Api 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": "CONSOLE_HOST",
      "service": "appwrite",
      "description": "Console 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": "REALTIME_HOST",
      "service": "appwrite",
      "description": "Realtime 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": "RAILWAY_DOCKERFILE_PATH",
      "service": "appwrite",
      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
      "secret": false,
      "strategy": "default",
      "default": "templates/appwrite/Gateway.Dockerfile"
    },
    {
      "key": "PORT",
      "service": "realtime",
      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "_APP_ENV",
      "service": "realtime",
      "description": " app env resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "_APP_DOMAIN",
      "service": "realtime",
      "description": " app domain resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "_APP_CPU_NUM",
      "service": "realtime",
      "description": " app cpu num resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "_APP_DB_HOST",
      "service": "realtime",
      "description": " app db host resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "_APP_DB_PASS",
      "service": "realtime",
      "description": " app db 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": "_APP_DB_PORT",
      "service": "realtime",
      "description": " app db port resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "_APP_DB_USER",
      "service": "realtime",
      "description": " app db user resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "_APP_EDITION",
      "service": "realtime",
      "description": " app edition resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "_APP_DB_SCHEMA",
      "service": "realtime",
      "description": " app db schema resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ALLOW_MIGRATION",
      "service": "realtime",
      "description": "Allow migration resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "_APP_DB_ADAPTER",
      "service": "realtime",
      "description": " app db adapter resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "_APP_GEO_SECRET",
      "service": "realtime",
      "description": " app geo secret resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "_APP_REDIS_HOST",
      "service": "realtime",
      "description": " app redis host resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "_APP_REDIS_PASS",
      "service": "realtime",
      "description": " app redis 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": "_APP_REDIS_PORT",
      "service": "realtime",
      "description": " app redis port resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "_APP_USAGE_STATS",
      "service": "realtime",
      "description": " app usage stats resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "_APP_WORKERS_NUM",
      "service": "realtime",
      "description": " app workers num resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "_APP_DB_ROOT_PASS",
      "service": "realtime",
      "description": " app db root 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": "_APP_GEO_ENDPOINT",
      "service": "realtime",
      "description": " app geo endpoint resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "_APP_POOL_ADAPTER",
      "service": "realtime",
      "description": " app pool adapter for realtime. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "swoole"
    },
    {
      "key": "_APP_OPTIONS_ABUSE",
      "service": "realtime",
      "description": " app options abuse resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "_APP_STORAGE_LIMIT",
      "service": "realtime",
      "description": " app storage limit resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "_APP_CONSOLE_DOMAIN",
      "service": "realtime",
      "description": " app console domain resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "_APP_OPENSSL_KEY_V1",
      "service": "realtime",
      "description": " app openssl key v1 resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "_APP_STORAGE_DEVICE",
      "service": "realtime",
      "description": " app storage device resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "_APP_EXECUTOR_SECRET",
      "service": "realtime",
      "description": " app executor secret resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "_APP_WORKER_PER_CORE",
      "service": "realtime",
      "description": " app worker per core resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "_APP_CONSOLE_HOSTNAMES",
      "service": "realtime",
      "description": " app console hostnames resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "_APP_DB_HOST_VECTORSDB",
      "service": "realtime",
      "description": " app db host vectorsdb resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "_APP_DB_PORT_VECTORSDB",
      "service": "realtime",
      "description": " app db port vectorsdb resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "_APP_STORAGE_ANTIVIRUS",
      "service": "realtime",
      "description": " app storage antivirus resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "realtime",
      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
      "secret": false,
      "strategy": "default",
      "default": "templates/appwrite/Realtime.Dockerfile"
    },
    {
      "key": "_APP_FUNCTIONS_RUNTIMES",
      "service": "realtime",
      "description": " app functions runtimes resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "_APP_DB_HOST_DOCUMENTSDB",
      "service": "realtime",
      "description": " app db host documentsdb resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "_APP_DB_PORT_DOCUMENTSDB",
      "service": "realtime",
      "description": " app db port documentsdb resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "_APP_OPTIONS_FORCE_HTTPS",
      "service": "realtime",
      "description": " app options force https resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "APPWRITE_WORKER_POOL_SIZE",
      "service": "realtime",
      "description": "Appwrite worker pool size resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "_APP_DB_ADAPTER_VECTORSDB",
      "service": "realtime",
      "description": " app db adapter vectorsdb resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "_APP_DB_ADAPTER_DOCUMENTSDB",
      "service": "realtime",
      "description": " app db adapter documentsdb resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "_APP_NOTIFICATIONS_TRACKING_SECRET",
      "service": "realtime",
      "description": " app notifications tracking secret resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATA",
      "service": "postgres",
      "description": "PostgreSQL data directory within the persistent volume. Do not change on an existing database.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/18/docker"
    },
    {
      "key": "POSTGRES_DB",
      "service": "postgres",
      "description": "Initial PostgreSQL database name, or the matching database selected by the application.",
      "secret": false,
      "strategy": "default",
      "default": "appwrite"
    },
    {
      "key": "DATABASE_URL",
      "service": "postgres",
      "description": "Private PostgreSQL connection URL assembled from generated credentials and service references. No manual value is needed.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgres",
      "description": "PostgreSQL initialization user, or the matching connection user for the private database.",
      "secret": false,
      "strategy": "default",
      "default": "appwrite"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "PostgreSQL password. Generated for the database and referenced by dependent services; keep private.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "GEO_SECRET",
      "service": "geo",
      "description": "Geo secret resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "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"
    },
    {
      "key": "MONGO_PRIVATE_HOST",
      "service": "mongodb",
      "description": "Mongo private 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": "RAILWAY_DOCKERFILE_PATH",
      "service": "mongodb",
      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
      "secret": false,
      "strategy": "default",
      "default": "templates/appwrite/Mongo.Dockerfile"
    },
    {
      "key": "MONGO_INITDB_ROOT_PASSWORD",
      "service": "mongodb",
      "description": "Mongo initdb root password resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGO_INITDB_ROOT_USERNAME",
      "service": "mongodb",
      "description": "Mongo initdb root username for mongodb. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "appwrite"
    },
    {
      "key": "PORT",
      "service": "core",
      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "_APP_ENV",
      "service": "core",
      "description": "Production self-host runtime mode.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "_APP_DOMAIN",
      "service": "core",
      "description": " app domain resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "_APP_CPU_NUM",
      "service": "core",
      "description": " app cpu num for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "_APP_DB_HOST",
      "service": "core",
      "description": " app db 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": "_APP_DB_PASS",
      "service": "core",
      "description": " app db 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": "_APP_DB_PORT",
      "service": "core",
      "description": " app db port for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "_APP_DB_USER",
      "service": "core",
      "description": " app db user for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "appwrite"
    },
    {
      "key": "_APP_EDITION",
      "service": "core",
      "description": " app edition for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "self-hosted"
    },
    {
      "key": "_APP_DB_SCHEMA",
      "service": "core",
      "description": " app db schema for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "appwrite"
    },
    {
      "key": "ALLOW_MIGRATION",
      "service": "core",
      "description": "Back up all data before allowing an upgrade migration on an existing volume.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "_APP_DB_ADAPTER",
      "service": "core",
      "description": " app db adapter for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "postgresql"
    },
    {
      "key": "_APP_GEO_SECRET",
      "service": "core",
      "description": "Generated  app geo secret. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "_APP_REDIS_HOST",
      "service": "core",
      "description": " app redis 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": "_APP_REDIS_PASS",
      "service": "core",
      "description": " app redis 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": "_APP_REDIS_PORT",
      "service": "core",
      "description": " app redis port for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "_APP_USAGE_STATS",
      "service": "core",
      "description": " app usage stats for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "disabled"
    },
    {
      "key": "_APP_WORKERS_NUM",
      "service": "core",
      "description": " app workers num for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "_APP_DB_ROOT_PASS",
      "service": "core",
      "description": " app db root 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": "_APP_GEO_ENDPOINT",
      "service": "core",
      "description": " app geo endpoint 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": "_APP_OPTIONS_ABUSE",
      "service": "core",
      "description": " app options abuse for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "enabled"
    },
    {
      "key": "_APP_STORAGE_LIMIT",
      "service": "core",
      "description": "Maximum upload size in bytes; individual bucket limits must fit within this ceiling.",
      "secret": false,
      "strategy": "default",
      "default": "30000000"
    },
    {
      "key": "_APP_CONSOLE_DOMAIN",
      "service": "core",
      "description": " app console domain resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "_APP_OPENSSL_KEY_V1",
      "service": "core",
      "description": "Generated  app openssl key v1. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "_APP_STORAGE_DEVICE",
      "service": "core",
      "description": " app storage device for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "Local"
    },
    {
      "key": "_APP_EXECUTOR_SECRET",
      "service": "core",
      "description": "Generated  app executor secret. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "_APP_WORKER_PER_CORE",
      "service": "core",
      "description": " app worker per core for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "_APP_CONSOLE_HOSTNAMES",
      "service": "core",
      "description": " app console hostnames resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "_APP_DB_HOST_VECTORSDB",
      "service": "core",
      "description": " app db host vectorsdb 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": "_APP_DB_PORT_VECTORSDB",
      "service": "core",
      "description": " app db port vectorsdb for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "_APP_STORAGE_ANTIVIRUS",
      "service": "core",
      "description": " app storage antivirus for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "disabled"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "core",
      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
      "secret": false,
      "strategy": "default",
      "default": "templates/appwrite/Dockerfile"
    },
    {
      "key": "_APP_FUNCTIONS_RUNTIMES",
      "service": "core",
      "description": "Functions and Sites execution are excluded: Railway does not supply the Docker socket required by the executor.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "_APP_DB_HOST_DOCUMENTSDB",
      "service": "core",
      "description": " app db host documentsdb 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": "_APP_DB_PORT_DOCUMENTSDB",
      "service": "core",
      "description": " app db port documentsdb for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "27017"
    },
    {
      "key": "_APP_OPTIONS_FORCE_HTTPS",
      "service": "core",
      "description": " app options force https for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "enabled"
    },
    {
      "key": "APPWRITE_WORKER_POOL_SIZE",
      "service": "core",
      "description": "Connection pool budget for the combined worker, matching the pinned upstream queue concurrency. Does not change HTTP pool size.",
      "secret": false,
      "strategy": "default",
      "default": "78"
    },
    {
      "key": "_APP_DB_ADAPTER_VECTORSDB",
      "service": "core",
      "description": " app db adapter vectorsdb for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "postgresql"
    },
    {
      "key": "_APP_DB_ADAPTER_DOCUMENTSDB",
      "service": "core",
      "description": " app db adapter documentsdb for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "mongodb"
    },
    {
      "key": "_APP_NOTIFICATIONS_TRACKING_SECRET",
      "service": "core",
      "description": "Generated  app notifications tracking secret. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "appwrite-2-core"
      }
    },
    "cli": "railway deploy --template appwrite-2-core",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "eedeedb8-cc79-4b7a-9cab-19adf83ab1b9",
            "serializedConfig": {
              "services": {
                "0abda70e-4618-5d7b-9f3d-10bd218ecb57": {
                  "name": "console",
                  "deploy": {
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "appwrite/new:1.1.16@sha256:28d528e6f02c00d369baf44ee56dea153bd7cc6bf7bcb33961349eb7ad7a44d8"
                  },
                  "variables": {
                    "VITE_CONSOLE_PROFILE": {
                      "isOptional": false,
                      "description": "Vite console profile for console. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "self-hosted"
                    },
                    "APPWRITE_ENDPOINT_SAME_ORIGIN": {
                      "isOptional": false,
                      "description": "Appwrite endpoint same origin for console. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  }
                },
                "0b3d2db8-a6fb-598b-bedf-1bfc78e85c81": {
                  "name": "appwrite",
                  "build": {
                    "builder": "RAILPACK",
                    "dockerfilePath": "templates/appwrite/Gateway.Dockerfile"
                  },
                  "deploy": {
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "orenaksakal/railway-templates",
                    "branch": "codex/remaining-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"
                    },
                    "API_HOST": {
                      "isOptional": false,
                      "description": "Api host resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "CONSOLE_HOST": {
                      "isOptional": false,
                      "description": "Console host resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{console.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REALTIME_HOST": {
                      "isOptional": false,
                      "description": "Realtime host resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{realtime.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
                      "defaultValue": "templates/appwrite/Gateway.Dockerfile"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "32b1b226-34bb-533f-b295-48da5855a6b8": {
                  "name": "realtime",
                  "build": {
                    "builder": "RAILPACK",
                    "dockerfilePath": "templates/appwrite/Realtime.Dockerfile"
                  },
                  "deploy": {
                    "startCommand": "realtime",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "orenaksakal/railway-templates",
                    "image": null,
                    "branch": "codex/remaining-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": "${{core.PORT}}"
                    },
                    "_APP_ENV": {
                      "isOptional": false,
                      "description": " app env resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_ENV}}"
                    },
                    "_APP_DOMAIN": {
                      "isOptional": false,
                      "description": " app domain resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_DOMAIN}}"
                    },
                    "_APP_CPU_NUM": {
                      "isOptional": false,
                      "description": " app cpu num resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_CPU_NUM}}"
                    },
                    "_APP_DB_HOST": {
                      "isOptional": false,
                      "description": " app db host resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_DB_HOST}}"
                    },
                    "_APP_DB_PASS": {
                      "isOptional": false,
                      "description": " app db pass resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_DB_PASS}}"
                    },
                    "_APP_DB_PORT": {
                      "isOptional": false,
                      "description": " app db port resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_DB_PORT}}"
                    },
                    "_APP_DB_USER": {
                      "isOptional": false,
                      "description": " app db user resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_DB_USER}}"
                    },
                    "_APP_EDITION": {
                      "isOptional": false,
                      "description": " app edition resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_EDITION}}"
                    },
                    "_APP_DB_SCHEMA": {
                      "isOptional": false,
                      "description": " app db schema resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_DB_SCHEMA}}"
                    },
                    "ALLOW_MIGRATION": {
                      "isOptional": false,
                      "description": "Allow migration resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core.ALLOW_MIGRATION}}"
                    },
                    "_APP_DB_ADAPTER": {
                      "isOptional": false,
                      "description": " app db adapter resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_DB_ADAPTER}}"
                    },
                    "_APP_GEO_SECRET": {
                      "isOptional": false,
                      "description": " app geo secret resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_GEO_SECRET}}"
                    },
                    "_APP_REDIS_HOST": {
                      "isOptional": false,
                      "description": " app redis host resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_REDIS_HOST}}"
                    },
                    "_APP_REDIS_PASS": {
                      "isOptional": false,
                      "description": " app redis pass resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_REDIS_PASS}}"
                    },
                    "_APP_REDIS_PORT": {
                      "isOptional": false,
                      "description": " app redis port resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_REDIS_PORT}}"
                    },
                    "_APP_USAGE_STATS": {
                      "isOptional": false,
                      "description": " app usage stats resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_USAGE_STATS}}"
                    },
                    "_APP_WORKERS_NUM": {
                      "isOptional": false,
                      "description": " app workers num resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_WORKERS_NUM}}"
                    },
                    "_APP_DB_ROOT_PASS": {
                      "isOptional": false,
                      "description": " app db root pass resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_DB_ROOT_PASS}}"
                    },
                    "_APP_GEO_ENDPOINT": {
                      "isOptional": false,
                      "description": " app geo endpoint resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_GEO_ENDPOINT}}"
                    },
                    "_APP_POOL_ADAPTER": {
                      "isOptional": false,
                      "description": " app pool adapter for realtime. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "swoole"
                    },
                    "_APP_OPTIONS_ABUSE": {
                      "isOptional": false,
                      "description": " app options abuse resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_OPTIONS_ABUSE}}"
                    },
                    "_APP_STORAGE_LIMIT": {
                      "isOptional": false,
                      "description": " app storage limit resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_STORAGE_LIMIT}}"
                    },
                    "_APP_CONSOLE_DOMAIN": {
                      "isOptional": false,
                      "description": " app console domain resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_CONSOLE_DOMAIN}}"
                    },
                    "_APP_OPENSSL_KEY_V1": {
                      "isOptional": false,
                      "description": " app openssl key v1 resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_OPENSSL_KEY_V1}}"
                    },
                    "_APP_STORAGE_DEVICE": {
                      "isOptional": false,
                      "description": " app storage device resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_STORAGE_DEVICE}}"
                    },
                    "_APP_EXECUTOR_SECRET": {
                      "isOptional": false,
                      "description": " app executor secret resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_EXECUTOR_SECRET}}"
                    },
                    "_APP_WORKER_PER_CORE": {
                      "isOptional": false,
                      "description": " app worker per core resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_WORKER_PER_CORE}}"
                    },
                    "_APP_CONSOLE_HOSTNAMES": {
                      "isOptional": false,
                      "description": " app console hostnames resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_CONSOLE_HOSTNAMES}}"
                    },
                    "_APP_DB_HOST_VECTORSDB": {
                      "isOptional": false,
                      "description": " app db host vectorsdb resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_DB_HOST_VECTORSDB}}"
                    },
                    "_APP_DB_PORT_VECTORSDB": {
                      "isOptional": false,
                      "description": " app db port vectorsdb resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_DB_PORT_VECTORSDB}}"
                    },
                    "_APP_STORAGE_ANTIVIRUS": {
                      "isOptional": false,
                      "description": " app storage antivirus resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_STORAGE_ANTIVIRUS}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
                      "defaultValue": "templates/appwrite/Realtime.Dockerfile"
                    },
                    "_APP_FUNCTIONS_RUNTIMES": {
                      "isOptional": false,
                      "description": " app functions runtimes resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_FUNCTIONS_RUNTIMES}}"
                    },
                    "_APP_DB_HOST_DOCUMENTSDB": {
                      "isOptional": false,
                      "description": " app db host documentsdb resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_DB_HOST_DOCUMENTSDB}}"
                    },
                    "_APP_DB_PORT_DOCUMENTSDB": {
                      "isOptional": false,
                      "description": " app db port documentsdb resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_DB_PORT_DOCUMENTSDB}}"
                    },
                    "_APP_OPTIONS_FORCE_HTTPS": {
                      "isOptional": false,
                      "description": " app options force https resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_OPTIONS_FORCE_HTTPS}}"
                    },
                    "APPWRITE_WORKER_POOL_SIZE": {
                      "isOptional": false,
                      "description": "Appwrite worker pool size resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core.APPWRITE_WORKER_POOL_SIZE}}"
                    },
                    "_APP_DB_ADAPTER_VECTORSDB": {
                      "isOptional": false,
                      "description": " app db adapter vectorsdb resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_DB_ADAPTER_VECTORSDB}}"
                    },
                    "_APP_DB_ADAPTER_DOCUMENTSDB": {
                      "isOptional": false,
                      "description": " app db adapter documentsdb resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_DB_ADAPTER_DOCUMENTSDB}}"
                    },
                    "_APP_NOTIFICATIONS_TRACKING_SECRET": {
                      "isOptional": false,
                      "description": " app notifications tracking secret resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_NOTIFICATIONS_TRACKING_SECRET}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  }
                },
                "8e79be45-5729-5565-bd96-f4e0664528df": {
                  "name": "postgres",
                  "deploy": {
                    "requiredMountPath": "/var/lib/postgresql",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "appwrite/postgres:0.1.0@sha256:77156232a16d80f5830d914edb44f52a0853058939f2365cc3301d08db9d05e9"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "PostgreSQL data directory within the persistent volume. Do not change on an existing database.",
                      "defaultValue": "/var/lib/postgresql/18/docker"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Initial PostgreSQL database name, or the matching database selected by the application.",
                      "defaultValue": "appwrite"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private PostgreSQL connection URL assembled from generated credentials and service references. No manual value is needed.",
                      "defaultValue": "postgresql://appwrite:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/appwrite"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "PostgreSQL initialization user, or the matching connection user for the private database.",
                      "defaultValue": "appwrite"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "PostgreSQL password. Generated for the database and referenced by dependent services; keep private.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "08249cdc-6e2f-5d72-a7df-3476a560d123": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                },
                "9dcb1d61-12b8-5b08-92f8-291ad171d06f": {
                  "name": "geo",
                  "deploy": {
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "appwrite/geo:0.3.1@sha256:df3751399945ec22661f23d745d66ed3b06a61f70ac4d77a1e9011ea17797653"
                  },
                  "variables": {
                    "GEO_SECRET": {
                      "isOptional": false,
                      "description": "Geo secret resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core._APP_GEO_SECRET}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  }
                },
                "a2531352-2a66-5c1d-a8ce-ecf5caf70fef": {
                  "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:71da9275c5f3fcb97d0fa0c8c5b36cc995327265420f17a04bfd544f458059f7"
                  },
                  "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"
                    }
                  }
                },
                "a9e66cc9-aea8-5b10-9b1c-c4c20fe12e03": {
                  "name": "mongodb",
                  "build": {
                    "builder": "RAILPACK",
                    "dockerfilePath": "templates/appwrite/Mongo.Dockerfile"
                  },
                  "deploy": {
                    "requiredMountPath": "/data",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "orenaksakal/railway-templates",
                    "branch": "codex/remaining-template-drafts"
                  },
                  "variables": {
                    "MONGO_PRIVATE_HOST": {
                      "isOptional": false,
                      "description": "Mongo private host resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{mongodb.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
                      "defaultValue": "templates/appwrite/Mongo.Dockerfile"
                    },
                    "MONGO_INITDB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Mongo initdb root password resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{postgres.POSTGRES_PASSWORD}}"
                    },
                    "MONGO_INITDB_ROOT_USERNAME": {
                      "isOptional": false,
                      "description": "Mongo initdb root username for mongodb. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "appwrite"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "98efc15d-3bec-5942-86f8-6505636cb93d": {
                      "mountPath": "/data"
                    }
                  }
                },
                "cfaaa2eb-1ae8-55b6-bea8-36b2688ee512": {
                  "name": "core",
                  "build": {
                    "builder": "RAILPACK",
                    "dockerfilePath": "templates/appwrite/Dockerfile"
                  },
                  "deploy": {
                    "requiredMountPath": "/storage",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "orenaksakal/railway-templates",
                    "branch": "codex/remaining-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": "80"
                    },
                    "_APP_ENV": {
                      "isOptional": false,
                      "description": "Production self-host runtime mode.",
                      "defaultValue": "production"
                    },
                    "_APP_DOMAIN": {
                      "isOptional": false,
                      "description": " app domain resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{appwrite.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "_APP_CPU_NUM": {
                      "isOptional": false,
                      "description": " app cpu num for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "1"
                    },
                    "_APP_DB_HOST": {
                      "isOptional": false,
                      "description": " app db host resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "_APP_DB_PASS": {
                      "isOptional": false,
                      "description": " app db pass resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{postgres.POSTGRES_PASSWORD}}"
                    },
                    "_APP_DB_PORT": {
                      "isOptional": false,
                      "description": " app db port for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "5432"
                    },
                    "_APP_DB_USER": {
                      "isOptional": false,
                      "description": " app db user for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "appwrite"
                    },
                    "_APP_EDITION": {
                      "isOptional": false,
                      "description": " app edition for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "self-hosted"
                    },
                    "_APP_DB_SCHEMA": {
                      "isOptional": false,
                      "description": " app db schema for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "appwrite"
                    },
                    "ALLOW_MIGRATION": {
                      "isOptional": false,
                      "description": "Back up all data before allowing an upgrade migration on an existing volume.",
                      "defaultValue": "false"
                    },
                    "_APP_DB_ADAPTER": {
                      "isOptional": false,
                      "description": " app db adapter for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "postgresql"
                    },
                    "_APP_GEO_SECRET": {
                      "isOptional": false,
                      "description": "Generated  app geo secret. Keep private and preserve with backups.",
                      "defaultValue": "{{_APP_GEO_SECRET}}"
                    },
                    "_APP_REDIS_HOST": {
                      "isOptional": false,
                      "description": " app redis host resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{redis.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "_APP_REDIS_PASS": {
                      "isOptional": false,
                      "description": " app redis pass resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{redis.REDIS_PASSWORD}}"
                    },
                    "_APP_REDIS_PORT": {
                      "isOptional": false,
                      "description": " app redis port for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "6379"
                    },
                    "_APP_USAGE_STATS": {
                      "isOptional": false,
                      "description": " app usage stats for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "disabled"
                    },
                    "_APP_WORKERS_NUM": {
                      "isOptional": false,
                      "description": " app workers num for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "1"
                    },
                    "_APP_DB_ROOT_PASS": {
                      "isOptional": false,
                      "description": " app db root pass resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{postgres.POSTGRES_PASSWORD}}"
                    },
                    "_APP_GEO_ENDPOINT": {
                      "isOptional": false,
                      "description": " app geo endpoint resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "http://${{geo.RAILWAY_PRIVATE_DOMAIN}}:80/v1"
                    },
                    "_APP_OPTIONS_ABUSE": {
                      "isOptional": false,
                      "description": " app options abuse for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "enabled"
                    },
                    "_APP_STORAGE_LIMIT": {
                      "isOptional": false,
                      "description": "Maximum upload size in bytes; individual bucket limits must fit within this ceiling.",
                      "defaultValue": "30000000"
                    },
                    "_APP_CONSOLE_DOMAIN": {
                      "isOptional": false,
                      "description": " app console domain resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{appwrite.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "_APP_OPENSSL_KEY_V1": {
                      "isOptional": false,
                      "description": "Generated  app openssl key v1. Keep private and preserve with backups.",
                      "defaultValue": "{{_APP_OPENSSL_KEY_V1}}"
                    },
                    "_APP_STORAGE_DEVICE": {
                      "isOptional": false,
                      "description": " app storage device for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "Local"
                    },
                    "_APP_EXECUTOR_SECRET": {
                      "isOptional": false,
                      "description": "Generated  app executor secret. Keep private and preserve with backups.",
                      "defaultValue": "{{_APP_EXECUTOR_SECRET}}"
                    },
                    "_APP_WORKER_PER_CORE": {
                      "isOptional": false,
                      "description": " app worker per core for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "1"
                    },
                    "_APP_CONSOLE_HOSTNAMES": {
                      "isOptional": false,
                      "description": " app console hostnames resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{appwrite.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "_APP_DB_HOST_VECTORSDB": {
                      "isOptional": false,
                      "description": " app db host vectorsdb resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "_APP_DB_PORT_VECTORSDB": {
                      "isOptional": false,
                      "description": " app db port vectorsdb for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "5432"
                    },
                    "_APP_STORAGE_ANTIVIRUS": {
                      "isOptional": false,
                      "description": " app storage antivirus for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "disabled"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
                      "defaultValue": "templates/appwrite/Dockerfile"
                    },
                    "_APP_FUNCTIONS_RUNTIMES": {
                      "isOptional": false,
                      "description": "Functions and Sites execution are excluded: Railway does not supply the Docker socket required by the executor.",
                      "defaultValue": "{{_APP_FUNCTIONS_RUNTIMES}}"
                    },
                    "_APP_DB_HOST_DOCUMENTSDB": {
                      "isOptional": false,
                      "description": " app db host documentsdb resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{mongodb.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "_APP_DB_PORT_DOCUMENTSDB": {
                      "isOptional": false,
                      "description": " app db port documentsdb for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "27017"
                    },
                    "_APP_OPTIONS_FORCE_HTTPS": {
                      "isOptional": false,
                      "description": " app options force https for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "enabled"
                    },
                    "APPWRITE_WORKER_POOL_SIZE": {
                      "isOptional": false,
                      "description": "Connection pool budget for the combined worker, matching the pinned upstream queue concurrency. Does not change HTTP pool size.",
                      "defaultValue": "78"
                    },
                    "_APP_DB_ADAPTER_VECTORSDB": {
                      "isOptional": false,
                      "description": " app db adapter vectorsdb for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "postgresql"
                    },
                    "_APP_DB_ADAPTER_DOCUMENTSDB": {
                      "isOptional": false,
                      "description": " app db adapter documentsdb for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "mongodb"
                    },
                    "_APP_NOTIFICATIONS_TRACKING_SECRET": {
                      "isOptional": false,
                      "description": "Generated  app notifications tracking secret. Keep private and preserve with backups.",
                      "defaultValue": "{{_APP_NOTIFICATIONS_TRACKING_SECRET}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "7b12406c-84e1-54fc-a78e-3593905949e3": {
                      "mountPath": "/storage"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "appwrite",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 8,
    "needs_volume": true
  },
  "generated_at": "2026-09-08T05:54:19.399Z",
  "generator_version": "0.1.0"
}
