{
  "manifest_version": "1.0.0",
  "template": {
    "id": "fdbccafe-326b-4262-aee8-18974a88dc20",
    "slug": "fizzy-mysql",
    "name": "Fizzy (MySQL)",
    "description": "The Kanban tracking tool for issues and ideas by 37signals",
    "url": "https://railway.com/deploy/fizzy-mysql",
    "upstream": {
      "image": "ghcr.io/basecamp/fizzy:main"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "MySQL",
      "source": {
        "image": "mysql:9.4"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "tcp_ports": [
        3306
      ],
      "http": false
    },
    {
      "name": "Web",
      "source": {
        "image": "ghcr.io/basecamp/fizzy:main"
      },
      "needs_volume": true,
      "volume_mount_path": "/rails/storage",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "MYSQLHOST",
      "service": "MySQL",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLPORT",
      "service": "MySQL",
      "description": "MySQL port.",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "MYSQLUSER",
      "service": "MySQL",
      "description": "MySQL user, used for the Data panel.",
      "secret": false,
      "strategy": "default",
      "default": "root"
    },
    {
      "key": "MYSQL_URL",
      "service": "MySQL",
      "description": "URL to connect to MySQL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLDATABASE",
      "service": "MySQL",
      "description": "Default database, used for Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQLPASSWORD",
      "service": "MySQL",
      "description": "Root password, used for Data panel.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_DATABASE",
      "service": "MySQL",
      "description": "Database to be created on image startup.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "MYSQL_PUBLIC_URL",
      "service": "MySQL",
      "description": "URL to connect to MySQL DB, used for Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "MySQL",
      "description": "Root password for MySQL DB.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "S3_BUCKET",
      "service": "Web",
      "description": "The bucket name used by Active Storage (defaults to fizzy-<env>-activestorage when unset).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_REGION",
      "service": "Web",
      "description": "The region used for AWS S3 or any S3-compatible provider (defaults to us-east-1 when unset).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SMTP_PORT",
      "service": "Web",
      "description": "The port used to connect to the SMTP server (defaults to 587).",
      "secret": false,
      "strategy": "default",
      "default": "587"
    },
    {
      "key": "MYSQL_HOST",
      "service": "Web",
      "description": "The hostname used to connect to the MySQL database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_PORT",
      "service": "Web",
      "description": "The port used to connect to the MySQL database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_USER",
      "service": "Web",
      "description": "The username used to connect to the MySQL database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "Web",
      "description": "The endpoint URL used for AWS S3 or any S3-compatible provider.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SMTP_DOMAIN",
      "service": "Web",
      "description": "The domain presented to the SMTP server when sending email.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "MULTI_TENANT",
      "service": "Web",
      "description": "The setting that enables multi-tenant mode when true (false runs Fizzy in single-tenant mode and disables public signups).",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "SMTP_ADDRESS",
      "service": "Web",
      "description": "The SMTP server used to send email.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "SMTP_PASSWORD",
      "service": "Web",
      "description": "The password used for SMTP authentication.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SMTP_USERNAME",
      "service": "Web",
      "description": "The username used for SMTP authentication.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "MYSQL_PASSWORD",
      "service": "Web",
      "description": "The password used to connect to the MySQL database.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_SSL_MODE",
      "service": "Web",
      "description": "The SSL mode used for the MySQL connection (REQUIRED enforces TLS).",
      "secret": false,
      "strategy": "default",
      "default": "REQUIRED"
    },
    {
      "key": "CSP_REPORT_ONLY",
      "service": "Web",
      "description": "The setting that enables Content Security Policy report-only mode when true.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Web",
      "description": "The user ID used when accessing volumes (set to 0 to avoid permission issues).",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "SECRET_KEY_BASE",
      "service": "Web",
      "description": "The secret key used for session signing and encryption.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DATABASE_ADAPTER",
      "service": "Web",
      "description": "The database adapter Fizzy uses (defaults to sqlite when unset).",
      "secret": false,
      "strategy": "default",
      "default": "mysql"
    },
    {
      "key": "S3_ACCESS_KEY_ID",
      "service": "Web",
      "description": "The access key used for AWS S3 or any S3-compatible provider.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MAILER_FROM_ADDRESS",
      "service": "Web",
      "description": "The email \"from\" address that Fizzy sends email from.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "S3_SECRET_ACCESS_KEY",
      "service": "Web",
      "description": "The secret access key used for AWS S3 or any S3-compatible provider.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ACTIVE_STORAGE_SERVICE",
      "service": "Web",
      "description": "The Active Storage service name defined in storage.oss.yml (defaults to local when unset).",
      "secret": false,
      "strategy": "default",
      "default": "s3"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "fizzy-mysql"
      }
    },
    "cli": "railway deploy --template fizzy-mysql",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "fdbccafe-326b-4262-aee8-18974a88dc20",
            "serializedConfig": {
              "buckets": {
                "c607aeb1-4d6a-43fb-8a54-48de82d79175": {
                  "name": "Files"
                }
              },
              "services": {
                "6f5146fd-0aa2-43ab-8bf3-55479b5c0bbe": {
                  "icon": "https://devicons.railway.app/i/mysql.svg",
                  "name": "MySQL",
                  "build": {},
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mysqld --innodb-use-native-aio=0 --disable-log-bin --performance_schema=0 --innodb-buffer-pool-size=1G",
                    "healthcheckPath": null,
                    "requiredMountPath": "/var/lib/mysql"
                  },
                  "source": {
                    "image": "mysql:9.4"
                  },
                  "variables": {
                    "MYSQLHOST": {
                      "isOptional": false,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MYSQLPORT": {
                      "isOptional": false,
                      "description": "MySQL port.",
                      "defaultValue": "3306"
                    },
                    "MYSQLUSER": {
                      "isOptional": false,
                      "description": "MySQL user, used for the Data panel.",
                      "defaultValue": "root"
                    },
                    "MYSQL_URL": {
                      "isOptional": false,
                      "description": "URL to connect to MySQL.",
                      "defaultValue": "mysql://${{ MYSQLUSER }}:${{ MYSQL_ROOT_PASSWORD }}@${{ RAILWAY_PRIVATE_DOMAIN }}:3306/${{ MYSQL_DATABASE }}"
                    },
                    "MYSQLDATABASE": {
                      "isOptional": false,
                      "description": "Default database, used for Data panel.",
                      "defaultValue": "${{ MYSQL_DATABASE }}"
                    },
                    "MYSQLPASSWORD": {
                      "isOptional": false,
                      "description": "Root password, used for Data panel.",
                      "defaultValue": "${{ MYSQL_ROOT_PASSWORD }}"
                    },
                    "MYSQL_DATABASE": {
                      "isOptional": false,
                      "description": "Database to be created on image startup.",
                      "defaultValue": "railway"
                    },
                    "MYSQL_PUBLIC_URL": {
                      "description": "URL to connect to MySQL DB, used for Data panel.",
                      "defaultValue": "mysql://${{ MYSQLUSER }}:${{ MYSQL_ROOT_PASSWORD }}@${{ RAILWAY_TCP_PROXY_DOMAIN }}:${{ RAILWAY_TCP_PROXY_PORT }}/${{ MYSQL_DATABASE }}"
                    },
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Root password for MySQL DB.",
                      "defaultValue": "{{MYSQL_ROOT_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "3306": {}
                    },
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "6f5146fd-0aa2-43ab-8bf3-55479b5c0bbe": {
                      "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
                    ]
                  }
                },
                "7382d75c-f842-4a65-8b42-a225ad85d6b0": {
                  "icon": "https://www.fizzy.do/assets/images/logo.png",
                  "name": "Web",
                  "source": {
                    "image": "ghcr.io/basecamp/fizzy:main"
                  },
                  "variables": {
                    "S3_BUCKET": {
                      "description": "The bucket name used by Active Storage (defaults to fizzy-<env>-activestorage when unset).",
                      "defaultValue": "${{Files.BUCKET}}"
                    },
                    "S3_REGION": {
                      "description": "The region used for AWS S3 or any S3-compatible provider (defaults to us-east-1 when unset).",
                      "defaultValue": "${{Files.REGION}}"
                    },
                    "SMTP_PORT": {
                      "description": "The port used to connect to the SMTP server (defaults to 587).",
                      "defaultValue": "587"
                    },
                    "MYSQL_HOST": {
                      "description": "The hostname used to connect to the MySQL database.",
                      "defaultValue": "${{MySQL.MYSQLHOST}}"
                    },
                    "MYSQL_PORT": {
                      "description": "The port used to connect to the MySQL database.",
                      "defaultValue": "${{MySQL.MYSQLPORT}}"
                    },
                    "MYSQL_USER": {
                      "description": "The username used to connect to the MySQL database.",
                      "defaultValue": "${{MySQL.MYSQLUSER}}"
                    },
                    "S3_ENDPOINT": {
                      "description": "The endpoint URL used for AWS S3 or any S3-compatible provider.",
                      "defaultValue": "${{Files.ENDPOINT}}"
                    },
                    "SMTP_DOMAIN": {
                      "description": "The domain presented to the SMTP server when sending email.",
                      "defaultValue": "{{SMTP_DOMAIN}}"
                    },
                    "MULTI_TENANT": {
                      "description": "The setting that enables multi-tenant mode when true (false runs Fizzy in single-tenant mode and disables public signups).",
                      "defaultValue": "false"
                    },
                    "SMTP_ADDRESS": {
                      "description": "The SMTP server used to send email.",
                      "defaultValue": "{{SMTP_ADDRESS}}"
                    },
                    "SMTP_PASSWORD": {
                      "description": "The password used for SMTP authentication.",
                      "defaultValue": "{{SMTP_PASSWORD}}"
                    },
                    "SMTP_USERNAME": {
                      "description": "The username used for SMTP authentication.",
                      "defaultValue": "{{SMTP_USERNAME}}"
                    },
                    "MYSQL_PASSWORD": {
                      "description": "The password used to connect to the MySQL database.",
                      "defaultValue": "${{MySQL.MYSQLPASSWORD}}"
                    },
                    "MYSQL_SSL_MODE": {
                      "description": "The SSL mode used for the MySQL connection (REQUIRED enforces TLS).",
                      "defaultValue": "REQUIRED"
                    },
                    "CSP_REPORT_ONLY": {
                      "description": "The setting that enables Content Security Policy report-only mode when true.",
                      "defaultValue": "true"
                    },
                    "RAILWAY_RUN_UID": {
                      "description": "The user ID used when accessing volumes (set to 0 to avoid permission issues).",
                      "defaultValue": "0"
                    },
                    "SECRET_KEY_BASE": {
                      "description": "The secret key used for session signing and encryption.",
                      "defaultValue": "{{SECRET_KEY_BASE}}"
                    },
                    "DATABASE_ADAPTER": {
                      "description": "The database adapter Fizzy uses (defaults to sqlite when unset).",
                      "defaultValue": "mysql"
                    },
                    "S3_ACCESS_KEY_ID": {
                      "description": "The access key used for AWS S3 or any S3-compatible provider.",
                      "defaultValue": "${{Files.ACCESS_KEY_ID}}"
                    },
                    "VAPID_PUBLIC_KEY": {
                      "isOptional": true,
                      "description": "The public VAPID key used for web push notifications (generate at https://vapidkeys.com).",
                      "defaultValue": ""
                    },
                    "VAPID_PRIVATE_KEY": {
                      "isOptional": true,
                      "description": "The private VAPID key used for web push notifications (generate at https://vapidkeys.com).",
                      "defaultValue": ""
                    },
                    "MAILER_FROM_ADDRESS": {
                      "description": "The email \"from\" address that Fizzy sends email from.",
                      "defaultValue": "{{MAILER_FROM_ADDRESS}}"
                    },
                    "S3_SECRET_ACCESS_KEY": {
                      "description": "The secret access key used for AWS S3 or any S3-compatible provider.",
                      "defaultValue": "${{Files.SECRET_ACCESS_KEY}}"
                    },
                    "ACTIVE_STORAGE_SERVICE": {
                      "description": "The Active Storage service name defined in storage.oss.yml (defaults to local when unset).",
                      "defaultValue": "s3"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "7382d75c-f842-4a65-8b42-a225ad85d6b0": {
                      "mountPath": "/rails/storage"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0"
}
