{
  "manifest_version": "1.0.0",
  "template": {
    "id": "dcc7efe4-c727-45d4-b6ee-016611997472",
    "slug": "evolution-api-or-whatsapp-rest-api-saves",
    "name": "Evolution API | WhatsApp REST API, Saves Full Chat History, Zero Config",
    "description": "WhatsApp REST API that actually saves your chat history. Zero config.",
    "url": "https://railway.com/deploy/evolution-api-or-whatsapp-rest-api-saves",
    "upstream": {
      "image": "ghcr.io/bon5co/evolution-api-railway:latest"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "postgres",
      "source": {
        "image": "postgres:17.10-trixie"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "http": false
    },
    {
      "name": "redis",
      "source": {
        "image": "redis:8.8.1-trixie"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "evolution-api",
      "source": {
        "image": "ghcr.io/bon5co/evolution-api-railway:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/evolution/instances",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "redis",
      "description": "Provide a value for REDIS_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SERVER_URL",
      "service": "evolution-api",
      "description": "Provide a value for SERVER_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "CACHE_REDIS_URI",
      "service": "evolution-api",
      "description": "Provide a value for CACHE_REDIS_URI.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "AUTHENTICATION_API_KEY",
      "service": "evolution-api",
      "description": "Provide a value for AUTHENTICATION_API_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DATABASE_CONNECTION_URI",
      "service": "evolution-api",
      "description": "Provide a value for DATABASE_CONNECTION_URI.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "evolution-api-or-whatsapp-rest-api-saves"
      }
    },
    "cli": "railway deploy --template evolution-api-or-whatsapp-rest-api-saves",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "dcc7efe4-c727-45d4-b6ee-016611997472",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "7908ffee-4c03-4485-8053-4e44e6b5ea49": {
                  "icon": null,
                  "name": "postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:17.10-trixie"
                  },
                  "variables": {
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "7908ffee-4c03-4485-8053-4e44e6b5ea49": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                },
                "863bb55d-b7b7-4b13-a9d2-03ee18630ac8": {
                  "icon": null,
                  "name": "redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'rm -rf /data/lost+found && chown -R redis:redis /data && exec docker-entrypoint.sh redis-server --requirepass \"$REDIS_PASSWORD\" --appendonly yes --appendfsync everysec --dir /data'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.8.1-trixie"
                  },
                  "variables": {
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "863bb55d-b7b7-4b13-a9d2-03ee18630ac8": {
                      "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."
                  }
                },
                "8bfa5fd2-da40-4625-a691-0701f2c82ff6": {
                  "icon": null,
                  "name": "evolution-api",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/bon5co/evolution-api-railway:latest"
                  },
                  "variables": {
                    "SERVER_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "CACHE_REDIS_URI": {
                      "isOptional": false,
                      "defaultValue": "redis://default:${{redis.REDIS_PASSWORD}}@${{redis.RAILWAY_PRIVATE_DOMAIN}}:6379/0"
                    },
                    "AUTHENTICATION_API_KEY": {
                      "isOptional": false,
                      "defaultValue": "{{AUTHENTICATION_API_KEY}}"
                    },
                    "DATABASE_CONNECTION_URI": {
                      "isOptional": false,
                      "defaultValue": "postgresql://postgres:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/postgres?schema=public"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "8bfa5fd2-da40-4625-a691-0701f2c82ff6": {
                      "mountPath": "/evolution/instances"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "evolution-api",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-07T11:54:15.772Z",
  "generator_version": "0.1.0"
}
