{
  "manifest_version": "1.0.0",
  "template": {
    "id": "ffa19b8c-40dd-432a-a9b5-721c3f8b3230",
    "slug": "talkwatch",
    "name": "TalkWatch",
    "description": "Dashboard and alerts for UniFi Talk: missed calls, voicemail, call-backs.",
    "url": "https://railway.com/deploy/talkwatch",
    "upstream": {
      "image": "ghcr.io/thecodesaiyan/talkwatch:latest"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "TalkWatch",
      "source": {
        "image": "ghcr.io/thecodesaiyan/talkwatch:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data/audio",
      "http": true
    },
    {
      "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": "Site__Name",
      "service": "TalkWatch",
      "description": "Your site's name, shown across TalkWatch, e.g. Acme Ltd.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "Site__Region",
      "service": "TalkWatch",
      "description": "Two-letter country code for numbers written nationally, e.g. GB or US.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "Site__TimeZone",
      "service": "TalkWatch",
      "description": "Your time zone, for the dashboard and alert times, e.g. Europe/London or America/New_York.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "TalkWatch",
      "description": "Runs TalkWatch as root so it can write to Railway's volume. Leave as 0.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "Site__PublicUrl",
      "service": "TalkWatch",
      "description": "TalkWatch's own address, for links in alerts and reports. Set from Railway's public domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "Database__Password",
      "service": "TalkWatch",
      "description": "The database password, from the Postgres service. Leave as it is.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "Bootstrap__AdminPassword",
      "service": "TalkWatch",
      "description": "The first admin's password, generated for you. Find it here after deploying, sign in, then change it.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "Bootstrap__AdminUsername",
      "service": "TalkWatch",
      "description": "The first admin's username, for signing in the first time.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "ConnectionStrings__TalkWatch",
      "service": "TalkWatch",
      "description": "Where TalkWatch's database is, from the Postgres service. Leave as it is.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "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": "talkwatch"
      }
    },
    "cli": "railway deploy --template talkwatch",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "ffa19b8c-40dd-432a-a9b5-721c3f8b3230",
            "serializedConfig": {
              "services": {
                "7a4adf16-a14b-49fd-b9d5-e9490f8d8b5c": {
                  "icon": "https://thecodesaiyan.github.io/talkwatch/assets/mark.svg",
                  "name": "TalkWatch",
                  "deploy": {
                    "healthcheckPath": "/healthz"
                  },
                  "source": {
                    "image": "ghcr.io/thecodesaiyan/talkwatch:latest"
                  },
                  "variables": {
                    "Site__Name": {
                      "description": "Your site's name, shown across TalkWatch, e.g. Acme Ltd.",
                      "defaultValue": "{{Site__Name}}"
                    },
                    "Site__Region": {
                      "description": "Two-letter country code for numbers written nationally, e.g. GB or US.",
                      "defaultValue": "{{Site__Region}}"
                    },
                    "Site__TimeZone": {
                      "description": "Your time zone, for the dashboard and alert times, e.g. Europe/London or America/New_York.",
                      "defaultValue": "{{Site__TimeZone}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "description": "Runs TalkWatch as root so it can write to Railway's volume. Leave as 0.",
                      "defaultValue": "0"
                    },
                    "Site__PublicUrl": {
                      "description": "TalkWatch's own address, for links in alerts and reports. Set from Railway's public domain.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "Database__Password": {
                      "description": "The database password, from the Postgres service. Leave as it is.",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "Bootstrap__AdminPassword": {
                      "description": "The first admin's password, generated for you. Find it here after deploying, sign in, then change it.",
                      "defaultValue": "{{Bootstrap__AdminPassword}}"
                    },
                    "Bootstrap__AdminUsername": {
                      "description": "The first admin's username, for signing in the first time.",
                      "defaultValue": "admin"
                    },
                    "ConnectionStrings__TalkWatch": {
                      "description": "Where TalkWatch's database is, from the Postgres service. Leave as it is.",
                      "defaultValue": "Host=${{Postgres.PGHOST}};Port=${{Postgres.PGPORT}};Database=${{Postgres.PGDATABASE}};Username=${{Postgres.PGUSER}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "7a4adf16-a14b-49fd-b9d5-e9490f8d8b5c": {
                      "mountPath": "/data/audio"
                    }
                  }
                },
                "f0002b46-8cc9-4574-b21f-374bdf4498fc": {
                  "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": {
                    "f0002b46-8cc9-4574-b21f-374bdf4498fc": {
                      "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": {
    "healthcheck": {
      "service": "TalkWatch",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-10-05T22:14:43.759Z",
  "generator_version": "0.1.0"
}
