{
  "manifest_version": "1.0.0",
  "template": {
    "id": "63b0f448-662a-46d9-9954-c1d6e7171520",
    "slug": "pgwatch",
    "name": "pgwatch",
    "description": "Self-hosted PostgreSQL monitoring with preloaded Grafana dashboards.",
    "url": "https://railway.com/deploy/pgwatch",
    "upstream": {
      "image": "grafana/grafana-oss:13.0.2"
    }
  },
  "services": [
    {
      "name": "grafana",
      "source": {
        "image": "grafana/grafana-oss:13.0.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/grafana",
      "http": true
    },
    {
      "name": "pgwatch",
      "source": {
        "image": "cybertecpostgresql/pgwatch:5.3.0"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "postgres-metrics",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "tcp_ports": [
        5432
      ],
      "http": false
    },
    {
      "name": "postgres-config",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "tcp_ports": [
        5432
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "grafana",
      "description": "Port Railway healthchecks. Must match Grafana's http_port.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "PGHOST",
      "service": "grafana",
      "description": "Metrics database host, used to build the Grafana datasource.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPORT",
      "service": "grafana",
      "description": "Metrics database port.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGUSER",
      "service": "grafana",
      "description": "Metrics database user.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "grafana",
      "description": "Metrics database name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "grafana",
      "description": "Metrics database password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGWATCH_VERSION",
      "service": "grafana",
      "description": "pgwatch release the Grafana dashboards are fetched from.",
      "secret": false,
      "strategy": "default",
      "default": "5.3.0"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "grafana",
      "description": "Run as root so the root-owned Grafana volume is writable.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "GF_PLUGINS_PREINSTALL",
      "service": "grafana",
      "description": "Panel plugin the pgwatch dashboards need. Comma-separate to add more.",
      "secret": false,
      "strategy": "default",
      "default": "marcusolsson-treemap-panel"
    },
    {
      "key": "GF_SECURITY_ADMIN_USER",
      "service": "grafana",
      "description": "Grafana admin username.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "GF_USERS_ALLOW_SIGN_UP",
      "service": "grafana",
      "description": "Whether visitors may create their own Grafana accounts.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "GF_SECURITY_ADMIN_PASSWORD",
      "service": "grafana",
      "description": "Grafana admin password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "pgwatch",
      "description": "Port Railway healthchecks. Must match PW_WEBADDR.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "PW_SINK",
      "service": "pgwatch",
      "description": "Metrics database the gathered measurements are written to.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PW_SOURCES",
      "service": "pgwatch",
      "description": "Config database holding the list of monitored instances.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PW_WEBADDR",
      "service": "pgwatch",
      "description": "Address the pgwatch web UI binds to. Must match PORT.",
      "secret": false,
      "strategy": "default",
      "default": ":8080"
    },
    {
      "key": "PW_WEBUSER",
      "service": "pgwatch",
      "description": "Username for the pgwatch web UI and REST API.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "PW_WEBPASSWORD",
      "service": "pgwatch",
      "description": "Password for the pgwatch web UI. Blanking both it and PW_WEBUSER disables auth.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PGDATA",
      "service": "postgres-metrics",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "postgres-metrics",
      "description": "Railway private domain name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "postgres-metrics",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "postgres-metrics",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "postgres-metrics",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "postgres-metrics",
      "description": "Required variable for the data panel.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "postgres-metrics",
      "description": "Database created on first boot; pgwatch writes the gathered time series here.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "postgres-metrics",
      "description": "URL to connect to this Postgres over the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgres-metrics",
      "description": "User to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "postgres-metrics",
      "description": "SSL certificate expiry in days.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres-metrics",
      "description": "Generated password for the Postgres user.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "postgres-metrics",
      "description": "Public URL to connect to Postgres, used by the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "postgres-metrics",
      "description": "Allow Postgres to cleanly shut down.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PGDATA",
      "service": "postgres-config",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "postgres-config",
      "description": "Railway private domain name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "postgres-config",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "postgres-config",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "postgres-config",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "postgres-config",
      "description": "Required variable for the data panel.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "postgres-config",
      "description": "Database created on first boot; pgwatch stores its source list and settings here.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "postgres-config",
      "description": "URL to connect to this Postgres over the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgres-config",
      "description": "User to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "postgres-config",
      "description": "SSL certificate expiry in days.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres-config",
      "description": "Generated password for the Postgres user.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "postgres-config",
      "description": "Public URL to connect to Postgres, used by the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "postgres-config",
      "description": "Allow Postgres to cleanly shut down.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "pgwatch"
      }
    },
    "cli": "railway deploy --template pgwatch",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "63b0f448-662a-46d9-9954-c1d6e7171520",
            "serializedConfig": {
              "services": {
                "1ddd2539-9022-47f6-a84f-463050157d7e": {
                  "icon": "https://devicons.railway.com/i/grafana.svg",
                  "name": "grafana",
                  "build": {},
                  "deploy": {
                    "startCommand": "sh -c 'set -e\nDASHDIR=/var/lib/grafana/dashboards/postgres\nSTAMP=$DASHDIR/.provisioned-$PGWATCH_VERSION\nif [ ! -f \"$STAMP\" ]; then\n  rm -rf \"$DASHDIR\"\n  mkdir -p \"$DASHDIR\"\n  echo \"fetching pgwatch v$PGWATCH_VERSION dashboards...\"\n  curl -fsSL \"https://codeload.github.com/cybertec-postgresql/pgwatch/tar.gz/refs/tags/v$PGWATCH_VERSION\" \\\n    | tar -xz -C \"$DASHDIR\" --strip-components=4 \"pgwatch-$PGWATCH_VERSION/grafana/postgres/v12\"\n  touch \"$STAMP\"\nfi\nmkdir -p /etc/grafana/provisioning/dashboards /etc/grafana/provisioning/datasources\ncat > /etc/grafana/provisioning/dashboards/pgwatch.yaml <<EOF\napiVersion: 1\nproviders:\n  - name: pgwatch\n    orgId: 1\n    folder: pgwatch\n    type: file\n    disableDeletion: false\n    allowUiUpdates: true\n    updateIntervalSeconds: 30\n    options:\n      path: $DASHDIR\nEOF\ncat > /etc/grafana/provisioning/datasources/pgwatch.yaml <<EOF\napiVersion: 1\ndatasources:\n  - name: pgwatch metrics (postgres)\n    uid: pgwatch-metrics\n    type: grafana-postgresql-datasource\n    access: proxy\n    url: $PGHOST:$PGPORT\n    user: $PGUSER\n    database: $PGDATABASE\n    isDefault: true\n    editable: true\n    secureJsonData:\n      password: $PGPASSWORD\n    jsonData:\n      sslmode: disable\n      postgresVersion: 1800\nEOF\nexec /run.sh'",
                    "healthcheckPath": "/api/health",
                    "requiredMountPath": "/var/lib/grafana",
                    "healthcheckTimeout": 600
                  },
                  "source": {
                    "image": "grafana/grafana-oss:13.0.2"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway healthchecks. Must match Grafana's http_port.",
                      "defaultValue": "3000"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Metrics database host, used to build the Grafana datasource.",
                      "defaultValue": "${{postgres-metrics.PGHOST}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Metrics database port.",
                      "defaultValue": "${{postgres-metrics.PGPORT}}"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Metrics database user.",
                      "defaultValue": "${{postgres-metrics.PGUSER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Metrics database name.",
                      "defaultValue": "${{postgres-metrics.PGDATABASE}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Metrics database password.",
                      "defaultValue": "${{postgres-metrics.PGPASSWORD}}"
                    },
                    "PGWATCH_VERSION": {
                      "isOptional": false,
                      "description": "pgwatch release the Grafana dashboards are fetched from.",
                      "defaultValue": "5.3.0"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Run as root so the root-owned Grafana volume is writable.",
                      "defaultValue": "0"
                    },
                    "GF_PLUGINS_PREINSTALL": {
                      "isOptional": false,
                      "description": "Panel plugin the pgwatch dashboards need. Comma-separate to add more.",
                      "defaultValue": "marcusolsson-treemap-panel"
                    },
                    "GF_SECURITY_ADMIN_USER": {
                      "isOptional": false,
                      "description": "Grafana admin username.",
                      "defaultValue": "admin"
                    },
                    "GF_USERS_ALLOW_SIGN_UP": {
                      "isOptional": false,
                      "description": "Whether visitors may create their own Grafana accounts.",
                      "defaultValue": "false"
                    },
                    "GF_SECURITY_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Grafana admin password.",
                      "defaultValue": "{{GF_SECURITY_ADMIN_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "1ddd2539-9022-47f6-a84f-463050157d7e": {
                      "mountPath": "/var/lib/grafana"
                    }
                  }
                },
                "3f26d669-afab-45de-89cf-6cbfbaad6d39": {
                  "icon": "https://github.com/cybertec-postgresql.png?size=460",
                  "name": "pgwatch",
                  "build": {},
                  "deploy": {
                    "healthcheckPath": "/readiness",
                    "healthcheckTimeout": 300
                  },
                  "source": {
                    "image": "cybertecpostgresql/pgwatch:5.3.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway healthchecks. Must match PW_WEBADDR.",
                      "defaultValue": "8080"
                    },
                    "PW_SINK": {
                      "isOptional": false,
                      "description": "Metrics database the gathered measurements are written to.",
                      "defaultValue": "${{postgres-metrics.DATABASE_URL}}"
                    },
                    "PW_SOURCES": {
                      "isOptional": false,
                      "description": "Config database holding the list of monitored instances.",
                      "defaultValue": "${{postgres-config.DATABASE_URL}}"
                    },
                    "PW_WEBADDR": {
                      "isOptional": false,
                      "description": "Address the pgwatch web UI binds to. Must match PORT.",
                      "defaultValue": ":8080"
                    },
                    "PW_WEBUSER": {
                      "isOptional": false,
                      "description": "Username for the pgwatch web UI and REST API.",
                      "defaultValue": "admin"
                    },
                    "PW_WEBPASSWORD": {
                      "isOptional": false,
                      "description": "Password for the pgwatch web UI. Blanking both it and PW_WEBUSER disables auth.",
                      "defaultValue": "{{PW_WEBPASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {
                        "port": 8080
                      }
                    }
                  }
                },
                "7609f5db-11d2-4b57-884b-b6b2acd1934c": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "postgres-metrics",
                  "build": {},
                  "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 the 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 the data panel.",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created on first boot; pgwatch writes the gathered time series here.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "URL to connect to this Postgres over the private network.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "User to connect to Postgres.",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate expiry in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated password for the Postgres user.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public URL to connect to Postgres, used by the data panel.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Allow Postgres to cleanly shut down.",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5432": {}
                    },
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "7609f5db-11d2-4b57-884b-b6b2acd1934c": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "c9088831-e1fc-4663-8905-d0726e908a9d": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "postgres-config",
                  "build": {},
                  "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 the 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 the data panel.",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created on first boot; pgwatch stores its source list and settings here.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "URL to connect to this Postgres over the private network.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "User to connect to Postgres.",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate expiry in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated password for the Postgres user.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public URL to connect to Postgres, used by the data panel.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Allow Postgres to cleanly shut down.",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5432": {}
                    },
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "c9088831-e1fc-4663-8905-d0726e908a9d": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "grafana",
      "method": "GET",
      "path": "/api/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T10:14:45.332Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-04T06:55:00.644Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_eb94923cf1b947288ec0",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 47,
    "typical_build_seconds": 0,
    "typical_start_seconds": 20,
    "slowest_service": "grafana"
  }
}
