{
  "manifest_version": "1.0.0",
  "template": {
    "id": "44f0ab0e-8145-4c26-b15c-9b5d1ee4c0f2",
    "slug": "coral",
    "name": "Coral",
    "description": "Discussions, Journalist Identification, Moderation Tools with AI Support",
    "url": "https://railway.com/deploy/coral",
    "upstream": {
      "image": "coralproject/talk:9.7.0"
    }
  },
  "services": [
    {
      "name": "mongo",
      "source": {
        "image": "mongo:4"
      },
      "needs_volume": true,
      "volume_mount_path": "/data/db",
      "tcp_ports": [
        27017
      ],
      "http": false
    },
    {
      "name": "coral",
      "source": {
        "image": "coralproject/talk:9.7.0"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "redis",
      "source": {
        "image": "redis:6"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "tcp_ports": [
        6379
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "MONGOHOST",
      "service": "mongo",
      "description": "Private hostname used to connect to MongoDB over Railway's private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MONGOPORT",
      "service": "mongo",
      "description": "Default port MongoDB listens on.",
      "secret": false,
      "strategy": "default",
      "default": "27017"
    },
    {
      "key": "MONGOUSER",
      "service": "mongo",
      "description": "MongoDB username, linked to the configured root username.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGO_URL",
      "service": "mongo",
      "description": "Internal MongoDB connection URL for services within Railway.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DATABASE_URL",
      "service": "mongo",
      "description": "MongoDB connection URL provided through the standard DATABASE_URL variable.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MONGODATABASE",
      "service": "mongo",
      "description": "Name of the MongoDB database used by the application.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "MONGOPASSWORD",
      "service": "mongo",
      "description": "MongoDB password, linked to the configured root password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGO_PUBLIC_URL",
      "service": "mongo",
      "description": "Public MongoDB connection URL using Railway's TCP proxy.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGO_INITDB_ROOT_PASSWORD",
      "service": "mongo",
      "description": "Randomly generated 16-character password for the MongoDB root administrator account.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MONGO_INITDB_ROOT_USERNAME",
      "service": "mongo",
      "description": "Username for the MongoDB root administrator account.",
      "secret": false,
      "strategy": "default",
      "default": "${MONGO_USER}"
    },
    {
      "key": "PORT",
      "service": "coral",
      "description": "Port the application server listens on.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "NODE_ENV",
      "service": "coral",
      "description": "Sets the Node.js environment to production mode.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "REDIS_URI",
      "service": "coral",
      "description": "Redis connection URL provided by the connected Redis service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGODB_URI",
      "service": "coral",
      "description": "MongoDB connection URL provided by the connected MongoDB service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SIGNING_SECRET",
      "service": "coral",
      "description": "Randomly generated 45-character secret used to sign and secure application data.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "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": "Randomly generated 32-character password used to secure the Redis server.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "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"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "coral"
      }
    },
    "cli": "railway deploy --template coral",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "44f0ab0e-8145-4c26-b15c-9b5d1ee4c0f2",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "6ea5ea5e-77f0-4a49-bc2a-8963742a0b72": {
                  "icon": "https://devicons.railway.app/i/mongodb.svg",
                  "name": "mongo",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mongo:4"
                  },
                  "variables": {
                    "MONGOHOST": {
                      "isOptional": false,
                      "description": "Private hostname used to connect to MongoDB over Railway's private network.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MONGOPORT": {
                      "isOptional": false,
                      "description": "Default port MongoDB listens on.",
                      "defaultValue": "27017"
                    },
                    "MONGOUSER": {
                      "isOptional": false,
                      "description": "MongoDB username, linked to the configured root username.",
                      "defaultValue": "${{MONGO_INITDB_ROOT_USERNAME}}"
                    },
                    "MONGO_URL": {
                      "isOptional": false,
                      "description": "Internal MongoDB connection URL for services within Railway.",
                      "defaultValue": "mongodb://${{MONGO_INITDB_ROOT_USERNAME}}:${{MONGO_INITDB_ROOT_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:27017"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "MongoDB connection URL provided through the standard DATABASE_URL variable.",
                      "defaultValue": "mongodb://${{MONGO_INITDB_ROOT_USERNAME}}:${{MONGO_INITDB_ROOT_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:27017"
                    },
                    "MONGODATABASE": {
                      "isOptional": false,
                      "description": "Name of the MongoDB database used by the application.",
                      "defaultValue": "railway"
                    },
                    "MONGOPASSWORD": {
                      "isOptional": false,
                      "description": "MongoDB password, linked to the configured root password.",
                      "defaultValue": "${{MONGO_INITDB_ROOT_PASSWORD}}"
                    },
                    "MONGO_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public MongoDB connection URL using Railway's TCP proxy.",
                      "defaultValue": "mongodb://${{MONGO_INITDB_ROOT_USERNAME}}:${{MONGO_INITDB_ROOT_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}"
                    },
                    "MONGO_INITDB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Randomly generated 16-character password for the MongoDB root administrator account.",
                      "defaultValue": "{{MONGO_INITDB_ROOT_PASSWORD}}"
                    },
                    "MONGO_INITDB_ROOT_USERNAME": {
                      "isOptional": false,
                      "description": "Username for the MongoDB root administrator account.",
                      "defaultValue": "${MONGO_USER}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "27017": {}
                    }
                  },
                  "volumeMounts": {
                    "6ea5ea5e-77f0-4a49-bc2a-8963742a0b72": {
                      "mountPath": "/data/db"
                    }
                  }
                },
                "c975f098-8192-436f-a08b-c85fc8c0e12f": {
                  "icon": "https://cdn.jsdelivr.net/gh/selfhst/icons/svg/voxmedia-coral.svg",
                  "name": "coral",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "coralproject/talk:9.7.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the application server listens on.",
                      "defaultValue": "3000"
                    },
                    "NODE_ENV": {
                      "isOptional": false,
                      "description": "Sets the Node.js environment to production mode.",
                      "defaultValue": "production"
                    },
                    "REDIS_URI": {
                      "isOptional": false,
                      "description": "Redis connection URL provided by the connected Redis service.",
                      "defaultValue": "${{redis.REDIS_URL}}"
                    },
                    "MONGODB_URI": {
                      "isOptional": false,
                      "description": "MongoDB connection URL provided by the connected MongoDB service.",
                      "defaultValue": "${{mongo.MONGO_URL}}"
                    },
                    "SIGNING_SECRET": {
                      "isOptional": false,
                      "description": "Randomly generated 45-character secret used to sign and secure application data.",
                      "defaultValue": "{{SIGNING_SECRET}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "e2db44d3-7df3-46b0-8eba-072c7c5b0fd1": {
                  "icon": "https://devicons.railway.app/i/redis.svg",
                  "name": "redis",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:6"
                  },
                  "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": "Randomly generated 32-character password used to secure the Redis server.",
                      "defaultValue": "{{REDIS_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": {
                    "e2db44d3-7df3-46b0-8eba-072c7c5b0fd1": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-29T22:14:51.071Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-29T21:48:38.162Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_38a1baeb84684f6d830d",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 58,
    "typical_build_seconds": 0,
    "typical_start_seconds": 30,
    "slowest_service": "coral"
  }
}
