{
  "manifest_version": "1.0.0",
  "template": {
    "id": "4de6c39a-ba44-4de7-b633-d0e6eeda925e",
    "slug": "bebuoc-n8n-unlock-full",
    "name": "bebuoc-n8n-unlock-full",
    "description": "N8N unlock full features by Bé Bước",
    "url": "https://railway.com/deploy/bebuoc-n8n-unlock-full"
  },
  "services": [
    {
      "name": "bebuoc-n8n",
      "source": {
        "repo": "https://github.com/minhkog/bebuoc-n8n"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "tcp_ports": [
        5432
      ],
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2.1"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "tcp_ports": [
        6379
      ],
      "http": false
    },
    {
      "name": "bebuoc-n8n-runner",
      "source": {
        "repo": "https://github.com/minhkog/bebuoc-n8n-runner"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "DB_TYPE",
      "service": "bebuoc-n8n",
      "description": "Provide a value for DB_TYPE.",
      "secret": false,
      "strategy": "default",
      "default": "postgresdb"
    },
    {
      "key": "N8N_HOST",
      "service": "bebuoc-n8n",
      "description": "Provide a value for N8N_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "N8N_PORT",
      "service": "bebuoc-n8n",
      "description": "Provide a value for N8N_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "5678"
    },
    {
      "key": "WEBHOOK_URL",
      "service": "bebuoc-n8n",
      "description": "Provide a value for WEBHOOK_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "N8N_PROTOCOL",
      "service": "bebuoc-n8n",
      "description": "Provide a value for N8N_PROTOCOL.",
      "secret": false,
      "strategy": "default",
      "default": "https"
    },
    {
      "key": "N8N_LOG_LEVEL",
      "service": "bebuoc-n8n",
      "description": "Provide a value for N8N_LOG_LEVEL.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "NODES_EXCLUDE",
      "service": "bebuoc-n8n",
      "description": "Provide a value for NODES_EXCLUDE.",
      "secret": false,
      "strategy": "default",
      "default": "[]"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "bebuoc-n8n",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "N8N_RUNNERS_MODE",
      "service": "bebuoc-n8n",
      "description": "Provide a value for N8N_RUNNERS_MODE.",
      "secret": false,
      "strategy": "default",
      "default": "external"
    },
    {
      "key": "DB_POSTGRESDB_HOST",
      "service": "bebuoc-n8n",
      "description": "Provide a value for DB_POSTGRESDB_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PORT",
      "service": "bebuoc-n8n",
      "description": "Provide a value for DB_POSTGRESDB_PORT.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_USER",
      "service": "bebuoc-n8n",
      "description": "Provide a value for DB_POSTGRESDB_USER.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_ENCRYPTION_KEY",
      "service": "bebuoc-n8n",
      "description": "Provide a value for N8N_ENCRYPTION_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "N8N_RUNNERS_ENABLED",
      "service": "bebuoc-n8n",
      "description": "Provide a value for N8N_RUNNERS_ENABLED.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "EXECUTE_FILE_PACKAGES",
      "service": "bebuoc-n8n",
      "description": "Provide a value for EXECUTE_FILE_PACKAGES.",
      "secret": false,
      "strategy": "default",
      "default": "ffmpeg,curl"
    },
    {
      "key": "QUEUE_BULL_REDIS_HOST",
      "service": "bebuoc-n8n",
      "description": "Provide a value for QUEUE_BULL_REDIS_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_PORT",
      "service": "bebuoc-n8n",
      "description": "Provide a value for QUEUE_BULL_REDIS_PORT.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_DATABASE",
      "service": "bebuoc-n8n",
      "description": "Provide a value for DB_POSTGRESDB_DATABASE.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PASSWORD",
      "service": "bebuoc-n8n",
      "description": "Provide a value for DB_POSTGRESDB_PASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_RUNNERS_AUTH_TOKEN",
      "service": "bebuoc-n8n",
      "description": "Provide a value for N8N_RUNNERS_AUTH_TOKEN.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "N8N_RUNNERS_BROKER_PORT",
      "service": "bebuoc-n8n",
      "description": "Provide a value for N8N_RUNNERS_BROKER_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "5679"
    },
    {
      "key": "N8N_NATIVE_PYTHON_RUNNER",
      "service": "bebuoc-n8n",
      "description": "Provide a value for N8N_NATIVE_PYTHON_RUNNER.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "QUEUE_BULL_REDIS_PASSWORD",
      "service": "bebuoc-n8n",
      "description": "Provide a value for QUEUE_BULL_REDIS_PASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_USERNAME",
      "service": "bebuoc-n8n",
      "description": "Provide a value for QUEUE_BULL_REDIS_USERNAME.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_DUALSTACK",
      "service": "bebuoc-n8n",
      "description": "Provide a value for QUEUE_BULL_REDIS_DUALSTACK.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "N8N_RESTRICT_FILE_ACCESS_TO",
      "service": "bebuoc-n8n",
      "description": "Provide a value for N8N_RESTRICT_FILE_ACCESS_TO.",
      "secret": false,
      "strategy": "default",
      "default": "\"\""
    },
    {
      "key": "N8N_RUNNERS_BROKER_LISTEN_ADDRESS",
      "service": "bebuoc-n8n",
      "description": "Provide a value for N8N_RUNNERS_BROKER_LISTEN_ADDRESS.",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "N8N_BLOCK_FILE_ACCESS_TO_N8N_FILES",
      "service": "bebuoc-n8n",
      "description": "Provide a value for N8N_BLOCK_FILE_ACCESS_TO_N8N_FILES.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "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 database.",
      "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": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate expiry in days.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "Public URL to connect to Postgres database, used by the Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Allow Postgres to cleanly shut down",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Provide a value for REDISHOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Provide a value for REDISPORT.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Provide a value for REDISUSER.",
      "secret": false,
      "strategy": "default",
      "default": "bebuoc"
    },
    {
      "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": "Provide a value for REDISPASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Provide a value for REDIS_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDIS_PUBLIC_URL",
      "service": "Redis",
      "description": "Connection string for connecting to redis externally",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "JS_PACKAGES",
      "service": "bebuoc-n8n-runner",
      "description": "Provide a value for JS_PACKAGES.",
      "secret": false,
      "strategy": "default",
      "default": "moment@2.30.1,axios@^1.7.0,lodash@^4.17.21"
    },
    {
      "key": "N8N_VERSION",
      "service": "bebuoc-n8n-runner",
      "description": "Provide a value for N8N_VERSION.",
      "secret": false,
      "strategy": "default",
      "default": "latest"
    },
    {
      "key": "PY_PACKAGES",
      "service": "bebuoc-n8n-runner",
      "description": "Provide a value for PY_PACKAGES.",
      "secret": false,
      "strategy": "default",
      "default": "requests==2.31.0,numpy,pillow,ffmpeg-python"
    },
    {
      "key": "JS_ALLOW_LIST",
      "service": "bebuoc-n8n-runner",
      "description": "Provide a value for JS_ALLOW_LIST.",
      "secret": false,
      "strategy": "default",
      "default": "moment,axios,lodash"
    },
    {
      "key": "PY_ALLOW_LIST",
      "service": "bebuoc-n8n-runner",
      "description": "Provide a value for PY_ALLOW_LIST.",
      "secret": false,
      "strategy": "default",
      "default": "*"
    },
    {
      "key": "PY_STDLIB_ALLOW",
      "service": "bebuoc-n8n-runner",
      "description": "Provide a value for PY_STDLIB_ALLOW.",
      "secret": false,
      "strategy": "default",
      "default": "*"
    },
    {
      "key": "GENERIC_TIMEZONE",
      "service": "bebuoc-n8n-runner",
      "description": "Provide a value for GENERIC_TIMEZONE.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_RUNNERS_AUTH_TOKEN",
      "service": "bebuoc-n8n-runner",
      "description": "Provide a value for N8N_RUNNERS_AUTH_TOKEN.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_RUNNERS_STDLIB_ALLOW",
      "service": "bebuoc-n8n-runner",
      "description": "Provide a value for N8N_RUNNERS_STDLIB_ALLOW.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_RUNNERS_TASK_TIMEOUT",
      "service": "bebuoc-n8n-runner",
      "description": "Provide a value for N8N_RUNNERS_TASK_TIMEOUT.",
      "secret": false,
      "strategy": "default",
      "default": "300"
    },
    {
      "key": "N8N_RUNNERS_EXTERNAL_ALLOW",
      "service": "bebuoc-n8n-runner",
      "description": "Provide a value for N8N_RUNNERS_EXTERNAL_ALLOW.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_RESTRICT_FILE_ACCESS_TO",
      "service": "bebuoc-n8n-runner",
      "description": "Provide a value for N8N_RESTRICT_FILE_ACCESS_TO.",
      "secret": false,
      "strategy": "default",
      "default": "\"\""
    },
    {
      "key": "N8N_RUNNERS_MAX_CONCURRENCY",
      "service": "bebuoc-n8n-runner",
      "description": "Provide a value for N8N_RUNNERS_MAX_CONCURRENCY.",
      "secret": false,
      "strategy": "default",
      "default": "5"
    },
    {
      "key": "N8N_RUNNERS_TASK_BROKER_URI",
      "service": "bebuoc-n8n-runner",
      "description": "Provide a value for N8N_RUNNERS_TASK_BROKER_URI.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "NODE_FUNCTION_ALLOW_BUILTIN",
      "service": "bebuoc-n8n-runner",
      "description": "Provide a value for NODE_FUNCTION_ALLOW_BUILTIN.",
      "secret": false,
      "strategy": "default",
      "default": "*"
    },
    {
      "key": "NODE_FUNCTION_ALLOW_EXTERNAL",
      "service": "bebuoc-n8n-runner",
      "description": "Provide a value for NODE_FUNCTION_ALLOW_EXTERNAL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_RUNNERS_LAUNCHER_LOG_LEVEL",
      "service": "bebuoc-n8n-runner",
      "description": "Provide a value for N8N_RUNNERS_LAUNCHER_LOG_LEVEL.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "N8N_BLOCK_FILE_ACCESS_TO_N8N_FILES",
      "service": "bebuoc-n8n-runner",
      "description": "Provide a value for N8N_BLOCK_FILE_ACCESS_TO_N8N_FILES.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "bebuoc-n8n-unlock-full"
      }
    },
    "cli": "railway deploy --template bebuoc-n8n-unlock-full",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "4de6c39a-ba44-4de7-b633-d0e6eeda925e",
            "serializedConfig": {
              "services": {
                "05748640-bea3-4b62-a667-918708b540cd": {
                  "name": "bebuoc-n8n",
                  "source": {
                    "repo": "minhkog/bebuoc-n8n",
                    "branch": "main",
                    "rootDirectory": "/"
                  },
                  "variables": {
                    "DB_TYPE": {
                      "defaultValue": "postgresdb"
                    },
                    "N8N_HOST": {
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "N8N_PORT": {
                      "defaultValue": "5678"
                    },
                    "WEBHOOK_URL": {
                      "defaultValue": "https://${{RAILWAY_PRIVATE_DOMAIN}}/"
                    },
                    "N8N_PROTOCOL": {
                      "defaultValue": "https"
                    },
                    "N8N_LOG_LEVEL": {
                      "defaultValue": "info"
                    },
                    "NODES_EXCLUDE": {
                      "defaultValue": "[]"
                    },
                    "RAILWAY_RUN_UID": {
                      "defaultValue": "0"
                    },
                    "N8N_RUNNERS_MODE": {
                      "defaultValue": "external"
                    },
                    "DB_POSTGRESDB_HOST": {
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "DB_POSTGRESDB_PORT": {
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "DB_POSTGRESDB_USER": {
                      "defaultValue": "${{Postgres.POSTGRES_USER}}"
                    },
                    "N8N_ENCRYPTION_KEY": {
                      "defaultValue": "{{N8N_ENCRYPTION_KEY}}"
                    },
                    "N8N_RUNNERS_ENABLED": {
                      "defaultValue": "true"
                    },
                    "EXECUTE_FILE_PACKAGES": {
                      "defaultValue": "ffmpeg,curl"
                    },
                    "QUEUE_BULL_REDIS_HOST": {
                      "defaultValue": "${{Redis.REDISHOST}}"
                    },
                    "QUEUE_BULL_REDIS_PORT": {
                      "defaultValue": "${{Redis.REDISPORT}}"
                    },
                    "DB_POSTGRESDB_DATABASE": {
                      "defaultValue": "${{Postgres.POSTGRES_DB}}"
                    },
                    "DB_POSTGRESDB_PASSWORD": {
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "N8N_RUNNERS_AUTH_TOKEN": {
                      "defaultValue": "{{N8N_RUNNERS_AUTH_TOKEN}}"
                    },
                    "N8N_RUNNERS_BROKER_PORT": {
                      "defaultValue": "5679"
                    },
                    "N8N_NATIVE_PYTHON_RUNNER": {
                      "defaultValue": "true"
                    },
                    "QUEUE_BULL_REDIS_PASSWORD": {
                      "defaultValue": "${{Redis.REDISPASSWORD}}"
                    },
                    "QUEUE_BULL_REDIS_USERNAME": {
                      "defaultValue": "${{Redis.REDISUSER}}"
                    },
                    "QUEUE_BULL_REDIS_DUALSTACK": {
                      "defaultValue": "true"
                    },
                    "N8N_RESTRICT_FILE_ACCESS_TO": {
                      "description": "",
                      "defaultValue": "\"\""
                    },
                    "N8N_RUNNERS_BROKER_LISTEN_ADDRESS": {
                      "defaultValue": "::"
                    },
                    "N8N_BLOCK_FILE_ACCESS_TO_N8N_FILES": {
                      "defaultValue": "false"
                    }
                  }
                },
                "ca207fef-9ffc-47c8-a9da-59ac7156c329": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "build": {},
                  "deploy": {
                    "requiredMountPath": "/var/lib/postgresql/data"
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
                  },
                  "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 database.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "User to connect to Postgres DB",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate expiry in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to DB",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "description": "Public URL to connect to Postgres database, used by the Data panel.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Allow Postgres to cleanly shut down",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5432": {}
                    },
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "ca207fef-9ffc-47c8-a9da-59ac7156c329": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  },
                  "haTemplateCode": "postgres-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxy",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "Routes traffic to the primary",
                      "defaultValue": 3
                    },
                    "replica": {
                      "label": "Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5,
                        6,
                        7
                      ],
                      "nodeLabel": "Postgres",
                      "description": "Streaming replicas for automatic failover",
                      "defaultValue": 2
                    },
                    "internal": {
                      "label": "Coordinator Nodes",
                      "options": [
                        3,
                        5,
                        7,
                        9
                      ],
                      "nodeLabel": "etcd",
                      "defaultValue": 3
                    },
                    "description": "This will convert your Postgres database to an HA cluster with Patroni failover and etcd consensus."
                  }
                },
                "df197225-d9db-44b2-8893-bbce74d14526": {
                  "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\""
                  },
                  "source": {
                    "image": "redis:8.2.1"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "bebuoc"
                    },
                    "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,
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    },
                    "REDIS_PUBLIC_URL": {
                      "description": "Connection string for connecting to redis externally",
                      "defaultValue": "redis://default:${{ REDIS_PASSWORD }}@${{ RAILWAY_TCP_PROXY_DOMAIN }}:${{ RAILWAY_TCP_PROXY_PORT }}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "6379": {}
                    }
                  },
                  "volumeMounts": {
                    "df197225-d9db-44b2-8893-bbce74d14526": {
                      "mountPath": "/data"
                    }
                  },
                  "haTemplateCode": "redis-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxies",
                      "options": [
                        1,
                        2
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "HAProxy instances routing writes to the primary",
                      "defaultValue": 2
                    },
                    "replica": {
                      "label": "Redis Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "Redis",
                      "description": "Nodes running Redis + colocated Sentinel",
                      "defaultValue": 2
                    },
                    "internal": null,
                    "description": "This will convert your Redis instance to an HA cluster with Sentinel failover and HAProxy routing to the primary."
                  }
                },
                "e79937c2-c5b3-48e6-ba2d-ba7e3da01cf9": {
                  "name": "bebuoc-n8n-runner",
                  "source": {
                    "repo": "minhkog/bebuoc-n8n-runner",
                    "branch": "main",
                    "rootDirectory": "/railway-deployment/runner"
                  },
                  "variables": {
                    "JS_PACKAGES": {
                      "defaultValue": "moment@2.30.1,axios@^1.7.0,lodash@^4.17.21"
                    },
                    "N8N_VERSION": {
                      "defaultValue": "latest"
                    },
                    "PY_PACKAGES": {
                      "defaultValue": "requests==2.31.0,numpy,pillow,ffmpeg-python"
                    },
                    "JS_ALLOW_LIST": {
                      "defaultValue": "moment,axios,lodash"
                    },
                    "PY_ALLOW_LIST": {
                      "defaultValue": "*"
                    },
                    "PY_STDLIB_ALLOW": {
                      "defaultValue": "*"
                    },
                    "GENERIC_TIMEZONE": {
                      "defaultValue": "${{bebuoc-n8n.GENERIC_TIMEZONE}}"
                    },
                    "N8N_RUNNERS_AUTH_TOKEN": {
                      "defaultValue": "${{bebuoc-n8n.N8N_RUNNERS_AUTH_TOKEN}}"
                    },
                    "N8N_RUNNERS_STDLIB_ALLOW": {
                      "defaultValue": "${{PY_STDLIB_ALLOW}}"
                    },
                    "N8N_RUNNERS_TASK_TIMEOUT": {
                      "defaultValue": "300"
                    },
                    "N8N_RUNNERS_EXTERNAL_ALLOW": {
                      "defaultValue": "${{PY_ALLOW_LIST}}"
                    },
                    "N8N_RESTRICT_FILE_ACCESS_TO": {
                      "description": "",
                      "defaultValue": "\"\""
                    },
                    "N8N_RUNNERS_MAX_CONCURRENCY": {
                      "defaultValue": "5"
                    },
                    "N8N_RUNNERS_TASK_BROKER_URI": {
                      "defaultValue": "http://${{bebuoc-n8n.RAILWAY_PRIVATE_DOMAIN}}:${{bebuoc-n8n.N8N_RUNNERS_BROKER_PORT}}"
                    },
                    "NODE_FUNCTION_ALLOW_BUILTIN": {
                      "defaultValue": "*"
                    },
                    "NODE_FUNCTION_ALLOW_EXTERNAL": {
                      "defaultValue": "${{JS_ALLOW_LIST}}"
                    },
                    "N8N_RUNNERS_LAUNCHER_LOG_LEVEL": {
                      "defaultValue": "info"
                    },
                    "N8N_BLOCK_FILE_ACCESS_TO_N8N_FILES": {
                      "defaultValue": "false"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-18T14:24:29.064Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_cb0d1e6e088543e799cf",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED,BUILDING,SUCCESS,SUCCESS"
      }
    ]
  }
}
