{
  "manifest_version": "1.0.0",
  "template": {
    "id": "a91cb26f-1a43-41e2-9df1-3b86b03d709c",
    "slug": "kit-activepieces-build-0919",
    "name": "Activepieces",
    "description": "Activepieces: open-source Zapier alternative with 700+ automation pieces",
    "url": "https://railway.com/deploy/kit-activepieces-build-0919",
    "upstream": {
      "image": "activepieces/activepieces:0.91.0@sha256:58414dfc94c4c6b148d286aed455344ae751d68b5723ed174bd045ff6e3d5db3"
    }
  },
  "services": [
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2@sha256:7d1e4ce8b9395088377ab382d1f6cfdbd13b3690795198a0399ab8d683064d6d"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Activepieces",
      "source": {
        "image": "activepieces/activepieces:0.91.0@sha256:58414dfc94c4c6b148d286aed455344ae751d68b5723ed174bd045ff6e3d5db3"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18@sha256:3b8bc16ccb823c9a293b09d20d4180049502ee2b243b5989d59e258450044e22"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Private-network hostname of the Redis service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Port Redis listens on.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Redis username for this image's default user.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Private-network connection string. Activepieces keeps its BullMQ job queue, scheduled triggers and the migration lock here; RDB snapshots on the volume survive restarts.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Alias of REDIS_PASSWORD for Railway's data panel.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Redis password, generated once at deploy time.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Redis",
      "description": "Seconds Railway keeps the old container alive after the new one is live, so in-flight queue operations can finish.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "Activepieces",
      "description": "Port Railway routes the public domain and the deploy healthcheck to. The image listens on 80 and AP_PORT follows this value; leave it.",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "AP_PORT",
      "service": "Activepieces",
      "description": "Port the API and the built-in worker listen on. Follows PORT so Railway's domain, healthcheck and the app always agree.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AP_REDIS_URL",
      "service": "Activepieces",
      "description": "Private-network connection string to the bundled Redis service. Backs the BullMQ job queue, scheduled triggers and the migration lock.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AP_JWT_SECRET",
      "service": "Activepieces",
      "description": "Secret that signs user sessions and the internal worker token, generated once at deploy time. Rotating it signs everyone out.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "AP_FRONTEND_URL",
      "service": "Activepieces",
      "description": "Public URL of this instance. Every webhook URL, OAuth redirect and email link is built from it. Change it to your custom domain after you attach one.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "AP_POSTGRES_URL",
      "service": "Activepieces",
      "description": "Private-network connection string to the bundled Postgres service. Flows, runs, users, connections and piece metadata live here.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AP_CONTAINER_TYPE",
      "service": "Activepieces",
      "description": "Which processes this container runs. WORKER_AND_APP runs the API and one worker together (upstream default). To scale out, keep this service as APP and add worker services from the same image with WORKER.",
      "secret": false,
      "strategy": "default",
      "default": "WORKER_AND_APP"
    },
    {
      "key": "AP_ENCRYPTION_KEY",
      "service": "Activepieces",
      "description": "32-hex-character AES-256 key that encrypts every stored connection credential, generated once at deploy time. Losing or rotating it orphans every saved connection; back it up with the database.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "AP_EXECUTION_MODE",
      "service": "Activepieces",
      "description": "How flow code runs. UNSANDBOXED (upstream default) forks the engine with a memory cap and works without privileges. SANDBOX_CODE_ONLY adds a V8 isolate per Code step for multi-tenant safety. SANDBOX_PROCESS needs CAP_SYS_ADMIN and does not run on Railway.",
      "secret": false,
      "strategy": "default",
      "default": "UNSANDBOXED"
    },
    {
      "key": "AP_TELEMETRY_ENABLED",
      "service": "Activepieces",
      "description": "Starting value for product analytics sent to Activepieces. Off here; upstream defaults it on. The platform copies it on first boot, so later changes go through Platform Admin, Infrastructure, Configurations.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "AP_WORKER_CONCURRENCY",
      "service": "Activepieces",
      "description": "Flow runs the built-in worker executes at once (upstream default 5). Each run holds an engine process; lower it on a 1 GB plan if runs get OOM-killed, raise it with memory.",
      "secret": false,
      "strategy": "default",
      "default": "5"
    },
    {
      "key": "AP_FLOW_TIMEOUT_SECONDS",
      "service": "Activepieces",
      "description": "Maximum runtime of a single flow run in seconds (upstream default 600).",
      "secret": false,
      "strategy": "default",
      "default": "600"
    },
    {
      "key": "AP_WEBHOOK_TIMEOUT_SECONDS",
      "service": "Activepieces",
      "description": "Seconds a synchronous webhook waits for the flow before replying (upstream default 30, maximum 900).",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "AP_TRIGGER_DEFAULT_POLL_INTERVAL",
      "service": "Activepieces",
      "description": "Minutes between polls for polling triggers such as new rows or new emails (upstream default 5).",
      "secret": false,
      "strategy": "default",
      "default": "5"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Activepieces",
      "description": "Seconds Railway keeps the old container alive after the new one passes its healthcheck, so in-flight webhook requests finish during a redeploy.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Postgres data directory, inside the mounted volume.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Private-network hostname of the Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port Postgres listens on.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Postgres superuser name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Default database name used by psql and the Postgres client tools.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Password for the Postgres superuser.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database created on first boot.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private-network connection string. Activepieces stores flows, runs, users, encrypted connections and piece metadata here.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Superuser created on first boot.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "Validity window, in days, for the self-signed TLS certificate this image generates.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Superuser password, generated once at deploy time.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Seconds Railway keeps the old container alive after the new one is live, so in-flight queries can finish.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "kit-activepieces-build-0919"
      }
    },
    "cli": "railway deploy --template kit-activepieces-build-0919",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "a91cb26f-1a43-41e2-9df1-3b86b03d709c",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "4dc34bf5-a165-4dff-83f3-0dd8d6cb04d5": {
                  "icon": "https://devicons.railway.com/i/redis.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\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2@sha256:7d1e4ce8b9395088377ab382d1f6cfdbd13b3690795198a0399ab8d683064d6d"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Private-network hostname of the Redis service.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Port Redis listens on.",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Redis username for this image's default user.",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private-network connection string. Activepieces keeps its BullMQ job queue, scheduled triggers and the migration lock here; RDB snapshots on the volume survive restarts.",
                      "defaultValue": "redis://default:${{REDIS_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Alias of REDIS_PASSWORD for Railway's data panel.",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Redis password, generated once at deploy time.",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "description": "Seconds Railway keeps the old container alive after the new one is live, so in-flight queue operations can finish.",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "4dc34bf5-a165-4dff-83f3-0dd8d6cb04d5": {
                      "mountPath": "/data"
                    }
                  }
                },
                "f279fdb7-6b45-4f73-82d7-a331a062a5da": {
                  "icon": "https://bogusz.co/external/activepieces-icon.png",
                  "name": "Activepieces",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/v1/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "activepieces/activepieces:0.91.0@sha256:58414dfc94c4c6b148d286aed455344ae751d68b5723ed174bd045ff6e3d5db3"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway routes the public domain and the deploy healthcheck to. The image listens on 80 and AP_PORT follows this value; leave it.",
                      "defaultValue": "80"
                    },
                    "AP_PORT": {
                      "isOptional": false,
                      "description": "Port the API and the built-in worker listen on. Follows PORT so Railway's domain, healthcheck and the app always agree.",
                      "defaultValue": "${{PORT}}"
                    },
                    "AP_REDIS_URL": {
                      "isOptional": false,
                      "description": "Private-network connection string to the bundled Redis service. Backs the BullMQ job queue, scheduled triggers and the migration lock.",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "AP_JWT_SECRET": {
                      "isOptional": false,
                      "description": "Secret that signs user sessions and the internal worker token, generated once at deploy time. Rotating it signs everyone out.",
                      "defaultValue": "{{AP_JWT_SECRET}}"
                    },
                    "AP_FRONTEND_URL": {
                      "isOptional": false,
                      "description": "Public URL of this instance. Every webhook URL, OAuth redirect and email link is built from it. Change it to your custom domain after you attach one.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "AP_POSTGRES_URL": {
                      "isOptional": false,
                      "description": "Private-network connection string to the bundled Postgres service. Flows, runs, users, connections and piece metadata live here.",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "AP_CONTAINER_TYPE": {
                      "isOptional": false,
                      "description": "Which processes this container runs. WORKER_AND_APP runs the API and one worker together (upstream default). To scale out, keep this service as APP and add worker services from the same image with WORKER.",
                      "defaultValue": "WORKER_AND_APP"
                    },
                    "AP_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "32-hex-character AES-256 key that encrypts every stored connection credential, generated once at deploy time. Losing or rotating it orphans every saved connection; back it up with the database.",
                      "defaultValue": "{{AP_ENCRYPTION_KEY}}"
                    },
                    "AP_EXECUTION_MODE": {
                      "isOptional": false,
                      "description": "How flow code runs. UNSANDBOXED (upstream default) forks the engine with a memory cap and works without privileges. SANDBOX_CODE_ONLY adds a V8 isolate per Code step for multi-tenant safety. SANDBOX_PROCESS needs CAP_SYS_ADMIN and does not run on Railway.",
                      "defaultValue": "UNSANDBOXED"
                    },
                    "AP_TELEMETRY_ENABLED": {
                      "isOptional": false,
                      "description": "Starting value for product analytics sent to Activepieces. Off here; upstream defaults it on. The platform copies it on first boot, so later changes go through Platform Admin, Infrastructure, Configurations.",
                      "defaultValue": "false"
                    },
                    "AP_WORKER_CONCURRENCY": {
                      "isOptional": false,
                      "description": "Flow runs the built-in worker executes at once (upstream default 5). Each run holds an engine process; lower it on a 1 GB plan if runs get OOM-killed, raise it with memory.",
                      "defaultValue": "5"
                    },
                    "AP_FLOW_TIMEOUT_SECONDS": {
                      "isOptional": false,
                      "description": "Maximum runtime of a single flow run in seconds (upstream default 600).",
                      "defaultValue": "600"
                    },
                    "AP_WEBHOOK_TIMEOUT_SECONDS": {
                      "isOptional": false,
                      "description": "Seconds a synchronous webhook waits for the flow before replying (upstream default 30, maximum 900).",
                      "defaultValue": "30"
                    },
                    "AP_TRIGGER_DEFAULT_POLL_INTERVAL": {
                      "isOptional": false,
                      "description": "Minutes between polls for polling triggers such as new rows or new emails (upstream default 5).",
                      "defaultValue": "5"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Seconds Railway keeps the old container alive after the new one passes its healthcheck, so in-flight webhook requests finish during a redeploy.",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "fbad123e-1641-43a8-9c4f-c5e46eafff93": {
                  "icon": "https://devicons.railway.com/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18@sha256:3b8bc16ccb823c9a293b09d20d4180049502ee2b243b5989d59e258450044e22"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Postgres data directory, inside the mounted volume.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Private-network hostname of the Postgres service.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Port Postgres listens on.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Postgres superuser name.",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Default database name used by psql and the Postgres client tools.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Password for the Postgres superuser.",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created on first boot.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private-network connection string. Activepieces stores flows, runs, users, encrypted connections and piece metadata here.",
                      "defaultValue": "postgresql://${{POSTGRES_USER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{POSTGRES_DB}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Superuser created on first boot.",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "Validity window, in days, for the self-signed TLS certificate this image generates.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password, generated once at deploy time.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Seconds Railway keeps the old container alive after the new one is live, so in-flight queries can finish.",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "fbad123e-1641-43a8-9c4f-c5e46eafff93": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Activepieces",
      "method": "GET",
      "path": "/api/v1/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-10-06T04:14:42.626Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-05T04:26:37.219Z",
  "success_rate_30d": 0.2857,
  "validation": {
    "last_run_id": "run_e1a630c20f5243068cb1",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 149,
    "typical_build_seconds": 0,
    "typical_start_seconds": 32,
    "slowest_service": "Activepieces"
  }
}
