{
  "manifest_version": "1.0.0",
  "template": {
    "id": "c2c9ae91-5578-4d16-81a3-597db7d6e7ff",
    "slug": "pgdog",
    "name": "PgDog",
    "description": "Fast PostgreSQL proxy with connection pooling and query routing.",
    "url": "https://railway.com/deploy/pgdog",
    "upstream": {
      "image": "ghcr.io/pgdogdev/pgdog:v0.1.48"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "pgdog",
      "source": {
        "image": "ghcr.io/pgdogdev/pgdog:v0.1.48"
      },
      "needs_volume": false,
      "tcp_ports": [
        6432
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "RUST_LOG",
      "service": "pgdog",
      "description": "PgDog logging level",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "PGDOG_PORT",
      "service": "pgdog",
      "description": "TCP port PgDog listens on for PostgreSQL client connections",
      "secret": false,
      "strategy": "default",
      "default": "6432"
    },
    {
      "key": "PGDOG_USER",
      "service": "pgdog",
      "description": "Username clients use when connecting to PgDog",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "POSTGRES_HOST",
      "service": "pgdog",
      "description": "Hostname of the upstream PostgreSQL server",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "POSTGRES_PORT",
      "service": "pgdog",
      "description": "Port of the upstream PostgreSQL server",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "POSTGRES_USER",
      "service": "pgdog",
      "description": "Username PgDog uses to connect to PostgreSQL",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "PGDOG_DATABASE",
      "service": "pgdog",
      "description": "Virtual database name exposed by PgDog to clients",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "PGDOG_PASSWORD",
      "service": "pgdog",
      "description": "Password clients use when connecting to PgDog",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PGDOG_POOL_SIZE",
      "service": "pgdog",
      "description": "Maximum PostgreSQL backend connections for this pool",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "POSTGRES_DATABASE",
      "service": "pgdog",
      "description": "Actual database name on the upstream PostgreSQL server",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "pgdog",
      "description": "Password PgDog uses to connect to PostgreSQL",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "pgdog"
      }
    },
    "cli": "railway deploy --template pgdog",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "c2c9ae91-5578-4d16-81a3-597db7d6e7ff",
            "serializedConfig": {
              "services": {
                "496edb66-72da-419a-8fe8-7207d72e9b7b": {
                  "icon": "https://pgdog.dev/assets/images/logo2.png",
                  "name": "pgdog",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'printf \"%s\\n\" \"[general]\" \"host = \\\"0.0.0.0\\\"\" \"port = ${PGDOG_PORT}\" \"default_pool_size = ${PGDOG_POOL_SIZE}\" \"\" \"[[databases]]\" \"name = \\\"${PGDOG_DATABASE}\\\"\" \"host = \\\"${POSTGRES_HOST}\\\"\" \"port = ${POSTGRES_PORT}\" \"database_name = \\\"${POSTGRES_DATABASE}\\\"\" > /pgdog/pgdog.toml && printf \"%s\\n\" \"[[users]]\" \"name = \\\"${PGDOG_USER}\\\"\" \"database = \\\"${PGDOG_DATABASE}\\\"\" \"password = \\\"${PGDOG_PASSWORD}\\\"\" \"server_user = \\\"${POSTGRES_USER}\\\"\" \"server_password = \\\"${POSTGRES_PASSWORD}\\\"\" \"pool_size = ${PGDOG_POOL_SIZE}\" > /pgdog/users.toml && exec /usr/local/bin/pgdog --config /pgdog/pgdog.toml --users /pgdog/users.toml'"
                  },
                  "source": {
                    "image": "ghcr.io/pgdogdev/pgdog:v0.1.48"
                  },
                  "variables": {
                    "RUST_LOG": {
                      "description": "PgDog logging level",
                      "defaultValue": "info"
                    },
                    "PGDOG_PORT": {
                      "description": "TCP port PgDog listens on for PostgreSQL client connections",
                      "defaultValue": "6432"
                    },
                    "PGDOG_USER": {
                      "description": "Username clients use when connecting to PgDog",
                      "defaultValue": "{{PGDOG_USER}}"
                    },
                    "POSTGRES_HOST": {
                      "description": "Hostname of the upstream PostgreSQL server",
                      "defaultValue": "{{POSTGRES_HOST}}"
                    },
                    "POSTGRES_PORT": {
                      "description": "Port of the upstream PostgreSQL server",
                      "defaultValue": "5432"
                    },
                    "POSTGRES_USER": {
                      "description": "Username PgDog uses to connect to PostgreSQL",
                      "defaultValue": "{{POSTGRES_USER}}"
                    },
                    "PGDOG_DATABASE": {
                      "description": "Virtual database name exposed by PgDog to clients",
                      "defaultValue": "{{PGDOG_DATABASE}}"
                    },
                    "PGDOG_PASSWORD": {
                      "description": "Password clients use when connecting to PgDog",
                      "defaultValue": "{{PGDOG_PASSWORD}}"
                    },
                    "PGDOG_POOL_SIZE": {
                      "description": "Maximum PostgreSQL backend connections for this pool",
                      "defaultValue": "10"
                    },
                    "POSTGRES_DATABASE": {
                      "description": "Actual database name on the upstream PostgreSQL server",
                      "defaultValue": "{{POSTGRES_DATABASE}}"
                    },
                    "POSTGRES_PASSWORD": {
                      "description": "Password PgDog uses to connect to PostgreSQL",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "6432": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-22T10:14:47.278Z",
  "generator_version": "0.1.0"
}
