{
  "manifest_version": "1.0.0",
  "template": {
    "id": "a2526d16-7390-44d4-89d6-b29429a9eec7",
    "slug": "FcaxSv",
    "name": "PostgreSQL with Wal2Json Plugin",
    "description": "A quick setup for PostgreSQL including the Wal2Json Plugin in the template",
    "url": "https://railway.com/deploy/FcaxSv",
    "upstream": {
      "repo_url": "https://github.com/nMessage/Meilisync-on-railway"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "PostgreSQL-With-Wal2Json",
      "source": {
        "repo": "https://github.com/nMessage/Meilisync-on-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "tcp_ports": [
        5432
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "PostgreSQL-With-Wal2Json",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "PostgreSQL-With-Wal2Json",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "PostgreSQL-With-Wal2Json",
      "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": "PostgreSQL-With-Wal2Json",
      "description": "User to access DB",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "PostgreSQL-With-Wal2Json",
      "description": "Default database created when image is started.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "PostgreSQL-With-Wal2Json",
      "description": "Password to access DB",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "PostgreSQL-With-Wal2Json",
      "description": "The name of the DATABASE you are using.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "DATABASE_URL",
      "service": "PostgreSQL-With-Wal2Json",
      "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": "PostgreSQL-With-Wal2Json",
      "description": "Generator for DB username",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "PostgreSQL-With-Wal2Json",
      "description": "SSL certificate expiry in days.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "PostgreSQL-With-Wal2Json",
      "description": "Generator for DB Password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "PostgreSQL-With-Wal2Json",
      "description": "Public URL to connect to this Postgres database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "FcaxSv"
      }
    },
    "cli": "railway deploy --template FcaxSv",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "a2526d16-7390-44d4-89d6-b29429a9eec7",
            "serializedConfig": {
              "services": {
                "cb8b112c-d209-4516-a457-63da72929743": {
                  "icon": "https://devicons.railway.app/PostgreSQL",
                  "name": "PostgreSQL-With-Wal2Json",
                  "source": {
                    "repo": "nMessage/Meilisync-on-railway",
                    "branch": "main",
                    "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": {
                      "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": {
                    "cb8b112c-d209-4516-a457-63da72929743": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T22:14:50.114Z",
  "generator_version": "0.1.0"
}
