{
  "manifest_version": "1.0.0",
  "template": {
    "id": "1ea747eb-0da0-4305-a3f7-ea72d63cd969",
    "slug": "magento-1",
    "name": "Magento",
    "description": "Install Magento Version 2.4.7 + Elasticsearch",
    "url": "https://railway.com/deploy/magento-1",
    "upstream": {
      "repo_url": "https://github.com/feliperosenek/mangeto2-railway"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Magento 2.4.7",
      "source": {
        "repo": "https://github.com/feliperosenek/mangeto2-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/www",
      "http": true
    },
    {
      "name": "Elasticsearch",
      "source": {
        "repo": "https://github.com/feliperosenek/elasticsearch-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/esdata",
      "http": true
    },
    {
      "name": "MySQL 8",
      "source": {
        "repo": "https://github.com/feliperosenek/mysql-any-version-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "BASE_URL",
      "service": "Magento 2.4.7",
      "description": "Shop base URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "ADMIN_USER",
      "service": "Magento 2.4.7",
      "description": "Admin User Magento",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "MYSQL_HOST",
      "service": "Magento 2.4.7",
      "description": "MySQL host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQL_PORT",
      "service": "Magento 2.4.7",
      "description": "MySQL port",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "MYSQL_USER",
      "service": "Magento 2.4.7",
      "description": "MySQL user",
      "secret": false,
      "strategy": "default",
      "default": "root"
    },
    {
      "key": "ADMIN_EMAIL",
      "service": "Magento 2.4.7",
      "description": "Magento admin e-email",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "ADMIN_LASTNAME",
      "service": "Magento 2.4.7",
      "description": "Magento admin lastname",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "Magento 2.4.7",
      "description": "Magento admin password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MYSQL_DATABASE",
      "service": "Magento 2.4.7",
      "description": "MySQL database name",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "MYSQL_PASSWORD",
      "service": "Magento 2.4.7",
      "description": "MySQL password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ADMIN_FIRSTNAME",
      "service": "Magento 2.4.7",
      "description": "Magento admin first name",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "BACKEND_FRONTNAME",
      "service": "Magento 2.4.7",
      "description": "Define your_url/{BACKEND_FRONTNAME} to access admin page",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "ELASTICSEARCH_HOST",
      "service": "Magento 2.4.7",
      "description": "Elasticsearch host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ELASTICSEARCH_PORT",
      "service": "Magento 2.4.7",
      "description": "Elasticsearch port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "INSTALL_SAMPLE_DATA",
      "service": "Magento 2.4.7",
      "description": "Set true to install Magento sample data",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "ELASTICSEARCH_PASSWORD",
      "service": "Magento 2.4.7",
      "description": "Elasticsearch password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ELASTICSEARCH_USERNAME",
      "service": "Magento 2.4.7",
      "description": "Elasticsearch username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ELASTICSEARCH_ENABLE_AUTH",
      "service": "Magento 2.4.7",
      "description": "Elasticsearch auth to login",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "PORT",
      "service": "Elasticsearch",
      "description": "Elasticsearch port",
      "secret": false,
      "strategy": "default",
      "default": "9200"
    },
    {
      "key": "ES_JAVA_OPTS",
      "service": "Elasticsearch",
      "description": "Elasticsearch RAM options (min - max)",
      "secret": false,
      "strategy": "default",
      "default": "-Xms100m -Xmx300m"
    },
    {
      "key": "ELASTIC_PASSWORD",
      "service": "Elasticsearch",
      "description": "Elasticsearch password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "ELASTIC_USERNAME",
      "service": "Elasticsearch",
      "description": "Elasticsearch username",
      "secret": false,
      "strategy": "default",
      "default": "elastic"
    },
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "MySQL 8",
      "description": "MySQL password root",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "magento-1"
      }
    },
    "cli": "railway deploy --template magento-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "1ea747eb-0da0-4305-a3f7-ea72d63cd969",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "2a8494ff-5e03-467b-abdc-ee9c9c317c77": {
                  "icon": "https://www.svgrepo.com/show/303592/magento-2-logo.svg",
                  "name": "Magento 2.4.7",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/feliperosenek/mangeto2-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "BASE_URL": {
                      "isOptional": false,
                      "description": "Shop base URL",
                      "defaultValue": "https://${{\"Magento 2.4.7\".RAILWAY_PUBLIC_DOMAIN}}/"
                    },
                    "ADMIN_USER": {
                      "isOptional": false,
                      "description": "Admin User Magento",
                      "defaultValue": "{{ADMIN_USER}}"
                    },
                    "MYSQL_HOST": {
                      "isOptional": false,
                      "description": "MySQL host",
                      "defaultValue": "${{\"MySQL 8\".RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MYSQL_PORT": {
                      "isOptional": false,
                      "description": "MySQL port",
                      "defaultValue": "3306"
                    },
                    "MYSQL_USER": {
                      "isOptional": false,
                      "description": "MySQL user",
                      "defaultValue": "root"
                    },
                    "ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Magento admin e-email",
                      "defaultValue": "{{ADMIN_EMAIL}}"
                    },
                    "ADMIN_LASTNAME": {
                      "isOptional": false,
                      "description": "Magento admin lastname",
                      "defaultValue": "{{ADMIN_LASTNAME}}"
                    },
                    "ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Magento admin password",
                      "defaultValue": "{{ADMIN_PASSWORD}}"
                    },
                    "MYSQL_DATABASE": {
                      "isOptional": false,
                      "description": "MySQL database name",
                      "defaultValue": "railway"
                    },
                    "MYSQL_PASSWORD": {
                      "isOptional": false,
                      "description": "MySQL password",
                      "defaultValue": "${{\"MySQL 8\".MYSQL_ROOT_PASSWORD}}"
                    },
                    "ADMIN_FIRSTNAME": {
                      "isOptional": false,
                      "description": "Magento admin first name",
                      "defaultValue": "{{ADMIN_FIRSTNAME}}"
                    },
                    "BACKEND_FRONTNAME": {
                      "isOptional": false,
                      "description": "Define your_url/{BACKEND_FRONTNAME} to access admin page",
                      "defaultValue": "admin"
                    },
                    "ELASTICSEARCH_HOST": {
                      "isOptional": false,
                      "description": "Elasticsearch host",
                      "defaultValue": "${{Elasticsearch.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "ELASTICSEARCH_PORT": {
                      "isOptional": false,
                      "description": "Elasticsearch port",
                      "defaultValue": "${{Elasticsearch.PORT}}"
                    },
                    "INSTALL_SAMPLE_DATA": {
                      "isOptional": false,
                      "description": "Set true to install Magento sample data",
                      "defaultValue": "false"
                    },
                    "ELASTICSEARCH_PASSWORD": {
                      "isOptional": false,
                      "description": "Elasticsearch password",
                      "defaultValue": "${{Elasticsearch.ELASTIC_PASSWORD}}"
                    },
                    "ELASTICSEARCH_USERNAME": {
                      "isOptional": false,
                      "description": "Elasticsearch username",
                      "defaultValue": "${{Elasticsearch.ELASTIC_USERNAME}}"
                    },
                    "ELASTICSEARCH_ENABLE_AUTH": {
                      "isOptional": false,
                      "description": "Elasticsearch auth to login",
                      "defaultValue": "1"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "2a8494ff-5e03-467b-abdc-ee9c9c317c77": {
                      "mountPath": "/var/www"
                    }
                  }
                },
                "428546ac-a3c0-47fc-a927-9958213992cc": {
                  "icon": "https://www.svgrepo.com/show/353688/elasticsearch.svg",
                  "name": "Elasticsearch",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/_cluster/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/feliperosenek/elasticsearch-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Elasticsearch port",
                      "defaultValue": "9200"
                    },
                    "ES_JAVA_OPTS": {
                      "isOptional": false,
                      "description": "Elasticsearch RAM options (min - max)",
                      "defaultValue": "-Xms100m -Xmx300m"
                    },
                    "ELASTIC_PASSWORD": {
                      "isOptional": false,
                      "description": "Elasticsearch password",
                      "defaultValue": "{{ELASTIC_PASSWORD}}"
                    },
                    "ELASTIC_USERNAME": {
                      "isOptional": false,
                      "description": "Elasticsearch username",
                      "defaultValue": "elastic"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "428546ac-a3c0-47fc-a927-9958213992cc": {
                      "mountPath": "/esdata"
                    }
                  }
                },
                "f874b9d4-0d1a-4d63-adc5-dae5d39571ed": {
                  "icon": "https://www.svgrepo.com/show/373848/mysql.svg",
                  "name": "MySQL 8",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/feliperosenek/mysql-any-version-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "MySQL password root",
                      "defaultValue": "{{MYSQL_ROOT_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "f874b9d4-0d1a-4d63-adc5-dae5d39571ed": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Elasticsearch",
      "method": "GET",
      "path": "/_cluster/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0"
}
