{
  "manifest_version": "1.0.0",
  "template": {
    "id": "21db1c72-d65a-4dc9-a918-a4f7292971db",
    "slug": "openproject-2",
    "name": "OpenProject",
    "description": "Project management with private PostgreSQL and persistent attachments.",
    "url": "https://railway.com/deploy/openproject-2",
    "upstream": {
      "repo_url": "https://github.com/orenaksakal/railway-templates"
    }
  },
  "services": [
    {
      "name": "postgres",
      "source": {
        "repo": "https://github.com/orenaksakal/railway-templates"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "openproject",
      "source": {
        "repo": "https://github.com/orenaksakal/railway-templates"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/openproject/assets",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "APP_DB",
      "service": "postgres",
      "description": "Application database created during first initialization of an empty PostgreSQL volume.",
      "secret": false,
      "strategy": "default",
      "default": "openproject"
    },
    {
      "key": "PGDATA",
      "service": "postgres",
      "description": "PostgreSQL data directory within the persistent volume. Do not change on an existing database.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "APP_USER",
      "service": "postgres",
      "description": "Dedicated application database role created during first initialization.",
      "secret": false,
      "strategy": "default",
      "default": "openproject"
    },
    {
      "key": "POSTGRES_DB",
      "service": "postgres",
      "description": "Initial PostgreSQL database name, or the matching database selected by the application.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "APP_PASSWORD",
      "service": "postgres",
      "description": "Generated password for the application database role. Preserve it with your backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_URL",
      "service": "postgres",
      "description": "Private PostgreSQL connection URL assembled from generated credentials and service references. No manual value is needed.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ENABLE_VECTOR",
      "service": "postgres",
      "description": "Initialize the pgvector extension for applications that require vector storage. Keep the supplied value.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgres",
      "description": "PostgreSQL initialization user, or the matching connection user for the private database.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "PostgreSQL password. Generated for the database and referenced by dependent services; keep private.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "postgres",
      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
      "secret": false,
      "strategy": "default",
      "default": "templates/openproject/Postgres.Dockerfile"
    },
    {
      "key": "ALLOW_APP_DATABASE_CREATION",
      "service": "postgres",
      "description": "Grant database and role creation privileges required by ToolJet. Keep false for other applications.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "PORT",
      "service": "openproject",
      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "DATABASE_URL",
      "service": "openproject",
      "description": "Private PostgreSQL connection URL assembled from generated credentials and service references. No manual value is needed.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SECRET_KEY_BASE",
      "service": "openproject",
      "description": "Generated application signing secret. Preserve across restarts and backup restores.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OPENPROJECT_HSTS",
      "service": "openproject",
      "description": "Enable HTTP Strict Transport Security for the public HTTPS deployment.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "OPENPROJECT_HTTPS",
      "service": "openproject",
      "description": "Generate HTTPS application URLs behind Railway TLS termination. Keep true.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RAILS_MAX_THREADS",
      "service": "openproject",
      "description": "Maximum Rails request threads. Tune with available memory and database capacity.",
      "secret": false,
      "strategy": "default",
      "default": "8"
    },
    {
      "key": "RAILS_MIN_THREADS",
      "service": "openproject",
      "description": "Minimum Rails request threads. Keep at or below RAILS_MAX_THREADS.",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "PG_STARTUP_WAIT_TIME",
      "service": "openproject",
      "description": "Time allowed for PostgreSQL startup before OpenProject initialization. Keep the supplied default unless startup logs require more time.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "OPENPROJECT_HOST__NAME",
      "service": "openproject",
      "description": "Public OpenProject hostname without a scheme. Update when assigning a custom domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "openproject",
      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
      "secret": false,
      "strategy": "default",
      "default": "templates/openproject/Dockerfile"
    },
    {
      "key": "OPENPROJECT_SEED__ADMIN__USER__PASSWORD",
      "service": "openproject",
      "description": "Generated initial password for the admin account. Read it after deployment, sign in, and change it promptly.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "OPENPROJECT_SEED__ADMIN__USER__PASSWORD__RESET",
      "service": "openproject",
      "description": "Require the seeded administrator to change the initial password at first login.",
      "secret": true,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "OPENPROJECT_COLLABORATIVE__EDITING__HOCUSPOCUS__URL",
      "service": "openproject",
      "description": "Public secure WebSocket URL for collaborative editing. Update with the application domain.",
      "secret": false,
      "strategy": "default",
      "default": "auto"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "openproject-2"
      }
    },
    "cli": "railway deploy --template openproject-2",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "21db1c72-d65a-4dc9-a918-a4f7292971db",
            "serializedConfig": {
              "services": {
                "eba3f644-6e81-5d46-9f98-a53673e501cd": {
                  "name": "postgres",
                  "build": {
                    "builder": "RAILPACK",
                    "dockerfilePath": "templates/openproject/Postgres.Dockerfile"
                  },
                  "deploy": {
                    "requiredMountPath": "/var/lib/postgresql/data",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 5
                  },
                  "source": {
                    "repo": "orenaksakal/railway-templates",
                    "branch": "codex/railway-template-release"
                  },
                  "variables": {
                    "APP_DB": {
                      "isOptional": false,
                      "description": "Application database created during first initialization of an empty PostgreSQL volume.",
                      "defaultValue": "openproject"
                    },
                    "PGDATA": {
                      "isOptional": false,
                      "description": "PostgreSQL data directory within the persistent volume. Do not change on an existing database.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "APP_USER": {
                      "isOptional": false,
                      "description": "Dedicated application database role created during first initialization.",
                      "defaultValue": "openproject"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Initial PostgreSQL database name, or the matching database selected by the application.",
                      "defaultValue": "postgres"
                    },
                    "APP_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated password for the application database role. Preserve it with your backups.",
                      "defaultValue": "{{APP_PASSWORD}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private PostgreSQL connection URL assembled from generated credentials and service references. No manual value is needed.",
                      "defaultValue": "postgresql://openproject:${{postgres.APP_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/openproject"
                    },
                    "ENABLE_VECTOR": {
                      "isOptional": false,
                      "description": "Initialize the pgvector extension for applications that require vector storage. Keep the supplied value.",
                      "defaultValue": "false"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "PostgreSQL initialization user, or the matching connection user for the private database.",
                      "defaultValue": "postgres"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "PostgreSQL password. Generated for the database and referenced by dependent services; keep private.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
                      "defaultValue": "templates/openproject/Postgres.Dockerfile"
                    },
                    "ALLOW_APP_DATABASE_CREATION": {
                      "isOptional": false,
                      "description": "Grant database and role creation privileges required by ToolJet. Keep false for other applications.",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "fce22db3-b075-5a94-ba1f-d1525bbeaff1": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "f8ca11ec-81ff-5ece-9726-b277722e923a": {
                  "name": "openproject",
                  "build": {
                    "builder": "RAILPACK",
                    "dockerfilePath": "templates/openproject/Dockerfile"
                  },
                  "deploy": {
                    "healthcheckPath": "/health_checks/default",
                    "requiredMountPath": "/var/openproject/assets",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 5
                  },
                  "source": {
                    "repo": "orenaksakal/railway-templates",
                    "branch": "codex/railway-template-release"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
                      "defaultValue": "8080"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private PostgreSQL connection URL assembled from generated credentials and service references. No manual value is needed.",
                      "defaultValue": "${{postgres.DATABASE_URL}}"
                    },
                    "SECRET_KEY_BASE": {
                      "isOptional": false,
                      "description": "Generated application signing secret. Preserve across restarts and backup restores.",
                      "defaultValue": "{{SECRET_KEY_BASE}}"
                    },
                    "OPENPROJECT_HSTS": {
                      "isOptional": false,
                      "description": "Enable HTTP Strict Transport Security for the public HTTPS deployment.",
                      "defaultValue": "true"
                    },
                    "OPENPROJECT_HTTPS": {
                      "isOptional": false,
                      "description": "Generate HTTPS application URLs behind Railway TLS termination. Keep true.",
                      "defaultValue": "true"
                    },
                    "RAILS_MAX_THREADS": {
                      "isOptional": false,
                      "description": "Maximum Rails request threads. Tune with available memory and database capacity.",
                      "defaultValue": "8"
                    },
                    "RAILS_MIN_THREADS": {
                      "isOptional": false,
                      "description": "Minimum Rails request threads. Keep at or below RAILS_MAX_THREADS.",
                      "defaultValue": "2"
                    },
                    "PG_STARTUP_WAIT_TIME": {
                      "isOptional": false,
                      "description": "Time allowed for PostgreSQL startup before OpenProject initialization. Keep the supplied default unless startup logs require more time.",
                      "defaultValue": "60"
                    },
                    "OPENPROJECT_HOST__NAME": {
                      "isOptional": false,
                      "description": "Public OpenProject hostname without a scheme. Update when assigning a custom domain.",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
                      "defaultValue": "templates/openproject/Dockerfile"
                    },
                    "OPENPROJECT_SEED__ADMIN__USER__PASSWORD": {
                      "isOptional": false,
                      "description": "Generated initial password for the admin account. Read it after deployment, sign in, and change it promptly.",
                      "defaultValue": "{{OPENPROJECT_SEED__ADMIN__USER__PASSWORD}}"
                    },
                    "OPENPROJECT_SEED__ADMIN__USER__PASSWORD__RESET": {
                      "isOptional": false,
                      "description": "Require the seeded administrator to change the initial password at first login.",
                      "defaultValue": "true"
                    },
                    "OPENPROJECT_COLLABORATIVE__EDITING__HOCUSPOCUS__URL": {
                      "isOptional": false,
                      "description": "Public secure WebSocket URL for collaborative editing. Update with the application domain.",
                      "defaultValue": "auto"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  },
                  "volumeMounts": {
                    "dbe419fa-0c07-5e14-9cb4-ae46421a1beb": {
                      "mountPath": "/var/openproject/assets"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "openproject",
      "method": "GET",
      "path": "/health_checks/default",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-08T05:54:19.399Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-08T06:06:39.706Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_857a107989f94dd481c9",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 138,
    "typical_build_seconds": 50,
    "typical_start_seconds": 71,
    "slowest_service": "openproject"
  }
}
