{
  "manifest_version": "1.0.0",
  "template": {
    "id": "344cdda8-d43a-4b30-abd3-76c93c6f5ed5",
    "slug": "electricsql-1",
    "name": "ElectricSQL with your own Postgres",
    "description": "Electric for your existing Postgres. Sync little subsets of your data.",
    "url": "https://railway.com/deploy/electricsql-1",
    "upstream": {
      "image": "electricsql/electric:latest"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "electric",
      "source": {
        "image": "electricsql/electric:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/electric/persistent",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "DATABASE_URL",
      "service": "electric",
      "description": "Postgres database URL; Fill anything, can be updated later",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "ELECTRIC_SECRET",
      "service": "electric",
      "description": "Secret used to connect to ElectricSQL; Make it long!",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ELECTRIC_STORAGE_DIR",
      "service": "electric",
      "description": "Persistent data location",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/electric/persistent"
    },
    {
      "key": "ELECTRIC_LISTEN_ON_IPV6",
      "service": "electric",
      "description": "Required for private networking since railway.internal is ipv6",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ELECTRIC_DATABASE_USE_IPV6",
      "service": "electric",
      "description": "Enables IPV6 connection",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "electricsql-1"
      }
    },
    "cli": "railway deploy --template electricsql-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "344cdda8-d43a-4b30-abd3-76c93c6f5ed5",
            "serializedConfig": {
              "services": {
                "71a09021-c81d-4dba-81db-ab5254affd54": {
                  "icon": null,
                  "name": "electric",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "electricsql/electric:latest"
                  },
                  "variables": {
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres database URL; Fill anything, can be updated later",
                      "defaultValue": "{{DATABASE_URL}}"
                    },
                    "ELECTRIC_SECRET": {
                      "isOptional": false,
                      "description": "Secret used to connect to ElectricSQL; Make it long!",
                      "defaultValue": "{{ELECTRIC_SECRET}}"
                    },
                    "ELECTRIC_STORAGE_DIR": {
                      "isOptional": false,
                      "description": "Persistent data location",
                      "defaultValue": "/var/lib/electric/persistent"
                    },
                    "ELECTRIC_LISTEN_ON_IPV6": {
                      "isOptional": false,
                      "description": "Required for private networking since railway.internal is ipv6",
                      "defaultValue": "true"
                    },
                    "ELECTRIC_DATABASE_USE_IPV6": {
                      "description": "Enables IPV6 connection",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "71a09021-c81d-4dba-81db-ab5254affd54": {
                      "mountPath": "/var/lib/electric/persistent"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-11T22:14:37.124Z",
  "generator_version": "0.1.0"
}
