{
  "manifest_version": "1.0.0",
  "template": {
    "id": "a6f07dd8-6a4a-40ff-8661-6dc4d80343a8",
    "slug": "GFqNIL",
    "name": "DVWA (Damn Vulnerable Web App)",
    "description": "DVWA is an intentionally vulnerable web app to help understand attacks.",
    "url": "https://railway.com/deploy/GFqNIL",
    "upstream": {
      "image": "ghcr.io/w33ts/dvwa:latest"
    }
  },
  "services": [
    {
      "name": "MySQL",
      "source": {
        "image": "mysql:9"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "tcp_ports": [
        3306
      ],
      "http": false
    },
    {
      "name": "DVWA",
      "source": {
        "image": "ghcr.io/w33ts/dvwa:latest"
      },
      "needs_volume": false,
      "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": "PORT",
      "service": "DVWA",
      "description": "Do not change.",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "DB_PORT",
      "service": "DVWA",
      "description": "Do not change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_USER",
      "service": "DVWA",
      "description": "Do not change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_SERVER",
      "service": "DVWA",
      "description": "Do not change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_DATABASE",
      "service": "DVWA",
      "description": "Do not change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_PASSWORD",
      "service": "DVWA",
      "description": "Do not change.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DEFAULT_SECURITY_LEVEL",
      "service": "DVWA",
      "description": "Default is impossible. Options are low, medium, high, and impossible. Must be exactly as stated in this description.",
      "secret": false,
      "strategy": "default",
      "default": "impossible"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "GFqNIL"
      }
    },
    "cli": "railway deploy --template GFqNIL",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "a6f07dd8-6a4a-40ff-8661-6dc4d80343a8",
            "serializedConfig": {
              "services": {
                "869a9697-a012-4e0c-b3b2-27b987f16a6d": {
                  "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:9"
                  },
                  "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": {
                    "869a9697-a012-4e0c-b3b2-27b987f16a6d": {
                      "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
                    ]
                  }
                },
                "ed5bf7ca-5e76-4fa5-b5bb-f52b690684a6": {
                  "name": "DVWA",
                  "build": {},
                  "deploy": {},
                  "source": {
                    "image": "ghcr.io/w33ts/dvwa:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Do not change.",
                      "defaultValue": "80"
                    },
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "Do not change.",
                      "defaultValue": "${{MySQL.MYSQLPORT}}"
                    },
                    "DB_USER": {
                      "isOptional": false,
                      "description": "Do not change.",
                      "defaultValue": "${{MySQL.MYSQLUSER}}"
                    },
                    "DB_SERVER": {
                      "isOptional": false,
                      "description": "Do not change.",
                      "defaultValue": "${{MySQL.MYSQLHOST}}"
                    },
                    "DB_DATABASE": {
                      "isOptional": false,
                      "description": "Do not change.",
                      "defaultValue": "${{MySQL.MYSQLDATABASE}}"
                    },
                    "DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Do not change.",
                      "defaultValue": "${{MySQL.MYSQLPASSWORD}}"
                    },
                    "RECAPTCHA_PUBLIC_KEY": {
                      "isOptional": true,
                      "description": "Used for the \"Insecure CAPTCHA\" module. Optional, but recommended. Generate keys at https://www.google.com/recaptcha/admin."
                    },
                    "RECAPTCHA_PRIVATE_KEY": {
                      "isOptional": true,
                      "description": "Used for the \"Insecure CAPTCHA\" module. Optional, but recommended. Generate keys at https://www.google.com/recaptcha/admin."
                    },
                    "DEFAULT_SECURITY_LEVEL": {
                      "isOptional": false,
                      "description": "Default is impossible. Options are low, medium, high, and impossible. Must be exactly as stated in this description.",
                      "defaultValue": "impossible"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {}
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-21T15:53:03.151Z",
  "success_rate_30d": 0.3333,
  "validation": {
    "last_run_id": "run_511b3fecb29e4e9980cf",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "SUCCESS,CRASHED"
      }
    ],
    "typical_ready_seconds": 112,
    "typical_build_seconds": 0,
    "typical_start_seconds": 15,
    "slowest_service": "DVWA"
  }
}
