{
  "manifest_version": "1.0.0",
  "template": {
    "id": "7a297adc-387e-430a-ad99-f6f186725ff8",
    "slug": "mautic-production",
    "name": "Mautic Production | Open-Source Marketing Automation, HubSpot Alternative",
    "description": "Marketing automation with the cron and workers that make campaigns fire",
    "url": "https://railway.com/deploy/mautic-production",
    "upstream": {
      "repo_url": "https://github.com/nomideusz/mautic-railway"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Mautic",
      "source": {
        "repo": "https://github.com/nomideusz/mautic-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "MySQL",
      "source": {
        "image": "mysql:8.4.11"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Mautic",
      "description": "Port Apache listens on - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "MAUTIC_URL",
      "service": "Mautic",
      "description": "Site URL written at install. For a custom domain later, change it under Settings > Configuration",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "MAUTIC_DB_HOST",
      "service": "Mautic",
      "description": "MySQL host on the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MAUTIC_DB_PORT",
      "service": "Mautic",
      "description": "MySQL port",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "MAUTIC_DB_USER",
      "service": "Mautic",
      "description": "MySQL user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MAUTIC_ADMIN_EMAIL",
      "service": "Mautic",
      "description": "Your email - the admin account is created with it on first boot",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "MAUTIC_DB_DATABASE",
      "service": "Mautic",
      "description": "MySQL database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MAUTIC_DB_PASSWORD",
      "service": "Mautic",
      "description": "MySQL password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MAUTIC_ADMIN_PASSWORD",
      "service": "Mautic",
      "description": "Admin password (username admin, or sign in with your email). Change it after first login",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MAUTIC_MESSENGER_DSN_HIT",
      "service": "Mautic",
      "description": "Page-hit and email-open queue, consumed by the worker in this container",
      "secret": false,
      "strategy": "default",
      "default": "doctrine://default"
    },
    {
      "key": "MAUTIC_MESSENGER_DSN_EMAIL",
      "service": "Mautic",
      "description": "Email queue, consumed by the worker in this container",
      "secret": false,
      "strategy": "default",
      "default": "doctrine://default"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "Mautic",
      "description": "First boot installs Mautic before the login page answers",
      "secret": false,
      "strategy": "default",
      "default": "600"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Mautic",
      "description": "Lets the queue workers finish the message they are sending on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "MYSQL_USER",
      "service": "MySQL",
      "description": "Database user",
      "secret": false,
      "strategy": "default",
      "default": "mautic"
    },
    {
      "key": "MYSQL_DATABASE",
      "service": "MySQL",
      "description": "Database name",
      "secret": false,
      "strategy": "default",
      "default": "mautic"
    },
    {
      "key": "MYSQL_PASSWORD",
      "service": "MySQL",
      "description": "Auto-generated database password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "MySQL",
      "description": "Auto-generated root password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "MySQL",
      "description": "Lets MySQL shut down cleanly on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "30"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "mautic-production"
      }
    },
    "cli": "railway deploy --template mautic-production",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "7a297adc-387e-430a-ad99-f6f186725ff8",
            "serializedConfig": {
              "services": {
                "0a9f9bd3-4ac9-4530-ab16-57ac127a3f21": {
                  "icon": "https://cdn.jsdelivr.net/gh/nomideusz/mautic-railway/icon.svg",
                  "name": "Mautic",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/s/login",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/mautic-railway"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Apache listens on - leave as is",
                      "defaultValue": "80"
                    },
                    "MAUTIC_URL": {
                      "isOptional": false,
                      "description": "Site URL written at install. For a custom domain later, change it under Settings > Configuration",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "MAUTIC_DB_HOST": {
                      "isOptional": false,
                      "description": "MySQL host on the private network",
                      "defaultValue": "${{MySQL.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MAUTIC_DB_PORT": {
                      "isOptional": false,
                      "description": "MySQL port",
                      "defaultValue": "3306"
                    },
                    "MAUTIC_DB_USER": {
                      "isOptional": false,
                      "description": "MySQL user",
                      "defaultValue": "${{MySQL.MYSQL_USER}}"
                    },
                    "MAUTIC_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Your email - the admin account is created with it on first boot",
                      "defaultValue": "{{MAUTIC_ADMIN_EMAIL}}"
                    },
                    "MAUTIC_DB_DATABASE": {
                      "isOptional": false,
                      "description": "MySQL database",
                      "defaultValue": "${{MySQL.MYSQL_DATABASE}}"
                    },
                    "MAUTIC_DB_PASSWORD": {
                      "isOptional": false,
                      "description": "MySQL password",
                      "defaultValue": "${{MySQL.MYSQL_PASSWORD}}"
                    },
                    "MAUTIC_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Admin password (username admin, or sign in with your email). Change it after first login",
                      "defaultValue": "{{MAUTIC_ADMIN_PASSWORD}}"
                    },
                    "MAUTIC_MESSENGER_DSN_HIT": {
                      "isOptional": false,
                      "description": "Page-hit and email-open queue, consumed by the worker in this container",
                      "defaultValue": "doctrine://default"
                    },
                    "MAUTIC_MESSENGER_DSN_EMAIL": {
                      "isOptional": false,
                      "description": "Email queue, consumed by the worker in this container",
                      "defaultValue": "doctrine://default"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "First boot installs Mautic before the login page answers",
                      "defaultValue": "600"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Lets the queue workers finish the message they are sending on redeploy",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "8fcaaa3a-a831-4b93-b40d-8a96e12e19e1": {
                      "mountPath": "/data"
                    }
                  }
                },
                "7cbc9525-46b3-442b-90c7-9f01192dc288": {
                  "icon": "https://devicons.railway.app/i/mysql.svg",
                  "name": "MySQL",
                  "build": {},
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mysqld --datadir=/var/lib/mysql/data --performance-schema=OFF",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mysql:8.4.11"
                  },
                  "variables": {
                    "MYSQL_USER": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "mautic"
                    },
                    "MYSQL_DATABASE": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "mautic"
                    },
                    "MYSQL_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated database password",
                      "defaultValue": "{{MYSQL_PASSWORD}}"
                    },
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated root password",
                      "defaultValue": "{{MYSQL_ROOT_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Lets MySQL shut down cleanly on redeploy",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "ec90f090-128b-40cd-95d5-b453002e457e": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Mautic",
      "method": "GET",
      "path": "/s/login",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-10-14T10:14:43.564Z",
  "generator_version": "0.1.0"
}
