{
  "manifest_version": "1.0.0",
  "template": {
    "id": "41808e16-dc29-448e-b27c-be900441ed78",
    "slug": "cap-w-minio",
    "name": "Cap (w/ MinIO)",
    "description": "Loom alternative screen recorder, no 5 min limit, optional Resend email",
    "url": "https://railway.com/deploy/cap-w-minio",
    "upstream": {
      "image": "ghcr.io/capsoftware/cap-web:latest"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Cap Web",
      "source": {
        "image": "ghcr.io/capsoftware/cap-web:latest"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "MinIO",
      "source": {
        "image": "pgsty/minio:RELEASE.2026-08-04T00-00-00Z"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "MediaServer",
      "source": {
        "image": "ghcr.io/capsoftware/cap-media-server:latest"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "MySQL",
      "source": {
        "image": "mysql:8.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Cap Web",
      "description": "Port Cap Web listens on.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "WEB_URL",
      "service": "Cap Web",
      "description": "Public URL. Paste this into Cap desktop: Settings > General > Self-host > Cap Server URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DATABASE_URL",
      "service": "Cap Web",
      "description": "Private MySQL connection.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXTAUTH_URL",
      "service": "Cap Web",
      "description": "Same as WEB_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_PATH_STYLE",
      "service": "Cap Web",
      "description": "MinIO needs path-style URLs.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "CAP_AWS_BUCKET",
      "service": "Cap Web",
      "description": "Bucket for recordings (created automatically on first boot).",
      "secret": false,
      "strategy": "default",
      "default": "capso"
    },
    {
      "key": "CAP_AWS_REGION",
      "service": "Cap Web",
      "description": "S3 region (any value works with MinIO).",
      "secret": false,
      "strategy": "default",
      "default": "us-east-1"
    },
    {
      "key": "LOGIN_CODES_URL",
      "service": "Cap Web",
      "description": "Not read by Cap. Without Resend, open this link, then Deployments > View logs, and search 'Code:' for the newest sign-in code next to the user's email.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXTAUTH_SECRET",
      "service": "Cap Web",
      "description": "Session signing secret.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "CAP_AWS_ENDPOINT",
      "service": "Cap Web",
      "description": "S3 endpoint.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MEDIA_SERVER_URL",
      "service": "Cap Web",
      "description": "Media server address.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "CAP_AWS_ACCESS_KEY",
      "service": "Cap Web",
      "description": "MinIO access key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CAP_AWS_BUCKET_URL",
      "service": "Cap Web",
      "description": "Public bucket URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CAP_AWS_SECRET_KEY",
      "service": "Cap Web",
      "description": "MinIO secret key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_PUBLIC_ENDPOINT",
      "service": "Cap Web",
      "description": "S3 endpoint browsers use.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_INTERNAL_ENDPOINT",
      "service": "Cap Web",
      "description": "S3 endpoint Cap Web uses internally.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_ENCRYPTION_KEY",
      "service": "Cap Web",
      "description": "Encrypts stored credentials (64 hex chars).",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MEDIA_SERVER_WEBHOOK_URL",
      "service": "Cap Web",
      "description": "Where the media server calls back.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MEDIA_SERVER_WEBHOOK_SECRET",
      "service": "Cap Web",
      "description": "Shared secret with the media server.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "MinIO",
      "description": "Port MinIO listens on.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MINIO_ROOT_USER",
      "service": "MinIO",
      "description": "MinIO access key (generated per deploy).",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MINIO_PUBLIC_HOST",
      "service": "MinIO",
      "description": "Public hostname (browsers stream videos from here).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "MINIO_PUBLIC_PORT",
      "service": "MinIO",
      "description": "Public port.",
      "secret": false,
      "strategy": "default",
      "default": "443"
    },
    {
      "key": "MINIO_PRIVATE_HOST",
      "service": "MinIO",
      "description": "Private hostname.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MINIO_PRIVATE_PORT",
      "service": "MinIO",
      "description": "Internal port.",
      "secret": false,
      "strategy": "default",
      "default": "9000"
    },
    {
      "key": "MINIO_ROOT_PASSWORD",
      "service": "MinIO",
      "description": "MinIO secret key (generated per deploy).",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MINIO_PUBLIC_ENDPOINT",
      "service": "MinIO",
      "description": "Public S3 endpoint.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MINIO_PRIVATE_ENDPOINT",
      "service": "MinIO",
      "description": "Private S3 endpoint.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "MediaServer",
      "description": "Port the media server listens on.",
      "secret": false,
      "strategy": "default",
      "default": "3456"
    },
    {
      "key": "MEDIA_SERVER_WEBHOOK_SECRET",
      "service": "MediaServer",
      "description": "Shared secret for media server callbacks to Cap Web.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MYSQLHOST",
      "service": "MySQL",
      "description": "Private hostname.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLPORT",
      "service": "MySQL",
      "description": "Port.",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "MYSQLUSER",
      "service": "MySQL",
      "description": "User.",
      "secret": false,
      "strategy": "default",
      "default": "root"
    },
    {
      "key": "MYSQL_URL",
      "service": "MySQL",
      "description": "Private connection URL used by Cap Web.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLDATABASE",
      "service": "MySQL",
      "description": "Database name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQLPASSWORD",
      "service": "MySQL",
      "description": "Password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_DATABASE",
      "service": "MySQL",
      "description": "Database name.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "MySQL",
      "description": "Root password for MySQL.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "cap-w-minio"
      }
    },
    "cli": "railway deploy --template cap-w-minio",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "41808e16-dc29-448e-b27c-be900441ed78",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "03dd3253-2164-49aa-b9cd-5ed08476a62d": {
                  "icon": "https://raw.githubusercontent.com/CapSoftware/Cap/main/apps/web/public/apple-touch-icon.png",
                  "name": "Cap Web",
                  "deploy": {
                    "healthcheckPath": "/api/status",
                    "restartPolicyType": "ON_FAILURE"
                  },
                  "source": {
                    "image": "ghcr.io/capsoftware/cap-web:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Cap Web listens on.",
                      "defaultValue": "3000"
                    },
                    "WEB_URL": {
                      "isOptional": false,
                      "description": "Public URL. Paste this into Cap desktop: Settings > General > Self-host > Cap Server URL.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private MySQL connection.",
                      "defaultValue": "${{MySQL.MYSQL_URL}}"
                    },
                    "NEXTAUTH_URL": {
                      "isOptional": false,
                      "description": "Same as WEB_URL.",
                      "defaultValue": "${{WEB_URL}}"
                    },
                    "S3_PATH_STYLE": {
                      "isOptional": false,
                      "description": "MinIO needs path-style URLs.",
                      "defaultValue": "true"
                    },
                    "CAP_AWS_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket for recordings (created automatically on first boot).",
                      "defaultValue": "capso"
                    },
                    "CAP_AWS_REGION": {
                      "isOptional": false,
                      "description": "S3 region (any value works with MinIO).",
                      "defaultValue": "us-east-1"
                    },
                    "RESEND_API_KEY": {
                      "isOptional": true,
                      "description": "Optional. Resend API key (re_...) to email login codes. Leave empty and codes are printed in Cap Web's Deploy Logs instead (see LOGIN_CODES_URL)."
                    },
                    "LOGIN_CODES_URL": {
                      "isOptional": false,
                      "description": "Not read by Cap. Without Resend, open this link, then Deployments > View logs, and search 'Code:' for the newest sign-in code next to the user's email.",
                      "defaultValue": "https://railway.com/project/${{RAILWAY_PROJECT_ID}}/service/${{RAILWAY_SERVICE_ID}}?environmentId=${{RAILWAY_ENVIRONMENT_ID}}"
                    },
                    "NEXTAUTH_SECRET": {
                      "isOptional": false,
                      "description": "Session signing secret.",
                      "defaultValue": "{{NEXTAUTH_SECRET}}"
                    },
                    "CAP_AWS_ENDPOINT": {
                      "isOptional": false,
                      "description": "S3 endpoint.",
                      "defaultValue": "${{MinIO.MINIO_PUBLIC_ENDPOINT}}"
                    },
                    "MEDIA_SERVER_URL": {
                      "isOptional": false,
                      "description": "Media server address.",
                      "defaultValue": "http://${{MediaServer.RAILWAY_PRIVATE_DOMAIN}}:3456"
                    },
                    "CAP_AWS_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "MinIO access key.",
                      "defaultValue": "${{MinIO.MINIO_ROOT_USER}}"
                    },
                    "CAP_AWS_BUCKET_URL": {
                      "isOptional": false,
                      "description": "Public bucket URL.",
                      "defaultValue": "${{MinIO.MINIO_PUBLIC_ENDPOINT}}/capso"
                    },
                    "CAP_AWS_SECRET_KEY": {
                      "isOptional": false,
                      "description": "MinIO secret key.",
                      "defaultValue": "${{MinIO.MINIO_ROOT_PASSWORD}}"
                    },
                    "RESEND_FROM_DOMAIN": {
                      "isOptional": true,
                      "description": "Optional. A domain verified in Resend, e.g. example.com. Codes are sent from auth@<this domain>. Needs RESEND_API_KEY too."
                    },
                    "S3_PUBLIC_ENDPOINT": {
                      "isOptional": false,
                      "description": "S3 endpoint browsers use.",
                      "defaultValue": "${{MinIO.MINIO_PUBLIC_ENDPOINT}}"
                    },
                    "S3_INTERNAL_ENDPOINT": {
                      "isOptional": false,
                      "description": "S3 endpoint Cap Web uses internally.",
                      "defaultValue": "${{MinIO.MINIO_PRIVATE_ENDPOINT}}"
                    },
                    "DATABASE_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Encrypts stored credentials (64 hex chars).",
                      "defaultValue": "{{DATABASE_ENCRYPTION_KEY}}"
                    },
                    "MEDIA_SERVER_WEBHOOK_URL": {
                      "isOptional": false,
                      "description": "Where the media server calls back.",
                      "defaultValue": "http://${{RAILWAY_PRIVATE_DOMAIN}}:${{PORT}}"
                    },
                    "MEDIA_SERVER_WEBHOOK_SECRET": {
                      "isOptional": false,
                      "description": "Shared secret with the media server.",
                      "defaultValue": "${{MediaServer.MEDIA_SERVER_WEBHOOK_SECRET}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                },
                "6d771e4b-ff12-4a2e-8dc3-7e8211ab9931": {
                  "icon": "https://devicons.railway.com/i/minio.svg",
                  "name": "MinIO",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"exec minio server --address [::]:$MINIO_PRIVATE_PORT $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "healthcheckPath": "/minio/health/live",
                    "restartPolicyType": "ON_FAILURE"
                  },
                  "source": {
                    "image": "pgsty/minio:RELEASE.2026-08-04T00-00-00Z"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port MinIO listens on.",
                      "defaultValue": "${{MINIO_PRIVATE_PORT}}"
                    },
                    "MINIO_ROOT_USER": {
                      "isOptional": false,
                      "description": "MinIO access key (generated per deploy).",
                      "defaultValue": "{{MINIO_ROOT_USER}}"
                    },
                    "MINIO_PUBLIC_HOST": {
                      "isOptional": false,
                      "description": "Public hostname (browsers stream videos from here).",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "MINIO_PUBLIC_PORT": {
                      "isOptional": false,
                      "description": "Public port.",
                      "defaultValue": "443"
                    },
                    "MINIO_PRIVATE_HOST": {
                      "isOptional": false,
                      "description": "Private hostname.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MINIO_PRIVATE_PORT": {
                      "isOptional": false,
                      "description": "Internal port.",
                      "defaultValue": "9000"
                    },
                    "MINIO_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "MinIO secret key (generated per deploy).",
                      "defaultValue": "{{MINIO_ROOT_PASSWORD}}"
                    },
                    "MINIO_PUBLIC_ENDPOINT": {
                      "isOptional": false,
                      "description": "Public S3 endpoint.",
                      "defaultValue": "https://${{MINIO_PUBLIC_HOST}}:${{MINIO_PUBLIC_PORT}}"
                    },
                    "MINIO_PRIVATE_ENDPOINT": {
                      "isOptional": false,
                      "description": "Private S3 endpoint.",
                      "defaultValue": "http://${{MINIO_PRIVATE_HOST}}:${{MINIO_PRIVATE_PORT}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:9000": {
                        "port": 9000
                      }
                    }
                  },
                  "volumeMounts": {
                    "7ffe96f8-472c-400c-94a7-d303e7a57106": {
                      "mountPath": "/data"
                    }
                  }
                },
                "976626dc-f973-4c4f-96ac-6a575c7cc502": {
                  "icon": "https://cdn.simpleicons.org/ffmpeg",
                  "name": "MediaServer",
                  "deploy": {
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE"
                  },
                  "source": {
                    "image": "ghcr.io/capsoftware/cap-media-server:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the media server listens on.",
                      "defaultValue": "3456"
                    },
                    "MEDIA_SERVER_WEBHOOK_SECRET": {
                      "isOptional": false,
                      "description": "Shared secret for media server callbacks to Cap Web.",
                      "defaultValue": "{{MEDIA_SERVER_WEBHOOK_SECRET}}"
                    }
                  }
                },
                "e389e0f9-8019-446f-9e4f-14fa9efc8faf": {
                  "icon": "https://devicons.railway.com/i/mysql.svg",
                  "name": "MySQL",
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mysqld --innodb-use-native-aio=0 --disable-log-bin --performance_schema=0",
                    "restartPolicyType": "ON_FAILURE"
                  },
                  "source": {
                    "image": "mysql:8.0"
                  },
                  "variables": {
                    "MYSQLHOST": {
                      "isOptional": false,
                      "description": "Private hostname.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MYSQLPORT": {
                      "isOptional": false,
                      "description": "Port.",
                      "defaultValue": "3306"
                    },
                    "MYSQLUSER": {
                      "isOptional": false,
                      "description": "User.",
                      "defaultValue": "root"
                    },
                    "MYSQL_URL": {
                      "isOptional": false,
                      "description": "Private connection URL used by Cap Web.",
                      "defaultValue": "mysql://${{MYSQLUSER}}:${{MYSQL_ROOT_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:3306/${{MYSQL_DATABASE}}"
                    },
                    "MYSQLDATABASE": {
                      "isOptional": false,
                      "description": "Database name.",
                      "defaultValue": "${{MYSQL_DATABASE}}"
                    },
                    "MYSQLPASSWORD": {
                      "isOptional": false,
                      "description": "Password.",
                      "defaultValue": "${{MYSQL_ROOT_PASSWORD}}"
                    },
                    "MYSQL_DATABASE": {
                      "isOptional": false,
                      "description": "Database name.",
                      "defaultValue": "railway"
                    },
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Root password for MySQL.",
                      "defaultValue": "{{MYSQL_ROOT_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "2125bf45-1985-4fbd-9eb5-9a5274eb8b37": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Cap Web",
      "method": "GET",
      "path": "/api/status",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-11-03T16:15:12.305Z",
  "generator_version": "0.1.0"
}
