{
  "manifest_version": "1.0.0",
  "template": {
    "id": "28cce9ad-4815-4570-8aaa-20cf3e9d468b",
    "slug": "bagisto-or-just-updated-shopify-alternat",
    "name": "Bagisto | (Just Updated) Shopify Alternative That Actually Loads",
    "description": "Shopify alternative whose admin login works and store data survives",
    "url": "https://railway.com/deploy/bagisto-or-just-updated-shopify-alternat",
    "upstream": {
      "image": "ghcr.io/bon5co/bagisto-railway:2.4.3"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "bagisto",
      "source": {
        "image": "ghcr.io/bon5co/bagisto-railway:2.4.3"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/www/bagisto/storage",
      "http": true
    },
    {
      "name": "mysql",
      "source": {
        "image": "mysql:9.4"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "DB_HOST",
      "service": "bagisto",
      "description": "Provide a value for DB_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_PASSWORD",
      "service": "bagisto",
      "description": "Provide a value for DB_PASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BAGISTO_ADMIN_EMAIL",
      "service": "bagisto",
      "description": "Provide a value for BAGISTO_ADMIN_EMAIL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "BAGISTO_ADMIN_PASSWORD",
      "service": "bagisto",
      "description": "Provide a value for BAGISTO_ADMIN_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MYSQL_DATABASE",
      "service": "mysql",
      "description": "Provide a value for MYSQL_DATABASE.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "mysql",
      "description": "Provide a value for MYSQL_ROOT_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "bagisto-or-just-updated-shopify-alternat"
      }
    },
    "cli": "railway deploy --template bagisto-or-just-updated-shopify-alternat",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "28cce9ad-4815-4570-8aaa-20cf3e9d468b",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "6258fa98-d1e1-4354-8bbd-e2ed08e03a5b": {
                  "icon": null,
                  "name": "bagisto",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/bon5co/bagisto-railway:2.4.3"
                  },
                  "variables": {
                    "DB_HOST": {
                      "isOptional": false,
                      "defaultValue": "${{mysql.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DB_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{mysql.MYSQL_ROOT_PASSWORD}}"
                    },
                    "BAGISTO_ADMIN_EMAIL": {
                      "isOptional": false,
                      "defaultValue": "admin@${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "BAGISTO_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{BAGISTO_ADMIN_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "6258fa98-d1e1-4354-8bbd-e2ed08e03a5b": {
                      "mountPath": "/var/www/bagisto/storage"
                    }
                  }
                },
                "c72dcaa7-6e6c-4525-bd90-2497c0673421": {
                  "icon": null,
                  "name": "mysql",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'MEM=$(cat /sys/fs/cgroup/memory.max 2>/dev/null || echo max); case \"$MEM\" in \"\"|max|*[!0-9]*) MEM=2147483648;; esac; BP=$((MEM / 1024 / 1024 * 50 / 100)); [ \"$BP\" -lt 128 ] && BP=128; echo \"[railway] innodb_buffer_pool_size=${BP}M\"; exec docker-entrypoint.sh mysqld --innodb-use-native-aio=0 --disable-log-bin --performance_schema=0 --innodb-buffer-pool-size=${BP}M'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mysql:9.4"
                  },
                  "variables": {
                    "MYSQL_DATABASE": {
                      "isOptional": false,
                      "defaultValue": "{{MYSQL_DATABASE}}"
                    },
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{MYSQL_ROOT_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "c72dcaa7-6e6c-4525-bd90-2497c0673421": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "bagisto",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-13T10:14:32.962Z",
  "generator_version": "0.1.0"
}
