{
  "manifest_version": "1.0.0",
  "template": {
    "id": "185ceb30-37c0-405c-9a7a-69897afd41b7",
    "slug": "multica-ai",
    "name": "Multica AI",
    "description": "Manage AI coding agents like teammates. Assign work, track progress & ship.",
    "url": "https://railway.com/deploy/multica-ai",
    "upstream": {
      "image": "ghcr.io/multica-ai/multica-web:latest"
    }
  },
  "services": [
    {
      "name": "multica-backend",
      "source": {
        "image": "ghcr.io/multica-ai/multica-backend:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data/uploads",
      "http": false
    },
    {
      "name": "multica-web",
      "source": {
        "image": "ghcr.io/multica-ai/multica-web:latest"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "pgvector/pgvector:pg17"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "tcp_ports": [
        5432
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "multica-backend",
      "description": "HTTP and WebSocket port used by Multica Backend",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "APP_ENV",
      "service": "multica-backend",
      "description": "Enable Multica production safety checks",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "JWT_SECRET",
      "service": "multica-backend",
      "description": "Secret used to sign Multica authentication tokens",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ALLOW_SIGNUP",
      "service": "multica-backend",
      "description": "Allow new users to create Multica accounts",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DATABASE_URL",
      "service": "multica-backend",
      "description": "Private PostgreSQL connection URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "FRONTEND_ORIGIN",
      "service": "multica-backend",
      "description": "Public Multica Web origin used for CORS and authentication",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "MULTICA_APP_URL",
      "service": "multica-backend",
      "description": "Public URL users use to access Multica",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "MULTICA_PUBLIC_URL",
      "service": "multica-backend",
      "description": "Public Multica Backend/API URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "HOSTNAME",
      "service": "multica-web",
      "description": "Bind Multica Web to all container interfaces",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "REMOTE_API_URL",
      "service": "multica-web",
      "description": "Private backend API URL used by the frontend server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "NEXT_PUBLIC_WS_URL",
      "service": "multica-web",
      "description": "Public backend WebSocket URL used by browser clients",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NEXT_PUBLIC_API_URL",
      "service": "multica-web",
      "description": "Public backend API URL used by browser clients",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "PostgreSQL data directory inside the Railway volume",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Public TCP proxy hostname for external PostgreSQL connections",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Public TCP proxy port for external PostgreSQL connections",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "PostgreSQL username used by clients",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Default database used by clients",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "PostgreSQL password used by clients",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created on first startup",
      "secret": false,
      "strategy": "default",
      "default": "vector"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Public PostgreSQL connection URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Initial PostgreSQL administrator user",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "PGHOST_PRIVATE",
      "service": "Postgres",
      "description": "Private Railway hostname for internal connections",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT_PRIVATE",
      "service": "Postgres",
      "description": "Internal PostgreSQL TCP port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Postgres",
      "description": "Run as root to ensure Railway volume write permissions",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Initial PostgreSQL administrator password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_URL_PRIVATE",
      "service": "Postgres",
      "description": "Private PostgreSQL connection URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "multica-ai"
      }
    },
    "cli": "railway deploy --template multica-ai",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "185ceb30-37c0-405c-9a7a-69897afd41b7",
            "serializedConfig": {
              "services": {
                "a27056dc-7374-4bf4-88de-fa68d887bbc9": {
                  "icon": "https://raw.githubusercontent.com/multica-ai/multica/main/docs/assets/logo-dark.svg",
                  "name": "multica-backend",
                  "source": {
                    "image": "ghcr.io/multica-ai/multica-backend:latest"
                  },
                  "variables": {
                    "PORT": {
                      "description": "HTTP and WebSocket port used by Multica Backend",
                      "defaultValue": "8080"
                    },
                    "APP_ENV": {
                      "description": "Enable Multica production safety checks",
                      "defaultValue": "production"
                    },
                    "JWT_SECRET": {
                      "description": "Secret used to sign Multica authentication tokens",
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "ALLOW_SIGNUP": {
                      "description": "Allow new users to create Multica accounts",
                      "defaultValue": "true"
                    },
                    "DATABASE_URL": {
                      "description": "Private PostgreSQL connection URL",
                      "defaultValue": "postgres://${{Postgres.POSTGRES_USER}}:${{Postgres.POSTGRES_PASSWORD}}@${{Postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/${{Postgres.POSTGRES_DB}}?sslmode=disable"
                    },
                    "FRONTEND_ORIGIN": {
                      "description": "Public Multica Web origin used for CORS and authentication",
                      "defaultValue": "https://${{multica-web.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "MULTICA_APP_URL": {
                      "description": "Public URL users use to access Multica",
                      "defaultValue": "https://${{multica-web.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "MULTICA_PUBLIC_URL": {
                      "description": "Public Multica Backend/API URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": null
                  },
                  "volumeMounts": {
                    "a27056dc-7374-4bf4-88de-fa68d887bbc9": {
                      "mountPath": "/app/data/uploads"
                    }
                  }
                },
                "e8b36d96-7be3-455f-ba8b-3f0316bd6ea6": {
                  "icon": "https://raw.githubusercontent.com/multica-ai/multica/main/docs/assets/logo-dark.svg",
                  "name": "multica-web",
                  "source": {
                    "image": "ghcr.io/multica-ai/multica-web:latest"
                  },
                  "variables": {
                    "HOSTNAME": {
                      "description": "Bind Multica Web to all container interfaces",
                      "defaultValue": "0.0.0.0"
                    },
                    "REMOTE_API_URL": {
                      "description": "Private backend API URL used by the frontend server",
                      "defaultValue": "http://${{multica-backend.RAILWAY_PRIVATE_DOMAIN}}:8080"
                    },
                    "NEXT_PUBLIC_WS_URL": {
                      "description": "Public backend WebSocket URL used by browser clients",
                      "defaultValue": "wss://${{multica-backend.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NEXT_PUBLIC_API_URL": {
                      "description": "Public backend API URL used by browser clients",
                      "defaultValue": "https://${{multica-backend.RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "fa7651b5-496e-409c-92a8-429c742db2c8": {
                  "icon": "https://devicons.railway.app/postgres",
                  "name": "Postgres",
                  "source": {
                    "image": "pgvector/pgvector:pg17"
                  },
                  "variables": {
                    "PGDATA": {
                      "description": "PostgreSQL data directory inside the Railway volume",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "description": "Public TCP proxy hostname for external PostgreSQL connections",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_DOMAIN}}"
                    },
                    "PGPORT": {
                      "description": "Public TCP proxy port for external PostgreSQL connections",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_PORT}}"
                    },
                    "PGUSER": {
                      "description": "PostgreSQL username used by clients",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "description": "Default database used by clients",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "description": "PostgreSQL password used by clients",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "description": "Default database created on first startup",
                      "defaultValue": "vector"
                    },
                    "DATABASE_URL": {
                      "description": "Public PostgreSQL connection URL",
                      "defaultValue": "postgresql://${{POSTGRES_USER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{POSTGRES_DB}}"
                    },
                    "POSTGRES_USER": {
                      "description": "Initial PostgreSQL administrator user",
                      "defaultValue": "postgres"
                    },
                    "PGHOST_PRIVATE": {
                      "description": "Private Railway hostname for internal connections",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT_PRIVATE": {
                      "description": "Internal PostgreSQL TCP port",
                      "defaultValue": "5432"
                    },
                    "RAILWAY_RUN_UID": {
                      "description": "Run as root to ensure Railway volume write permissions",
                      "defaultValue": "0"
                    },
                    "POSTGRES_PASSWORD": {
                      "description": "Initial PostgreSQL administrator password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_URL_PRIVATE": {
                      "description": "Private PostgreSQL connection URL",
                      "defaultValue": "postgresql://${{POSTGRES_USER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{POSTGRES_DB}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5432": {}
                    }
                  },
                  "volumeMounts": {
                    "fa7651b5-496e-409c-92a8-429c742db2c8": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T13:09:29.098Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_c19163541f824a9ebfdf",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 81,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "multica-backend"
  }
}
