{
  "manifest_version": "1.0.0",
  "template": {
    "id": "8eccb886-c202-4103-b33e-e496ab6ac53c",
    "slug": "ferretdb-or-just-updated-mongodb-compati",
    "name": "FerretDB | (Just Updated) MongoDB-Compatible Database on Postgres, Auth On, Persistent",
    "description": "MongoDB-compatible database on Postgres. Auth on, data on a volume.",
    "url": "https://railway.com/deploy/ferretdb-or-just-updated-mongodb-compati"
  },
  "services": [
    {
      "name": "ferretdb",
      "source": {
        "image": "ferretdb/ferretdb:2.7.0@sha256:5706414241eb84f0515512c37b46db0f1b1eac9e5ceb7e4c2523211c184b1985"
      },
      "needs_volume": false,
      "tcp_ports": [
        27017
      ],
      "http": false
    },
    {
      "name": "postgres",
      "source": {
        "image": "ferretdb/postgres-documentdb:17-0.107.0-ferretdb-2.7.0@sha256:2386795ec2aa7ae559304361979f1dc5708d383ee9020ae63dadc2940dfe58f7"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "MONGO_USER",
      "service": "ferretdb",
      "description": "Provide a value for MONGO_USER.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DO_NOT_TRACK",
      "service": "ferretdb",
      "description": "Provide a value for DO_NOT_TRACK.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MONGO_PASSWORD",
      "service": "ferretdb",
      "description": "Provide a value for MONGO_PASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGO_PUBLIC_URL",
      "service": "ferretdb",
      "description": "Provide a value for MONGO_PUBLIC_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGO_PRIVATE_URL",
      "service": "ferretdb",
      "description": "Provide a value for MONGO_PRIVATE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "FERRETDB_POSTGRESQL_URL",
      "service": "ferretdb",
      "description": "Provide a value for FERRETDB_POSTGRESQL_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgres",
      "description": "Provide a value for POSTGRES_USER.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "ferretdb-or-just-updated-mongodb-compati"
      }
    },
    "cli": "railway deploy --template ferretdb-or-just-updated-mongodb-compati",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "8eccb886-c202-4103-b33e-e496ab6ac53c",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "54d55e0c-1c8d-4e6d-8050-e97e3ef40ce3": {
                  "icon": null,
                  "name": "ferretdb",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ferretdb/ferretdb:2.7.0@sha256:5706414241eb84f0515512c37b46db0f1b1eac9e5ceb7e4c2523211c184b1985"
                  },
                  "variables": {
                    "MONGO_USER": {
                      "isOptional": false,
                      "defaultValue": "${{postgres.POSTGRES_USER}}"
                    },
                    "DO_NOT_TRACK": {
                      "isOptional": false,
                      "defaultValue": "{{DO_NOT_TRACK}}"
                    },
                    "MONGO_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{postgres.POSTGRES_PASSWORD}}"
                    },
                    "MONGO_PUBLIC_URL": {
                      "isOptional": false,
                      "defaultValue": "mongodb://${{postgres.POSTGRES_USER}}:${{postgres.POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/"
                    },
                    "MONGO_PRIVATE_URL": {
                      "isOptional": false,
                      "defaultValue": "mongodb://${{postgres.POSTGRES_USER}}:${{postgres.POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:27017/"
                    },
                    "FERRETDB_POSTGRESQL_URL": {
                      "isOptional": false,
                      "defaultValue": "postgres://${{postgres.POSTGRES_USER}}:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/postgres"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "27017": {}
                    }
                  }
                },
                "cfea9d32-89dd-497c-89b0-e728e5eccfbf": {
                  "icon": null,
                  "name": "postgres",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'export POSTGRES_DB=postgres; echo \"[railway] uid=$(id -u) owner=$(stat -c %u:%g /var/lib/postgresql)\"; exec docker-entrypoint.sh postgres'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ferretdb/postgres-documentdb:17-0.107.0-ferretdb-2.7.0@sha256:2386795ec2aa7ae559304361979f1dc5708d383ee9020ae63dadc2940dfe58f7"
                  },
                  "variables": {
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "defaultValue": "{{POSTGRES_USER}}"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "cfea9d32-89dd-497c-89b0-e728e5eccfbf": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-10-17T22:14:45.787Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-10-17T20:24:10.245Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_723fbe49c3cc4b73920d",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "SUCCESS,CRASHED"
      }
    ]
  }
}
