{
  "manifest_version": "1.0.0",
  "template": {
    "id": "aea9ebcf-da80-499b-98da-074ad6d4b679",
    "slug": "pgmaps",
    "name": "pgMaps",
    "description": "Manage maps and GIS data in PostgreSQL databases",
    "url": "https://railway.com/deploy/pgmaps",
    "upstream": {
      "image": "nogurtmon1/pg-maps:latest"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "pg-maps",
      "source": {
        "image": "nogurtmon1/pg-maps:latest"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "APP_PASSWORD",
      "service": "pg-maps",
      "description": "Password protecting the app. Without it, anyone with the URL could obtain read/write access to your PostgreSQL database.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "POSTGRES_URL",
      "service": "pg-maps",
      "description": "Your PostgreSQL connection string. By default, the app will create up to four tables in the public schema (_pgmaps_basemaps, _pgmaps_connections, _pgmaps_folders, _pgmaps_maps) to store its own data.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "DSN_ENCRYPTION_KEY",
      "service": "pg-maps",
      "description": "32-byte hex key used to encrypt saved connection strings. Generate with openssl rand -hex 32.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "pgmaps"
      }
    },
    "cli": "railway deploy --template pgmaps",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "aea9ebcf-da80-499b-98da-074ad6d4b679",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "53fddde0-bd87-4769-90f3-bc0d417a5ce7": {
                  "icon": null,
                  "name": "pg-maps",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "nogurtmon1/pg-maps:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Port the app listens on.",
                      "defaultValue": ""
                    },
                    "APP_PASSWORD": {
                      "isOptional": false,
                      "description": "Password protecting the app. Without it, anyone with the URL could obtain read/write access to your PostgreSQL database.",
                      "defaultValue": "{{APP_PASSWORD}}"
                    },
                    "POSTGRES_URL": {
                      "isOptional": false,
                      "description": "Your PostgreSQL connection string. By default, the app will create up to four tables in the public schema (_pgmaps_basemaps, _pgmaps_connections, _pgmaps_folders, _pgmaps_maps) to store its own data.",
                      "defaultValue": "{{POSTGRES_URL}}"
                    },
                    "DSN_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "32-byte hex key used to encrypt saved connection strings. Generate with openssl rand -hex 32.",
                      "defaultValue": "{{DSN_ENCRYPTION_KEY}}"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0"
}
