{
  "manifest_version": "1.0.0",
  "template": {
    "id": "91f04dbd-903e-4301-8020-1bcfbda47336",
    "slug": "prestashop-shop",
    "name": "PrestaShop",
    "description": "Online store platform with a catalogue, checkout and back office",
    "url": "https://railway.com/deploy/prestashop-shop",
    "upstream": {
      "image": "axllent/mailpit:latest"
    }
  },
  "services": [
    {
      "name": "MySQL",
      "source": {
        "image": "mysql:9.4"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    },
    {
      "name": "Mailpit",
      "source": {
        "image": "axllent/mailpit:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "PrestaShop",
      "source": {
        "repo": "https://github.com/gridalpha/prestashop-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/www/html",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "MYSQLHOST",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLPORT",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "MYSQLUSER",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "root"
    },
    {
      "key": "MYSQL_URL",
      "service": "MySQL",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLDATABASE",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQLPASSWORD",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_DATABASE",
      "service": "MySQL",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "MySQL",
      "description": "Superuser password, read by the server",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "TZ",
      "service": "Mailpit",
      "description": "Timestamps shown in the inbox",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "Mailpit",
      "description": "Web inbox listening port",
      "secret": false,
      "strategy": "default",
      "default": "8025"
    },
    {
      "key": "MP_UI_AUTH",
      "service": "Mailpit",
      "description": "Basic auth for the web inbox",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MP_DATABASE",
      "service": "Mailpit",
      "description": "Message store on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/data/mailpit.db"
    },
    {
      "key": "MP_MAX_MESSAGES",
      "service": "Mailpit",
      "description": "Messages kept before rotation",
      "secret": false,
      "strategy": "default",
      "default": "5000"
    },
    {
      "key": "MP_UI_BIND_ADDR",
      "service": "Mailpit",
      "description": "Dual-stack web listener",
      "secret": false,
      "strategy": "default",
      "default": "[::]:8025"
    },
    {
      "key": "MP_SMTP_BIND_ADDR",
      "service": "Mailpit",
      "description": "Dual-stack SMTP listener",
      "secret": false,
      "strategy": "default",
      "default": "[::]:1025"
    },
    {
      "key": "PRIVATE_SMTP_HOST",
      "service": "Mailpit",
      "description": "SMTP host for the shop",
      "secret": false,
      "strategy": "default",
      "default": "mailpit.railway.internal"
    },
    {
      "key": "PRIVATE_SMTP_PORT",
      "service": "Mailpit",
      "description": "SMTP port for the shop",
      "secret": false,
      "strategy": "default",
      "default": "1025"
    },
    {
      "key": "MP_SMTP_MAX_RECIPIENTS",
      "service": "Mailpit",
      "description": "Recipient cap per message",
      "secret": false,
      "strategy": "default",
      "default": "100"
    },
    {
      "key": "PORT",
      "service": "PrestaShop",
      "description": "Apache listening port",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "DB_NAME",
      "service": "PrestaShop",
      "description": "Database the shop installs into",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_PORT",
      "service": "PrestaShop",
      "description": "MySQL port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_USER",
      "service": "PrestaShop",
      "description": "MySQL account",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_PASSWD",
      "service": "PrestaShop",
      "description": "MySQL password",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_PREFIX",
      "service": "PrestaShop",
      "description": "Table name prefix",
      "secret": false,
      "strategy": "default",
      "default": "ps_"
    },
    {
      "key": "DB_SERVER",
      "service": "PrestaShop",
      "description": "Private MySQL hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PS_DOMAIN",
      "service": "PrestaShop",
      "description": "Shop domain, written at install",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SMTP_HOST",
      "service": "PrestaShop",
      "description": "Outgoing mail host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SMTP_PORT",
      "service": "PrestaShop",
      "description": "Outgoing mail port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ADMIN_MAIL",
      "service": "PrestaShop",
      "description": "Back-office login email",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "PS_COUNTRY",
      "service": "PrestaShop",
      "description": "Default shop country",
      "secret": false,
      "strategy": "default",
      "default": "us"
    },
    {
      "key": "PS_LANGUAGE",
      "service": "PrestaShop",
      "description": "Default shop language",
      "secret": false,
      "strategy": "default",
      "default": "en"
    },
    {
      "key": "PS_TIMEZONE",
      "service": "PrestaShop",
      "description": "Shop and PHP timezone",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "ADMIN_PASSWD",
      "service": "PrestaShop",
      "description": "Back-office password",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PS_ADMIN_DIR",
      "service": "PrestaShop",
      "description": "Back-office URL path segment",
      "secret": false,
      "strategy": "default",
      "default": "adminpanel"
    },
    {
      "key": "PS_SHOP_NAME",
      "service": "PrestaShop",
      "description": "Store name shown to shoppers",
      "secret": false,
      "strategy": "default",
      "default": "My PrestaShop Store"
    },
    {
      "key": "PS_ACCESS_LOG",
      "service": "PrestaShop",
      "description": "Apache access log to stdout",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "ADMIN_LASTNAME",
      "service": "PrestaShop",
      "description": "Back-office account last name",
      "secret": false,
      "strategy": "default",
      "default": "Owner"
    },
    {
      "key": "ADMIN_FIRSTNAME",
      "service": "PrestaShop",
      "description": "Back-office account first name",
      "secret": false,
      "strategy": "default",
      "default": "Shop"
    },
    {
      "key": "SMTP_ENCRYPTION",
      "service": "PrestaShop",
      "description": "SMTP encryption mode",
      "secret": false,
      "strategy": "default",
      "default": "off"
    },
    {
      "key": "PHP_MEMORY_LIMIT",
      "service": "PrestaShop",
      "description": "PHP memory limit per request",
      "secret": false,
      "strategy": "default",
      "default": "512M"
    },
    {
      "key": "PS_INSTALL_FIXTURES",
      "service": "PrestaShop",
      "description": "Install the demo catalogue",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "PHP_MAX_EXECUTION_TIME",
      "service": "PrestaShop",
      "description": "PHP script time limit",
      "secret": false,
      "strategy": "default",
      "default": "300"
    },
    {
      "key": "PHP_UPLOAD_MAX_FILESIZE",
      "service": "PrestaShop",
      "description": "Largest product image upload",
      "secret": false,
      "strategy": "default",
      "default": "64M"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "PrestaShop",
      "description": "Window for the first-boot install",
      "secret": false,
      "strategy": "default",
      "default": "900"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "PrestaShop",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "30"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "prestashop-shop"
      }
    },
    "cli": "railway deploy --template prestashop-shop",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "91f04dbd-903e-4301-8020-1bcfbda47336",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "b04a422d-7c88-4fb8-8850-cdd0fd862e2d": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mysql.svg",
                  "name": "MySQL",
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mysqld --innodb-use-native-aio=0 --disable-log-bin --performance_schema=0 --innodb-buffer-pool-size=1G",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mysql:9.4"
                  },
                  "variables": {
                    "MYSQLHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MYSQLPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "3306"
                    },
                    "MYSQLUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "root"
                    },
                    "MYSQL_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "mysql://${{ MYSQLUSER }}:${{ MYSQL_ROOT_PASSWORD }}@${{ RAILWAY_PRIVATE_DOMAIN }}:3306/${{ MYSQL_DATABASE }}"
                    },
                    "MYSQLDATABASE": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{ MYSQL_DATABASE }}"
                    },
                    "MYSQLPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{ MYSQL_ROOT_PASSWORD }}"
                    },
                    "MYSQL_DATABASE": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "railway"
                    },
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password, read by the server",
                      "defaultValue": "{{MYSQL_ROOT_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "b04a422d-7c88-4fb8-8850-cdd0fd862e2d": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                },
                "b9cf18a7-6add-40b3-8b18-28d588062e9d": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mailpit.svg",
                  "name": "Mailpit",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/livez",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "axllent/mailpit:latest"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": true,
                      "description": "Timestamps shown in the inbox",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Web inbox listening port",
                      "defaultValue": "8025"
                    },
                    "MP_UI_AUTH": {
                      "isOptional": false,
                      "description": "Basic auth for the web inbox",
                      "defaultValue": "{{MP_UI_AUTH}}"
                    },
                    "MP_DATABASE": {
                      "isOptional": false,
                      "description": "Message store on the volume",
                      "defaultValue": "/data/mailpit.db"
                    },
                    "MP_MAX_MESSAGES": {
                      "isOptional": true,
                      "description": "Messages kept before rotation",
                      "defaultValue": "5000"
                    },
                    "MP_UI_BIND_ADDR": {
                      "isOptional": false,
                      "description": "Dual-stack web listener",
                      "defaultValue": "[::]:8025"
                    },
                    "MP_SMTP_BIND_ADDR": {
                      "isOptional": false,
                      "description": "Dual-stack SMTP listener",
                      "defaultValue": "[::]:1025"
                    },
                    "PRIVATE_SMTP_HOST": {
                      "isOptional": false,
                      "description": "SMTP host for the shop",
                      "defaultValue": "mailpit.railway.internal"
                    },
                    "PRIVATE_SMTP_PORT": {
                      "isOptional": false,
                      "description": "SMTP port for the shop",
                      "defaultValue": "1025"
                    },
                    "MP_SMTP_MAX_RECIPIENTS": {
                      "isOptional": true,
                      "description": "Recipient cap per message",
                      "defaultValue": "100"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8025": {
                        "port": 8025
                      }
                    }
                  },
                  "volumeMounts": {
                    "b9cf18a7-6add-40b3-8b18-28d588062e9d": {
                      "mountPath": "/data"
                    }
                  }
                },
                "e5b823b0-945c-4b75-905b-1004e7944b9b": {
                  "icon": "https://cdn.simpleicons.org/prestashop/DF0067.svg",
                  "name": "PrestaShop",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/prestashop-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Apache listening port",
                      "defaultValue": "80"
                    },
                    "DB_NAME": {
                      "isOptional": false,
                      "description": "Database the shop installs into",
                      "defaultValue": "${{MySQL.MYSQLDATABASE}}"
                    },
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "MySQL port",
                      "defaultValue": "${{MySQL.MYSQLPORT}}"
                    },
                    "DB_USER": {
                      "isOptional": false,
                      "description": "MySQL account",
                      "defaultValue": "${{MySQL.MYSQLUSER}}"
                    },
                    "DB_PASSWD": {
                      "isOptional": false,
                      "description": "MySQL password",
                      "defaultValue": "${{MySQL.MYSQLPASSWORD}}"
                    },
                    "DB_PREFIX": {
                      "isOptional": true,
                      "description": "Table name prefix",
                      "defaultValue": "ps_"
                    },
                    "DB_SERVER": {
                      "isOptional": false,
                      "description": "Private MySQL hostname",
                      "defaultValue": "${{MySQL.MYSQLHOST}}"
                    },
                    "PS_DOMAIN": {
                      "isOptional": false,
                      "description": "Shop domain, written at install",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SMTP_HOST": {
                      "isOptional": false,
                      "description": "Outgoing mail host",
                      "defaultValue": "${{Mailpit.PRIVATE_SMTP_HOST}}"
                    },
                    "SMTP_PORT": {
                      "isOptional": false,
                      "description": "Outgoing mail port",
                      "defaultValue": "${{Mailpit.PRIVATE_SMTP_PORT}}"
                    },
                    "SMTP_USER": {
                      "isOptional": true,
                      "description": "SMTP username, blank for Mailpit",
                      "defaultValue": ""
                    },
                    "ADMIN_MAIL": {
                      "isOptional": false,
                      "description": "Back-office login email",
                      "defaultValue": "admin@example.com"
                    },
                    "PS_COUNTRY": {
                      "isOptional": true,
                      "description": "Default shop country",
                      "defaultValue": "us"
                    },
                    "PS_LANGUAGE": {
                      "isOptional": true,
                      "description": "Default shop language",
                      "defaultValue": "en"
                    },
                    "PS_TIMEZONE": {
                      "isOptional": true,
                      "description": "Shop and PHP timezone",
                      "defaultValue": "UTC"
                    },
                    "ADMIN_PASSWD": {
                      "isOptional": false,
                      "description": "Back-office password",
                      "defaultValue": "{{ADMIN_PASSWD}}"
                    },
                    "PS_ADMIN_DIR": {
                      "isOptional": true,
                      "description": "Back-office URL path segment",
                      "defaultValue": "adminpanel"
                    },
                    "PS_SHOP_NAME": {
                      "isOptional": true,
                      "description": "Store name shown to shoppers",
                      "defaultValue": "My PrestaShop Store"
                    },
                    "PS_ACCESS_LOG": {
                      "isOptional": true,
                      "description": "Apache access log to stdout",
                      "defaultValue": "0"
                    },
                    "SMTP_PASSWORD": {
                      "isOptional": true,
                      "description": "SMTP password, blank for Mailpit",
                      "defaultValue": ""
                    },
                    "ADMIN_LASTNAME": {
                      "isOptional": true,
                      "description": "Back-office account last name",
                      "defaultValue": "Owner"
                    },
                    "ADMIN_FIRSTNAME": {
                      "isOptional": true,
                      "description": "Back-office account first name",
                      "defaultValue": "Shop"
                    },
                    "SMTP_ENCRYPTION": {
                      "isOptional": false,
                      "description": "SMTP encryption mode",
                      "defaultValue": "off"
                    },
                    "PHP_MEMORY_LIMIT": {
                      "isOptional": true,
                      "description": "PHP memory limit per request",
                      "defaultValue": "512M"
                    },
                    "PS_INSTALL_FIXTURES": {
                      "isOptional": true,
                      "description": "Install the demo catalogue",
                      "defaultValue": "1"
                    },
                    "PHP_MAX_EXECUTION_TIME": {
                      "isOptional": true,
                      "description": "PHP script time limit",
                      "defaultValue": "300"
                    },
                    "PHP_UPLOAD_MAX_FILESIZE": {
                      "isOptional": true,
                      "description": "Largest product image upload",
                      "defaultValue": "64M"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "Window for the first-boot install",
                      "defaultValue": "900"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  },
                  "volumeMounts": {
                    "e5b823b0-945c-4b75-905b-1004e7944b9b": {
                      "mountPath": "/var/www/html"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Mailpit",
      "method": "GET",
      "path": "/livez",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-11T22:14:37.124Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-11T19:49:52.741Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_e538d0b27f234a409343",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 264,
    "typical_build_seconds": 61,
    "typical_start_seconds": 98,
    "slowest_service": "PrestaShop"
  }
}
