{
  "manifest_version": "1.0.0",
  "template": {
    "id": "49a5c6e9-c26a-4584-b4c6-957c687c73e1",
    "slug": "activepieces-workflows",
    "name": "Activepieces | Open-Source Zapier & n8n Alternative with Workers",
    "description": "No-code automation with 600+ pieces, a separate worker and code sandbox",
    "url": "https://railway.com/deploy/activepieces-workflows",
    "upstream": {
      "image": "ghcr.io/activepieces/activepieces:0.92.2"
    }
  },
  "services": [
    {
      "name": "Worker",
      "source": {
        "image": "ghcr.io/activepieces/activepieces:0.92.2"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.10.2-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Activepieces",
      "source": {
        "image": "ghcr.io/activepieces/activepieces:0.92.2"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "pgvector/pgvector:0.8.7-pg17"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Worker",
      "description": "Port of the worker's health endpoint - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "AP_PORT",
      "service": "Worker",
      "description": "Must match PORT",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "AP_JWT_SECRET",
      "service": "Worker",
      "description": "Shared with the app; the worker signs its own token with it at boot",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AP_FRONTEND_URL",
      "service": "Worker",
      "description": "How the worker reaches the Activepieces API - private network, not the public URL (webhook URLs come from the app's own AP_FRONTEND_URL)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "AP_CONTAINER_TYPE",
      "service": "Worker",
      "description": "Executes flows, triggers and code steps. Add replicas to run more flows in parallel",
      "secret": false,
      "strategy": "default",
      "default": "WORKER"
    },
    {
      "key": "AP_WORKER_CONCURRENCY",
      "service": "Worker",
      "description": "Flows one worker runs at the same time. Each running flow needs RAM; raise it with the service's memory, or add replicas",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Auto-generated Redis password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "Activepieces",
      "description": "Port Railway routes to - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "AP_PORT",
      "service": "Activepieces",
      "description": "Port Activepieces listens on - must match PORT",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "AP_REDIS_URL",
      "service": "Activepieces",
      "description": "Redis job queue on the private network (family=0 lets ioredis connect over IPv6)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "AP_SMTP_PORT",
      "service": "Activepieces",
      "description": "SMTP port",
      "secret": false,
      "strategy": "default",
      "default": "587"
    },
    {
      "key": "NODE_OPTIONS",
      "service": "Activepieces",
      "description": "Caps the API's JavaScript heap. Without it Node sizes the heap from the container limit and holds ~1.4 GB after the first piece-catalog sync; with it the API peaks ~700 MB and idles ~380 MB. Raise it if logs show 'heap out of memory'",
      "secret": false,
      "strategy": "default",
      "default": "--max-old-space-size=512"
    },
    {
      "key": "AP_JWT_SECRET",
      "service": "Activepieces",
      "description": "Signs user sessions and the Worker's token - changing it logs everyone out",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "AP_FRONTEND_URL",
      "service": "Activepieces",
      "description": "Public URL of Activepieces (webhook URLs, OAuth redirects, email links) - set it to your custom domain after adding one",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "AP_POSTGRES_URL",
      "service": "Activepieces",
      "description": "Postgres on the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "AP_CONTAINER_TYPE",
      "service": "Activepieces",
      "description": "This service runs the API, web UI and webhooks; flows execute on the Worker service",
      "secret": false,
      "strategy": "default",
      "default": "APP"
    },
    {
      "key": "AP_ENCRYPTION_KEY",
      "service": "Activepieces",
      "description": "Encrypts stored app connections (32 hex chars). BACK IT UP - changing it makes every saved connection unreadable",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "AP_EXECUTION_MODE",
      "service": "Activepieces",
      "description": "Code steps run in an isolated V8 sandbox (no env, files or npm packages) - works without privileged containers. Use UNSANDBOXED if code steps need npm packages; SANDBOX_PROCESS modes need privileges Railway does not grant. The Worker follows this setting",
      "secret": false,
      "strategy": "default",
      "default": "SANDBOX_CODE_ONLY"
    },
    {
      "key": "AP_SMTP_SENDER_NAME",
      "service": "Activepieces",
      "description": "Sender name for Activepieces emails",
      "secret": false,
      "strategy": "default",
      "default": "Activepieces"
    },
    {
      "key": "AP_TELEMETRY_ENABLED",
      "service": "Activepieces",
      "description": "Anonymous usage telemetry to Activepieces",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "Activepieces",
      "description": "First boot runs the database migrations and syncs the piece catalog before the health check can pass",
      "secret": false,
      "strategy": "default",
      "default": "600"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Data subdirectory - keeps Postgres happy on Railway volumes",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database name",
      "secret": false,
      "strategy": "default",
      "default": "activepieces"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Database user",
      "secret": false,
      "strategy": "default",
      "default": "activepieces"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Auto-generated database password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Time for Postgres to shut down cleanly on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "activepieces-workflows"
      }
    },
    "cli": "railway deploy --template activepieces-workflows",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "49a5c6e9-c26a-4584-b4c6-957c687c73e1",
            "serializedConfig": {
              "services": {
                "3742b776-7776-42fb-b2c5-ce18b76021c2": {
                  "icon": "https://raw.githubusercontent.com/nomideusz/activepieces-railway/main/icon.svg",
                  "name": "Worker",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/worker/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/activepieces/activepieces:0.92.2"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port of the worker's health endpoint - leave as is",
                      "defaultValue": "3000"
                    },
                    "AP_PORT": {
                      "isOptional": false,
                      "description": "Must match PORT",
                      "defaultValue": "3000"
                    },
                    "AP_JWT_SECRET": {
                      "isOptional": false,
                      "description": "Shared with the app; the worker signs its own token with it at boot",
                      "defaultValue": "${{Activepieces.AP_JWT_SECRET}}"
                    },
                    "AP_FRONTEND_URL": {
                      "isOptional": false,
                      "description": "How the worker reaches the Activepieces API - private network, not the public URL (webhook URLs come from the app's own AP_FRONTEND_URL)",
                      "defaultValue": "http://${{Activepieces.RAILWAY_PRIVATE_DOMAIN}}:${{Activepieces.PORT}}"
                    },
                    "AP_CONTAINER_TYPE": {
                      "isOptional": false,
                      "description": "Executes flows, triggers and code steps. Add replicas to run more flows in parallel",
                      "defaultValue": "WORKER"
                    },
                    "AP_WORKER_CONCURRENCY": {
                      "isOptional": false,
                      "description": "Flows one worker runs at the same time. Each running flow needs RAM; raise it with the service's memory, or add replicas",
                      "defaultValue": "2"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {}
                },
                "42b8b085-acd7-4b07-b53a-a33b3377a613": {
                  "icon": "https://devicons.railway.app/i/redis.svg",
                  "name": "Redis",
                  "build": {},
                  "deploy": {
                    "startCommand": "/bin/sh -c \"chown -R redis:redis /data && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --appendonly yes\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.10.2-alpine"
                  },
                  "variables": {
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated Redis password",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "ecdabdac-0687-4a53-bda4-f79c8d6d2e77": {
                      "mountPath": "/data"
                    }
                  }
                },
                "5ff7fdbb-b75c-4d2f-96b8-49c97806d3a7": {
                  "icon": "https://raw.githubusercontent.com/nomideusz/activepieces-railway/main/icon.svg",
                  "name": "Activepieces",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/v1/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/activepieces/activepieces:0.92.2"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway routes to - leave as is",
                      "defaultValue": "80"
                    },
                    "AP_PORT": {
                      "isOptional": false,
                      "description": "Port Activepieces listens on - must match PORT",
                      "defaultValue": "80"
                    },
                    "AP_REDIS_URL": {
                      "isOptional": false,
                      "description": "Redis job queue on the private network (family=0 lets ioredis connect over IPv6)",
                      "defaultValue": "redis://default:${{Redis.REDIS_PASSWORD}}@${{Redis.RAILWAY_PRIVATE_DOMAIN}}:6379/0?family=0"
                    },
                    "AP_SMTP_HOST": {
                      "isOptional": true,
                      "description": "Optional SMTP server for invitation emails (Railway allows outbound SMTP on Pro only)",
                      "defaultValue": ""
                    },
                    "AP_SMTP_PORT": {
                      "isOptional": true,
                      "description": "SMTP port",
                      "defaultValue": "587"
                    },
                    "NODE_OPTIONS": {
                      "isOptional": false,
                      "description": "Caps the API's JavaScript heap. Without it Node sizes the heap from the container limit and holds ~1.4 GB after the first piece-catalog sync; with it the API peaks ~700 MB and idles ~380 MB. Raise it if logs show 'heap out of memory'",
                      "defaultValue": "--max-old-space-size=512"
                    },
                    "AP_JWT_SECRET": {
                      "isOptional": false,
                      "description": "Signs user sessions and the Worker's token - changing it logs everyone out",
                      "defaultValue": "{{AP_JWT_SECRET}}"
                    },
                    "AP_FRONTEND_URL": {
                      "isOptional": false,
                      "description": "Public URL of Activepieces (webhook URLs, OAuth redirects, email links) - set it to your custom domain after adding one",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "AP_POSTGRES_URL": {
                      "isOptional": false,
                      "description": "Postgres on the private network",
                      "defaultValue": "postgresql://${{Postgres.POSTGRES_USER}}:${{Postgres.POSTGRES_PASSWORD}}@${{Postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/${{Postgres.POSTGRES_DB}}"
                    },
                    "AP_SMTP_PASSWORD": {
                      "isOptional": true,
                      "description": "SMTP password",
                      "defaultValue": ""
                    },
                    "AP_SMTP_USERNAME": {
                      "isOptional": true,
                      "description": "SMTP username",
                      "defaultValue": ""
                    },
                    "AP_CONTAINER_TYPE": {
                      "isOptional": false,
                      "description": "This service runs the API, web UI and webhooks; flows execute on the Worker service",
                      "defaultValue": "APP"
                    },
                    "AP_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Encrypts stored app connections (32 hex chars). BACK IT UP - changing it makes every saved connection unreadable",
                      "defaultValue": "{{AP_ENCRYPTION_KEY}}"
                    },
                    "AP_EXECUTION_MODE": {
                      "isOptional": false,
                      "description": "Code steps run in an isolated V8 sandbox (no env, files or npm packages) - works without privileged containers. Use UNSANDBOXED if code steps need npm packages; SANDBOX_PROCESS modes need privileges Railway does not grant. The Worker follows this setting",
                      "defaultValue": "SANDBOX_CODE_ONLY"
                    },
                    "AP_SMTP_SENDER_NAME": {
                      "isOptional": true,
                      "description": "Sender name for Activepieces emails",
                      "defaultValue": "Activepieces"
                    },
                    "AP_SMTP_SENDER_EMAIL": {
                      "isOptional": true,
                      "description": "Sender address for Activepieces emails",
                      "defaultValue": ""
                    },
                    "AP_TELEMETRY_ENABLED": {
                      "isOptional": false,
                      "description": "Anonymous usage telemetry to Activepieces",
                      "defaultValue": "false"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "First boot runs the database migrations and syncs the piece catalog before the health check can pass",
                      "defaultValue": "600"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {}
                },
                "6a81aef4-22bf-45ec-becf-f96b5784e1c7": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "pgvector/pgvector:0.8.7-pg17"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Data subdirectory - keeps Postgres happy on Railway volumes",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "activepieces"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "activepieces"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated database password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Time for Postgres to shut down cleanly on redeploy",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "7ed78f33-4943-48f0-8614-71a3cda0d8c7": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Activepieces",
      "method": "GET",
      "path": "/api/v1/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-10-14T10:14:43.564Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-12T05:28:42.110Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_76c6f809cf80480a82c9",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 79,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "Worker"
  }
}
