{
  "manifest_version": "1.0.0",
  "template": {
    "id": "1ff79ef1-23f5-4613-8f56-cf2e2d797e1f",
    "slug": "activepieces-5",
    "name": "Activepieces",
    "description": "Open-source no-code automation. Self-host Activepieces on Railway.",
    "url": "https://railway.com/deploy/activepieces-5",
    "upstream": {
      "image": "activepieces/activepieces:0.92.1"
    }
  },
  "services": [
    {
      "name": "Activepieces",
      "source": {
        "image": "activepieces/activepieces:0.92.1"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "AP_DB_TYPE",
      "service": "Activepieces",
      "description": "Database type used to store Activepieces data",
      "secret": false,
      "strategy": "default",
      "default": "POSTGRES"
    },
    {
      "key": "AP_REDIS_URL",
      "service": "Activepieces",
      "description": "Full Redis connection URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AP_S3_BUCKET",
      "service": "Activepieces",
      "description": "Name of the S3 bucket",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AP_S3_REGION",
      "service": "Activepieces",
      "description": "Region of the S3 bucket",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AP_JWT_SECRET",
      "service": "Activepieces",
      "description": "Signs authentication tokens",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "AP_S3_ENDPOINT",
      "service": "Activepieces",
      "description": "Endpoint URL of the S3-compatible service",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AP_FRONTEND_URL",
      "service": "Activepieces",
      "description": "The public URL used to build redirect URLs and webhook URLs",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "AP_POSTGRES_URL",
      "service": "Activepieces",
      "description": "Full Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AP_ENCRYPTION_KEY",
      "service": "Activepieces",
      "description": "Encryption key for connections",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "AP_S3_ACCESS_KEY_ID",
      "service": "Activepieces",
      "description": "Access key ID",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AP_TELEMETRY_ENABLED",
      "service": "Activepieces",
      "description": "Activepieces analytics",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "AP_S3_USE_SIGNED_URLS",
      "service": "Activepieces",
      "description": "Route file traffic directly to S3 via pre-signed URLs, bypassing the API server",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "AP_S3_SECRET_ACCESS_KEY",
      "service": "Activepieces",
      "description": "Secret access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AP_FILE_STORAGE_LOCATION",
      "service": "Activepieces",
      "description": "Where files are stored",
      "secret": false,
      "strategy": "default",
      "default": "S3"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Private network hostname of the Redis service, only resolvable from services in the same environment",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Port that Redis listens on",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Username for authenticating with Redis",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Connection string for connecting to Redis using the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Alias of REDIS_PASSWORD for clients that expect the unseparated name",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Randomly generated password for authenticating with Redis",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created when image is started.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "URL to connect to Postgres 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": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Allow Postgres to cleanly shut down",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "activepieces-5"
      }
    },
    "cli": "railway deploy --template activepieces-5",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "1ff79ef1-23f5-4613-8f56-cf2e2d797e1f",
            "serializedConfig": {
              "buckets": {
                "3d1fd1e6-0d5b-4bd7-8b4d-5f27853908e7": {
                  "name": "Bucket"
                }
              },
              "services": {
                "284cc1da-8cdd-4c57-9f68-0e879eda2363": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/activepieces.svg",
                  "name": "Activepieces",
                  "deploy": {
                    "healthcheckPath": ""
                  },
                  "source": {
                    "image": "activepieces/activepieces:0.92.1"
                  },
                  "variables": {
                    "AP_DB_TYPE": {
                      "isOptional": false,
                      "description": "Database type used to store Activepieces data",
                      "defaultValue": "POSTGRES"
                    },
                    "AP_REDIS_URL": {
                      "isOptional": false,
                      "description": "Full Redis connection URL",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "AP_S3_BUCKET": {
                      "isOptional": false,
                      "description": "Name of the S3 bucket",
                      "defaultValue": "${{Bucket.BUCKET}}"
                    },
                    "AP_S3_REGION": {
                      "isOptional": false,
                      "description": "Region of the S3 bucket",
                      "defaultValue": "${{Bucket.REGION}}"
                    },
                    "AP_JWT_SECRET": {
                      "isOptional": false,
                      "description": "Signs authentication tokens",
                      "defaultValue": "{{AP_JWT_SECRET}}"
                    },
                    "AP_S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Endpoint URL of the S3-compatible service",
                      "defaultValue": "${{Bucket.ENDPOINT}}"
                    },
                    "AP_FRONTEND_URL": {
                      "isOptional": false,
                      "description": "The public URL used to build redirect URLs and webhook URLs",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "AP_POSTGRES_URL": {
                      "isOptional": false,
                      "description": "Full Postgres connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "AP_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Encryption key for connections",
                      "defaultValue": "{{AP_ENCRYPTION_KEY}}"
                    },
                    "AP_S3_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Access key ID",
                      "defaultValue": "${{Bucket.ACCESS_KEY_ID}}"
                    },
                    "AP_TELEMETRY_ENABLED": {
                      "isOptional": false,
                      "description": "Activepieces analytics",
                      "defaultValue": "false"
                    },
                    "AP_S3_USE_SIGNED_URLS": {
                      "isOptional": true,
                      "description": "Route file traffic directly to S3 via pre-signed URLs, bypassing the API server",
                      "defaultValue": "false"
                    },
                    "AP_S3_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Secret access key",
                      "defaultValue": "${{Bucket.SECRET_ACCESS_KEY}}"
                    },
                    "AP_FILE_STORAGE_LOCATION": {
                      "isOptional": false,
                      "description": "Where files are stored",
                      "defaultValue": "S3"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  }
                },
                "e4989d12-defd-43e2-9dab-474e3dae1ca5": {
                  "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"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Private network hostname of the Redis service, only resolvable from services in the same environment",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Port that Redis listens on",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Username for authenticating with Redis",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Connection string for connecting to Redis using the private network",
                      "defaultValue": "redis://${{ REDISUSER }}:${{ REDIS_PASSWORD }}@${{ REDISHOST }}:${{ REDISPORT }}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Alias of REDIS_PASSWORD for clients that expect the unseparated name",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Randomly generated password for authenticating with Redis",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "e4989d12-defd-43e2-9dab-474e3dae1ca5": {
                      "mountPath": "/data"
                    }
                  },
                  "haTemplateCode": "redis-ha"
                },
                "f43cb19b-462f-48eb-a518-5917c32fdc6b": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "requiredMountPath": "/var/lib/postgresql/data"
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "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}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Allow Postgres to cleanly shut down",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "f43cb19b-462f-48eb-a518-5917c32fdc6b": {
                      "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."
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-10-07T10:14:36.716Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-10-07T08:19:30.864Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_1d619c9a85ee4661b357",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ]
  }
}
