{
  "manifest_version": "1.0.0",
  "template": {
    "id": "8ed59a3f-c4f5-41cc-bf78-b0ce2343b355",
    "slug": "G_bkYr",
    "name": "Monica",
    "description": "Personal CRM. Document your life.",
    "url": "https://railway.com/deploy/G_bkYr",
    "upstream": {
      "image": "monica:apache"
    }
  },
  "services": [
    {
      "name": "MySQL",
      "source": {
        "image": "mysql"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "tcp_ports": [
        3306
      ],
      "http": false
    },
    {
      "name": "Monica",
      "source": {
        "image": "monica:apache"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/www/html/storage",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "MYSQLHOST",
      "service": "MySQL",
      "description": "Railway TCP Proxy Domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQLPORT",
      "service": "MySQL",
      "description": "MySQL TCP Proxy port.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "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 DB, used for Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "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": "MYSQLPRIVATEHOST",
      "service": "MySQL",
      "description": "Provide a value for MYSQLPRIVATEHOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLPRIVATEPORT",
      "service": "MySQL",
      "description": "Provide a value for MYSQLPRIVATEPORT.",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "MYSQL_PRIVATE_URL",
      "service": "MySQL",
      "description": "URL to connect to MySQL DB, used for Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "MySQL",
      "description": "Root password for MySQL DB.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "Monica",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "APP_ENV",
      "service": "Monica",
      "description": "Provide a value for APP_ENV.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "APP_KEY",
      "service": "Monica",
      "description": "Provide a value for APP_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "APP_URL",
      "service": "Monica",
      "description": "Provide a value for APP_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DB_HOST",
      "service": "Monica",
      "description": "Provide a value for DB_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_PORT",
      "service": "Monica",
      "description": "Provide a value for DB_PORT.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "APP_DEBUG",
      "service": "Monica",
      "description": "Set to 'true' to show debug information on errors. For production, set to 'false'",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "DAV_ENABLED",
      "service": "Monica",
      "description": "Enable DAV support",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DB_DATABASE",
      "service": "Monica",
      "description": "Provide a value for DB_DATABASE.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_PASSWORD",
      "service": "Monica",
      "description": "Provide a value for DB_PASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_USERNAME",
      "service": "Monica",
      "description": "Provide a value for DB_USERNAME.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LOG_CHANNEL",
      "service": "Monica",
      "description": "Frequency of creation of new log files.",
      "secret": false,
      "strategy": "default",
      "default": "daily"
    },
    {
      "key": "MAIL_MAILER",
      "service": "Monica",
      "description": "Provide a value for MAIL_MAILER.",
      "secret": false,
      "strategy": "default",
      "default": "smtp"
    },
    {
      "key": "MFA_ENABLED",
      "service": "Monica",
      "description": "Allows two-factor authentication feature on your instance",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "CACHE_DRIVER",
      "service": "Monica",
      "description": "Provide a value for CACHE_DRIVER.",
      "secret": false,
      "strategy": "default",
      "default": "database"
    },
    {
      "key": "CHECK_VERSION",
      "service": "Monica",
      "description": "When set to 'true', will check Monica version daily. If a new version is available, it will display in the app UI.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DB_CONNECTION",
      "service": "Monica",
      "description": "Provide a value for DB_CONNECTION.",
      "secret": false,
      "strategy": "default",
      "default": "mysql"
    },
    {
      "key": "ENABLE_WEATHER",
      "service": "Monica",
      "description": "Set to 'true' to show weather on contact profile pages. Weather can only be fetched using latitude/longitude, so ENABLE_GEOLOCATION=true is required if you want to use this feature. Set API key in WEATHERAPI_KEY variable.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "MAIL_FROM_NAME",
      "service": "Monica",
      "description": "Outgoing emails will be sent with this value as the sender's name",
      "secret": false,
      "strategy": "default",
      "default": "Monica"
    },
    {
      "key": "SESSION_DRIVER",
      "service": "Monica",
      "description": "Provide a value for SESSION_DRIVER.",
      "secret": false,
      "strategy": "default",
      "default": "database"
    },
    {
      "key": "WEATHERAPI_KEY",
      "service": "Monica",
      "description": "Darksky API key from www.weatherapi.com; needs ENABLE_WEATHER=true",
      "secret": true,
      "strategy": "default",
      "default": "null"
    },
    {
      "key": "QUEUE_CONNECTION",
      "service": "Monica",
      "description": "Provide a value for QUEUE_CONNECTION.",
      "secret": false,
      "strategy": "default",
      "default": "sync"
    },
    {
      "key": "SESSION_LIFETIME",
      "service": "Monica",
      "description": "Provide a value for SESSION_LIFETIME.",
      "secret": false,
      "strategy": "default",
      "default": "120"
    },
    {
      "key": "APP_DISABLE_SIGNUP",
      "service": "Monica",
      "description": "Set to 'false' to allow users to register on your instance",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ENABLE_GEOLOCATION",
      "service": "Monica",
      "description": "Set to 'true' to enable geolocation services, which translates addresses to GPS coordinates. *Must be set to 'true' if you want to enable Weather functionality.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "APP_SIGNUP_DOUBLE_OPTIN",
      "service": "Monica",
      "description": "Set to 'true' to enable user email verification",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "DEFAULT_MAX_UPLOAD_SIZE",
      "service": "Monica",
      "description": "Maximum allowed size for uploaded files in kilobytes",
      "secret": false,
      "strategy": "default",
      "default": "10240"
    },
    {
      "key": "DEFAULT_MAX_STORAGE_SIZE",
      "service": "Monica",
      "description": "Maximum allowed storage size per account, in megabytes",
      "secret": false,
      "strategy": "default",
      "default": "4096"
    },
    {
      "key": "RATE_LIMIT_PER_MINUTE_API",
      "service": "Monica",
      "description": "Provide a value for RATE_LIMIT_PER_MINUTE_API.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "APP_EMAIL_NEW_USERS_NOTIFICATION",
      "service": "Monica",
      "description": "Configure an email address to send new user registration notifications to",
      "secret": false,
      "strategy": "default",
      "default": "null"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "G_bkYr"
      }
    },
    "cli": "railway deploy --template G_bkYr",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "8ed59a3f-c4f5-41cc-bf78-b0ce2343b355",
            "serializedConfig": {
              "services": {
                "48576691-d086-4d90-8552-77df5e6fa9c9": {
                  "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",
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "mysql"
                  },
                  "variables": {
                    "MYSQLHOST": {
                      "isOptional": false,
                      "description": "Railway TCP Proxy Domain.",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_DOMAIN}}"
                    },
                    "MYSQLPORT": {
                      "isOptional": false,
                      "description": "MySQL TCP Proxy port.",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_PORT}}"
                    },
                    "MYSQLUSER": {
                      "isOptional": false,
                      "description": "MySQL user, used for the Data panel.",
                      "defaultValue": "root"
                    },
                    "MYSQL_URL": {
                      "isOptional": false,
                      "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 }}"
                    },
                    "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"
                    },
                    "MYSQLPRIVATEHOST": {
                      "description": "",
                      "defaultValue": "${{ RAILWAY_PRIVATE_DOMAIN }}"
                    },
                    "MYSQLPRIVATEPORT": {
                      "defaultValue": "3306"
                    },
                    "MYSQL_PRIVATE_URL": {
                      "isOptional": false,
                      "description": "URL to connect to MySQL DB, used for Data panel.",
                      "defaultValue": "mysql://${{ MYSQLUSER }}:${{ MYSQL_ROOT_PASSWORD }}@${{ RAILWAY_PRIVATE_DOMAIN }}:3306/${{ MYSQL_DATABASE }}"
                    },
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Root password for MySQL DB.",
                      "defaultValue": "{{MYSQL_ROOT_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "3306": {}
                    }
                  },
                  "volumeMounts": {
                    "48576691-d086-4d90-8552-77df5e6fa9c9": {
                      "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
                    ]
                  }
                },
                "a8a3cf94-3eb5-4359-9ff3-dc6a906fd08b": {
                  "icon": "https://gridonyx.com/assets/img/monica-logo.svg",
                  "name": "Monica",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"sleep 3 && /usr/local/bin/entrypoint.sh apache2-foreground\""
                  },
                  "source": {
                    "image": "monica:apache"
                  },
                  "variables": {
                    "PORT": {
                      "defaultValue": "80"
                    },
                    "APP_ENV": {
                      "defaultValue": "production"
                    },
                    "APP_KEY": {
                      "defaultValue": "{{APP_KEY}}"
                    },
                    "APP_URL": {
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DB_HOST": {
                      "description": "",
                      "defaultValue": "${{MySQL.MYSQLPRIVATEHOST}}"
                    },
                    "DB_PORT": {
                      "description": "",
                      "defaultValue": "${{MySQL.MYSQLPRIVATEPORT}}"
                    },
                    "APP_DEBUG": {
                      "description": "Set to 'true' to show debug information on errors. For production, set to 'false'",
                      "defaultValue": "false"
                    },
                    "MAIL_HOST": {
                      "isOptional": true,
                      "description": "Your mail provider's hostname",
                      "defaultValue": ""
                    },
                    "MAIL_PORT": {
                      "isOptional": true,
                      "description": "Your mail provider's SMTP port",
                      "defaultValue": ""
                    },
                    "DAV_ENABLED": {
                      "description": "Enable DAV support",
                      "defaultValue": "true"
                    },
                    "DB_DATABASE": {
                      "description": "",
                      "defaultValue": "${{MySQL.MYSQL_DATABASE}}"
                    },
                    "DB_PASSWORD": {
                      "description": "",
                      "defaultValue": "${{MySQL.MYSQLPASSWORD}}"
                    },
                    "DB_USERNAME": {
                      "description": "",
                      "defaultValue": "${{MySQL.MYSQLUSER}}"
                    },
                    "LOG_CHANNEL": {
                      "description": "Frequency of creation of new log files.",
                      "defaultValue": "daily"
                    },
                    "MAIL_MAILER": {
                      "defaultValue": "smtp"
                    },
                    "MFA_ENABLED": {
                      "description": "Allows two-factor authentication feature on your instance",
                      "defaultValue": "true"
                    },
                    "CACHE_DRIVER": {
                      "defaultValue": "database"
                    },
                    "CHECK_VERSION": {
                      "description": "When set to 'true', will check Monica version daily. If a new version is available, it will display in the app UI.",
                      "defaultValue": "true"
                    },
                    "DB_CONNECTION": {
                      "defaultValue": "mysql"
                    },
                    "MAIL_PASSWORD": {
                      "isOptional": true,
                      "description": "Your email account password",
                      "defaultValue": ""
                    },
                    "MAIL_USERNAME": {
                      "isOptional": true,
                      "description": "Email account username",
                      "defaultValue": ""
                    },
                    "ENABLE_WEATHER": {
                      "description": "Set to 'true' to show weather on contact profile pages. Weather can only be fetched using latitude/longitude, so ENABLE_GEOLOCATION=true is required if you want to use this feature. Set API key in WEATHERAPI_KEY variable.",
                      "defaultValue": "false"
                    },
                    "MAIL_FROM_NAME": {
                      "description": "Outgoing emails will be sent with this value as the sender's name",
                      "defaultValue": "Monica"
                    },
                    "SESSION_DRIVER": {
                      "defaultValue": "database"
                    },
                    "WEATHERAPI_KEY": {
                      "isOptional": true,
                      "description": "Darksky API key from www.weatherapi.com; needs ENABLE_WEATHER=true",
                      "defaultValue": "null"
                    },
                    "MAIL_ENCRYPTION": {
                      "isOptional": true,
                      "description": "Encryption level from your email provider",
                      "defaultValue": ""
                    },
                    "QUEUE_CONNECTION": {
                      "defaultValue": "sync"
                    },
                    "SESSION_LIFETIME": {
                      "defaultValue": "120"
                    },
                    "MAIL_FROM_ADDRESS": {
                      "isOptional": true,
                      "description": "Outgoing emails will be sent from this address",
                      "defaultValue": ""
                    },
                    "APP_DISABLE_SIGNUP": {
                      "description": "Set to 'false' to allow users to register on your instance",
                      "defaultValue": "true"
                    },
                    "ENABLE_GEOLOCATION": {
                      "description": "Set to 'true' to enable geolocation services, which translates addresses to GPS coordinates. *Must be set to 'true' if you want to enable Weather functionality.",
                      "defaultValue": "false"
                    },
                    "APP_SIGNUP_DOUBLE_OPTIN": {
                      "description": "Set to 'true' to enable user email verification",
                      "defaultValue": "false"
                    },
                    "DEFAULT_MAX_UPLOAD_SIZE": {
                      "description": "Maximum allowed size for uploaded files in kilobytes",
                      "defaultValue": "10240"
                    },
                    "DEFAULT_MAX_STORAGE_SIZE": {
                      "description": "Maximum allowed storage size per account, in megabytes",
                      "defaultValue": "4096"
                    },
                    "RATE_LIMIT_PER_MINUTE_API": {
                      "description": "",
                      "defaultValue": "60"
                    },
                    "APP_EMAIL_NEW_USERS_NOTIFICATION": {
                      "isOptional": true,
                      "description": "Configure an email address to send new user registration notifications to",
                      "defaultValue": "null"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "a8a3cf94-3eb5-4359-9ff3-dc6a906fd08b": {
                      "mountPath": "/var/www/html/storage"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T06:11:12.792Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_8208c21691ab4c69a014",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 66,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "Monica"
  }
}
