{
  "manifest_version": "1.0.0",
  "template": {
    "id": "b3e59833-4e95-4d75-bd5c-a6f4301660b5",
    "slug": "didacta",
    "name": "Didacta",
    "description": "Didacta Is a Fair-Code Self-Hosted Learning Platform",
    "url": "https://railway.com/deploy/didacta",
    "upstream": {
      "image": "ghcr.io/va360labs/didacta-community:0.0.1-alpha.107"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "redis",
      "source": {
        "image": "redis:7-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "tcp_ports": [
        6379
      ],
      "http": false
    },
    {
      "name": "postgres",
      "source": {
        "image": "pgvector/pgvector:pg16"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "tcp_ports": [
        5432
      ],
      "http": false
    },
    {
      "name": "didacta",
      "source": {
        "image": "ghcr.io/va360labs/didacta-community:0.0.1-alpha.107"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "REDISHOST",
      "service": "redis",
      "description": "Private hostname used to connect to Redis over Railway's private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "redis",
      "description": "Default port Redis listens on.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "redis",
      "description": "Redis username used to authenticate with the Redis server.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "redis",
      "description": "Internal Redis connection URL for services within Railway.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPASSWORD",
      "service": "redis",
      "description": "Redis password, linked to the configured REDIS_PASSWORD variable.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "redis",
      "description": "Redis password retrieved from the connected PostgreSQL service.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PUBLIC_URL",
      "service": "redis",
      "description": "Public Redis connection URL using Railway's TCP proxy.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATA",
      "service": "postgres",
      "description": "Directory where PostgreSQL stores its database files.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "postgres",
      "description": "Private hostname used to connect to PostgreSQL over Railway's private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "postgres",
      "description": "Default port PostgreSQL listens on.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "postgres",
      "description": "PostgreSQL username, linked to the configured POSTGRES_USER variable.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "postgres",
      "description": "PostgreSQL database name, linked to the configured POSTGRES_DB variable.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "postgres",
      "description": "PostgreSQL password, linked to the configured POSTGRES_PASSWORD variable.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "postgres",
      "description": "Name of the PostgreSQL database used by the application.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "postgres",
      "description": "Internal PostgreSQL connection URL for services within Railway.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgres",
      "description": "PostgreSQL administrator username.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "postgres",
      "description": "Number of days before the generated SSL certificate expires.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Randomly generated 32-character password used to secure the PostgreSQL database.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "postgres",
      "description": "Public PostgreSQL connection URL using Railway's TCP proxy.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "didacta",
      "description": "Port the main web service listens on.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "API_PORT",
      "service": "didacta",
      "description": "Port the Didacta API server listens on.",
      "secret": false,
      "strategy": "default",
      "default": "4000"
    },
    {
      "key": "NODE_ENV",
      "service": "didacta",
      "description": "Sets the application environment to production mode.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "WEB_PORT",
      "service": "didacta",
      "description": "Port the Didacta web server listens on.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "REDIS_URL",
      "service": "didacta",
      "description": "Redis connection URL provided by the connected Redis service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SMTP_FROM",
      "service": "didacta",
      "description": "Email address used as the sender for outgoing messages.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "SMTP_HOST",
      "service": "didacta",
      "description": "SMTP server hostname used for sending emails.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "SMTP_PASS",
      "service": "didacta",
      "description": "Password used to authenticate with the SMTP server.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "SMTP_PORT",
      "service": "didacta",
      "description": "Port used by the SMTP server for outgoing email.",
      "secret": false,
      "strategy": "default",
      "default": "587"
    },
    {
      "key": "SMTP_USER",
      "service": "didacta",
      "description": "Username used to authenticate with the SMTP server.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "AUTH_SECRET",
      "service": "didacta",
      "description": "Randomly generated 64-character secret used to secure authentication and sessions.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "POSTGRES_DB",
      "service": "didacta",
      "description": "Name of the PostgreSQL database used by Didacta.",
      "secret": false,
      "strategy": "default",
      "default": "didacta"
    },
    {
      "key": "SMTP_SECURE",
      "service": "didacta",
      "description": "Disables secure SMTP mode. Set according to the requirements of your SMTP provider.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "STORAGE_ROOT",
      "service": "didacta",
      "description": "Directory where Didacta stores files and other local storage data.",
      "secret": false,
      "strategy": "default",
      "default": "/app/data/storage"
    },
    {
      "key": "POSTGRES_USER",
      "service": "didacta",
      "description": "PostgreSQL username used by Didacta.",
      "secret": false,
      "strategy": "default",
      "default": "didacta"
    },
    {
      "key": "STORAGE_DRIVER",
      "service": "didacta",
      "description": "Configures Didacta to use local filesystem storage.",
      "secret": false,
      "strategy": "default",
      "default": "local"
    },
    {
      "key": "WEB_PUBLIC_URL",
      "service": "didacta",
      "description": "Public HTTPS URL used to access the Didacta web application.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "didacta",
      "description": "PostgreSQL password retrieved from the connected PostgreSQL service.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ADMIN_DATABASE_URL",
      "service": "didacta",
      "description": "PostgreSQL connection URL used by the Didacta administration/backend services.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DIDACTA_LICENSE_KEY",
      "service": "didacta",
      "description": "License key used to activate licensed Didacta features.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DIDACTA_SETUP_TOKEN",
      "service": "didacta",
      "description": "Token used during the Didacta setup process, derived from the PostgreSQL password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DIDACTA_CORE_VERSION",
      "service": "didacta",
      "description": "Specifies the version of the Didacta Core application to use.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.1-alpha.107"
    },
    {
      "key": "WEB_PUBLIC_ALLOWED_HOSTS",
      "service": "didacta",
      "description": "Public hostname allowed by the web application.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "didacta"
      }
    },
    "cli": "railway deploy --template didacta",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "b3e59833-4e95-4d75-bd5c-a6f4301660b5",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "1aecc8ab-0c3e-484f-a1cb-ed383bcd60b2": {
                  "icon": "https://devicons.railway.app/i/redis.svg",
                  "name": "redis",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:7-alpine"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Private hostname used to connect to Redis over Railway's private network.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Default port Redis listens on.",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Redis username used to authenticate with the Redis server.",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Internal Redis connection URL for services within Railway.",
                      "defaultValue": "redis://default:${{REDIS_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Redis password, linked to the configured REDIS_PASSWORD variable.",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Redis password retrieved from the connected PostgreSQL service.",
                      "defaultValue": "${{postgres.POSTGRES_PASSWORD}}"
                    },
                    "REDIS_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public Redis connection URL using Railway's TCP proxy.",
                      "defaultValue": "redis://default:${{REDIS_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "6379": {}
                    }
                  },
                  "volumeMounts": {
                    "1aecc8ab-0c3e-484f-a1cb-ed383bcd60b2": {
                      "mountPath": "/data"
                    }
                  }
                },
                "a1cde192-0519-443a-b5d0-11d03fb7d1ab": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "pgvector/pgvector:pg16"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Directory where PostgreSQL stores its database files.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Private hostname used to connect to PostgreSQL over Railway's private network.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Default port PostgreSQL listens on.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "PostgreSQL username, linked to the configured POSTGRES_USER variable.",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "PostgreSQL database name, linked to the configured POSTGRES_DB variable.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "PostgreSQL password, linked to the configured POSTGRES_PASSWORD variable.",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Name of the PostgreSQL database used by the application.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Internal PostgreSQL connection URL for services within Railway.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "PostgreSQL administrator username.",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "Number of days before the generated SSL certificate expires.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Randomly generated 32-character password used to secure the PostgreSQL database.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public PostgreSQL connection URL using Railway's TCP proxy.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5432": {}
                    }
                  },
                  "volumeMounts": {
                    "a1cde192-0519-443a-b5d0-11d03fb7d1ab": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "b8ffbfa7-7766-40a1-a1f9-abe66ce3bcc0": {
                  "icon": "https://didacta.io/brand/anagrama.png",
                  "name": "didacta",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/va360labs/didacta-community:0.0.1-alpha.107"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the main web service listens on.",
                      "defaultValue": "3000"
                    },
                    "API_PORT": {
                      "isOptional": false,
                      "description": "Port the Didacta API server listens on.",
                      "defaultValue": "4000"
                    },
                    "NODE_ENV": {
                      "isOptional": false,
                      "description": "Sets the application environment to production mode.",
                      "defaultValue": "production"
                    },
                    "WEB_PORT": {
                      "isOptional": false,
                      "description": "Port the Didacta web server listens on.",
                      "defaultValue": "3000"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Redis connection URL provided by the connected Redis service.",
                      "defaultValue": "${{redis.REDIS_URL}}"
                    },
                    "SMTP_FROM": {
                      "isOptional": false,
                      "description": "Email address used as the sender for outgoing messages.",
                      "defaultValue": "{{SMTP_FROM}}"
                    },
                    "SMTP_HOST": {
                      "isOptional": false,
                      "description": "SMTP server hostname used for sending emails.",
                      "defaultValue": "{{SMTP_HOST}}"
                    },
                    "SMTP_PASS": {
                      "isOptional": false,
                      "description": "Password used to authenticate with the SMTP server.",
                      "defaultValue": "{{SMTP_PASS}}"
                    },
                    "SMTP_PORT": {
                      "isOptional": false,
                      "description": "Port used by the SMTP server for outgoing email.",
                      "defaultValue": "587"
                    },
                    "SMTP_USER": {
                      "isOptional": false,
                      "description": "Username used to authenticate with the SMTP server.",
                      "defaultValue": "{{SMTP_USER}}"
                    },
                    "AUTH_SECRET": {
                      "isOptional": false,
                      "description": "Randomly generated 64-character secret used to secure authentication and sessions.",
                      "defaultValue": "{{AUTH_SECRET}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Name of the PostgreSQL database used by Didacta.",
                      "defaultValue": "didacta"
                    },
                    "SMTP_SECURE": {
                      "isOptional": false,
                      "description": "Disables secure SMTP mode. Set according to the requirements of your SMTP provider.",
                      "defaultValue": "false"
                    },
                    "STORAGE_ROOT": {
                      "isOptional": false,
                      "description": "Directory where Didacta stores files and other local storage data.",
                      "defaultValue": "/app/data/storage"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "PostgreSQL username used by Didacta.",
                      "defaultValue": "didacta"
                    },
                    "STORAGE_DRIVER": {
                      "isOptional": false,
                      "description": "Configures Didacta to use local filesystem storage.",
                      "defaultValue": "local"
                    },
                    "WEB_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public HTTPS URL used to access the Didacta web application.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "PostgreSQL password retrieved from the connected PostgreSQL service.",
                      "defaultValue": "${{postgres.POSTGRES_PASSWORD}}"
                    },
                    "ADMIN_DATABASE_URL": {
                      "isOptional": false,
                      "description": "PostgreSQL connection URL used by the Didacta administration/backend services.",
                      "defaultValue": "${{postgres.DATABASE_URL}}"
                    },
                    "DIDACTA_LICENSE_KEY": {
                      "isOptional": false,
                      "description": "License key used to activate licensed Didacta features.",
                      "defaultValue": "{{DIDACTA_LICENSE_KEY}}"
                    },
                    "DIDACTA_SETUP_TOKEN": {
                      "isOptional": false,
                      "description": "Token used during the Didacta setup process, derived from the PostgreSQL password.",
                      "defaultValue": "${{postgres.POSTGRES_PASSWORD}}"
                    },
                    "DIDACTA_CORE_VERSION": {
                      "isOptional": false,
                      "description": "Specifies the version of the Didacta Core application to use.",
                      "defaultValue": "0.0.1-alpha.107"
                    },
                    "WEB_PUBLIC_ALLOWED_HOSTS": {
                      "isOptional": false,
                      "description": "Public hostname allowed by the web application.",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "b8ffbfa7-7766-40a1-a1f9-abe66ce3bcc0": {
                      "mountPath": "/app/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "didacta",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-30T04:14:48.142Z",
  "generator_version": "0.1.0"
}
