{
  "manifest_version": "1.0.0",
  "template": {
    "id": "fa565f73-e02b-4912-9c0c-abeb971fa5dc",
    "slug": "chevereto",
    "name": "Chevereto",
    "description": "Self-hosted image & video sharing — your own Imgur with albums and users.",
    "url": "https://railway.com/deploy/chevereto",
    "upstream": {
      "repo_url": "https://github.com/nomideusz/chevereto-railway"
    }
  },
  "services": [
    {
      "name": "chevereto",
      "source": {
        "repo": "https://github.com/nomideusz/chevereto-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/www/html/images",
      "http": true
    },
    {
      "name": "mysql",
      "source": {
        "image": "mysql:8"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "chevereto",
      "description": "Port for Railway healthcheck probing. Do not change.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "CHEVERETO_HTTPS",
      "service": "chevereto",
      "description": "Keep 1 — Railway serves HTTPS.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "CHEVERETO_DB_HOST",
      "service": "chevereto",
      "description": "Wired automatically to the mysql service. Don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "CHEVERETO_DB_NAME",
      "service": "chevereto",
      "description": "Don't change.",
      "secret": false,
      "strategy": "default",
      "default": "chevereto"
    },
    {
      "key": "CHEVERETO_DB_PASS",
      "service": "chevereto",
      "description": "Wired automatically to the mysql service. Don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CHEVERETO_DB_PORT",
      "service": "chevereto",
      "description": "Don't change.",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "CHEVERETO_DB_USER",
      "service": "chevereto",
      "description": "Don't change.",
      "secret": false,
      "strategy": "default",
      "default": "chevereto"
    },
    {
      "key": "CHEVERETO_HOSTNAME",
      "service": "chevereto",
      "description": "Public domain wired automatically. Don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "CHEVERETO_MAX_POST_SIZE",
      "service": "chevereto",
      "description": "Max upload request size.",
      "secret": false,
      "strategy": "default",
      "default": "2G"
    },
    {
      "key": "CHEVERETO_MAX_UPLOAD_FILE_SIZE",
      "service": "chevereto",
      "description": "Max single file size.",
      "secret": false,
      "strategy": "default",
      "default": "2G"
    },
    {
      "key": "MYSQL_USER",
      "service": "mysql",
      "description": "Don't change.",
      "secret": false,
      "strategy": "default",
      "default": "chevereto"
    },
    {
      "key": "MYSQL_DATABASE",
      "service": "mysql",
      "description": "Don't change.",
      "secret": false,
      "strategy": "default",
      "default": "chevereto"
    },
    {
      "key": "MYSQL_PASSWORD",
      "service": "mysql",
      "description": "Database password. Auto generated.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MYSQL_RANDOM_ROOT_PASSWORD",
      "service": "mysql",
      "description": "Don't change.",
      "secret": true,
      "strategy": "default",
      "default": "1"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "chevereto"
      }
    },
    "cli": "railway deploy --template chevereto",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "fa565f73-e02b-4912-9c0c-abeb971fa5dc",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "74f199f5-3a88-483b-9fa8-5fa338164569": {
                  "icon": "https://raw.githubusercontent.com/chevereto/chevereto/HEAD/content/legacy/system/favicon.png",
                  "name": "chevereto",
                  "deploy": {
                    "startCommand": "",
                    "healthcheckPath": "/chevere.svg",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/chevereto-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port for Railway healthcheck probing. Do not change.",
                      "defaultValue": "8080"
                    },
                    "CHEVERETO_HTTPS": {
                      "isOptional": false,
                      "description": "Keep 1 — Railway serves HTTPS.",
                      "defaultValue": "1"
                    },
                    "CHEVERETO_DB_HOST": {
                      "isOptional": false,
                      "description": "Wired automatically to the mysql service. Don't change.",
                      "defaultValue": "${{mysql.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "CHEVERETO_DB_NAME": {
                      "isOptional": false,
                      "description": "Don't change.",
                      "defaultValue": "chevereto"
                    },
                    "CHEVERETO_DB_PASS": {
                      "isOptional": false,
                      "description": "Wired automatically to the mysql service. Don't change.",
                      "defaultValue": "${{mysql.MYSQL_PASSWORD}}"
                    },
                    "CHEVERETO_DB_PORT": {
                      "isOptional": false,
                      "description": "Don't change.",
                      "defaultValue": "3306"
                    },
                    "CHEVERETO_DB_USER": {
                      "isOptional": false,
                      "description": "Don't change.",
                      "defaultValue": "chevereto"
                    },
                    "CHEVERETO_HOSTNAME": {
                      "isOptional": false,
                      "description": "Public domain wired automatically. Don't change.",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "CHEVERETO_MAX_POST_SIZE": {
                      "isOptional": false,
                      "description": "Max upload request size.",
                      "defaultValue": "2G"
                    },
                    "CHEVERETO_MAX_UPLOAD_FILE_SIZE": {
                      "isOptional": false,
                      "description": "Max single file size.",
                      "defaultValue": "2G"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "74f199f5-3a88-483b-9fa8-5fa338164569": {
                      "mountPath": "/var/www/html/images"
                    }
                  }
                },
                "f0ad3766-f640-4be6-a12f-95a3d6690cd0": {
                  "icon": "https://www.mysql.com/common/logos/logo-mysql-170x115.png",
                  "name": "mysql",
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mysqld --datadir=/var/lib/mysql/data",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mysql:8"
                  },
                  "variables": {
                    "MYSQL_USER": {
                      "isOptional": false,
                      "description": "Don't change.",
                      "defaultValue": "chevereto"
                    },
                    "MYSQL_DATABASE": {
                      "isOptional": false,
                      "description": "Don't change.",
                      "defaultValue": "chevereto"
                    },
                    "MYSQL_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password. Auto generated.",
                      "defaultValue": "{{MYSQL_PASSWORD}}"
                    },
                    "MYSQL_RANDOM_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Don't change.",
                      "defaultValue": "1"
                    }
                  },
                  "volumeMounts": {
                    "f0ad3766-f640-4be6-a12f-95a3d6690cd0": {
                      "mountPath": "/var/lib/mysql"
                    }
                  },
                  "haTemplateCode": "mysql-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxies",
                      "options": [
                        1,
                        2
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "HAProxy instances routing writes to the primary",
                      "defaultValue": 2
                    },
                    "replica": {
                      "label": "MySQL Replicas",
                      "options": [
                        2,
                        4,
                        6,
                        8
                      ],
                      "nodeLabel": "MySQL",
                      "description": "Requires odd count for quorum",
                      "defaultValue": 2
                    },
                    "internal": null,
                    "description": "This will convert your MySQL instance to an HA cluster with Group Replication failover and HAProxy routing to the primary.",
                    "supportedImageMajorVersions": [
                      8,
                      9
                    ]
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "chevereto",
      "method": "GET",
      "path": "/chevere.svg",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-09T00:30:32.104Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_fe58e4f5bc974a77a800",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 143,
    "typical_build_seconds": 91,
    "typical_start_seconds": 13,
    "slowest_service": "chevereto"
  }
}
