{
  "manifest_version": "1.0.0",
  "template": {
    "id": "81c43ee5-0ec2-4b1c-b1ee-3ebedd6d9ede",
    "slug": "GWvjtt",
    "name": "PostgreSQL to Meilisearch Sync",
    "description": "A quick setup for syncing data from PostgreSQL to Meilisearch",
    "url": "https://railway.com/deploy/GWvjtt"
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Postgres DB",
      "source": {
        "repo": "https://github.com/nMessage/Meilisync-on-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "tcp_ports": [
        5432
      ],
      "http": false
    },
    {
      "name": "Meilisync-on-railway",
      "source": {
        "repo": "https://github.com/nMessage/Meilisync-on-railway"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres DB",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres DB",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres DB",
      "description": "Because of the underlying docker image. This doesn't do anything. It's always on port 5432",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres DB",
      "description": "User to access DB",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres DB",
      "description": "Default database created when image is started.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres DB",
      "description": "Password to access DB",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres DB",
      "description": "The name of the DATABASE you are using.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres DB",
      "description": "URL to connect to Postgres database for services within the project",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres DB",
      "description": "Generator for DB username",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres DB",
      "description": "SSL certificate expiry in days.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres DB",
      "description": "Generator for DB Password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres DB",
      "description": "Public URL to connect to this Postgres database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PK_1",
      "service": "Meilisync-on-railway",
      "description": "ID Key of TABLE_1",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "DEBUG",
      "service": "Meilisync-on-railway",
      "description": "true/false Toggle for debug",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "INDEX_1",
      "service": "Meilisync-on-railway",
      "description": "The name of Meilisearch index. (https://www.meilisearch.com/docs/reference/api/indexes)",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "TABLE_1",
      "service": "Meilisync-on-railway",
      "description": "The PostgeSQL Table (or View) of data to sync into Meilisearch INDEX_1",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Meilisync-on-railway",
      "description": "The name of the database you are syncing from",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_HOST",
      "service": "Meilisync-on-railway",
      "description": "The host/Domain of the DB to sync from",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_PORT",
      "service": "Meilisync-on-railway",
      "description": "Port the DB is accessable on",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Meilisync-on-railway",
      "description": "DB User for DB access",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MEILISERCH_URL",
      "service": "Meilisync-on-railway",
      "description": "The URL of the Meilisearch Instansce.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Meilisync-on-railway",
      "description": "DB password for DB access",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MEILISERCH_ADMIN_API_KEY",
      "service": "Meilisync-on-railway",
      "description": "The ADMIN key of your Meilisearch service",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "GWvjtt"
      }
    },
    "cli": "railway deploy --template GWvjtt",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "81c43ee5-0ec2-4b1c-b1ee-3ebedd6d9ede",
            "serializedConfig": {
              "services": {
                "3d90dc6f-d670-40f3-a56d-6f958c845234": {
                  "icon": "https://devicons.railway.app/Postgre",
                  "name": "Postgres DB",
                  "source": {
                    "repo": "nMessage/Meilisync-on-railway",
                    "branch": null,
                    "rootDirectory": "/postgresql_wal2json"
                  },
                  "variables": {
                    "PGDATA": {
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "description": "Because of the underlying docker image. This doesn't do anything. It's always on port 5432",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "description": "User to access DB",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "description": "Default database created when image is started.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "description": "Password to access DB",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "description": "The name of the DATABASE you are using.",
                      "defaultValue": "{{POSTGRES_DB}}"
                    },
                    "DATABASE_URL": {
                      "description": "URL to connect to Postgres database for services within the project",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "description": "Generator for DB username",
                      "defaultValue": "{{POSTGRES_USER}}"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate expiry in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "description": "Generator for DB Password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "description": "Public URL to connect to this Postgres database",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5432": {}
                    }
                  },
                  "volumeMounts": {
                    "3d90dc6f-d670-40f3-a56d-6f958c845234": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "a511912f-6232-4f0e-90b5-bb548199d176": {
                  "icon": null,
                  "name": "Meilisync-on-railway",
                  "source": {
                    "repo": "nMessage/Meilisync-on-railway",
                    "branch": null,
                    "rootDirectory": "/sync"
                  },
                  "variables": {
                    "PK_1": {
                      "isOptional": false,
                      "description": "ID Key of TABLE_1",
                      "defaultValue": "{{PK_1}}"
                    },
                    "DEBUG": {
                      "isOptional": false,
                      "description": "true/false Toggle for debug",
                      "defaultValue": "false"
                    },
                    "INDEX_1": {
                      "isOptional": false,
                      "description": "The name of Meilisearch index. (https://www.meilisearch.com/docs/reference/api/indexes)",
                      "defaultValue": "{{INDEX_1}}"
                    },
                    "TABLE_1": {
                      "isOptional": false,
                      "description": "The PostgeSQL Table (or View) of data to sync into Meilisearch INDEX_1",
                      "defaultValue": "{{TABLE_1}}"
                    },
                    "POSTGRES_DB": {
                      "description": "The name of the database you are syncing from",
                      "defaultValue": "${{\"Postgres DB\".PGDATABASE}}"
                    },
                    "POSTGRES_HOST": {
                      "description": "The host/Domain of the DB to sync from",
                      "defaultValue": "${{Postgres DB.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "POSTGRES_PORT": {
                      "description": "Port the DB is accessable on",
                      "defaultValue": "${{Postgres DB.PGPORT}}"
                    },
                    "POSTGRES_USER": {
                      "description": "DB User for DB access",
                      "defaultValue": "${{Postgres DB.PGUSER}}"
                    },
                    "MEILISERCH_URL": {
                      "description": "The URL of the Meilisearch Instansce.",
                      "defaultValue": "${{Meilisearch.RAILWAY_PRIVATE_DOMAIN}}:${{Meilisearch.PORT}}"
                    },
                    "POSTGRES_PASSWORD": {
                      "description": "DB password for DB access",
                      "defaultValue": "${{Postgres DB.PGPASSWORD}}"
                    },
                    "MEILISERCH_ADMIN_API_KEY": {
                      "description": "The ADMIN key of your Meilisearch service",
                      "defaultValue": "{{MEILISERCH_ADMIN_API_KEY}}"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0"
}
