{
  "manifest_version": "1.0.0",
  "template": {
    "id": "b258b998-ef1d-47d0-bc8b-ac45aec053e0",
    "slug": "ackee-analytics",
    "name": "Ackee",
    "description": "Privacy-friendly website analytics that counts views without cookies",
    "url": "https://railway.com/deploy/ackee-analytics",
    "upstream": {
      "image": "electerious/ackee:latest"
    }
  },
  "services": [
    {
      "name": "ackee",
      "source": {
        "image": "electerious/ackee:latest"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "MongoDB",
      "source": {
        "image": "mongo:8.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/data/db",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "ackee",
      "description": "HTTP server listening port",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "ACKEE_MONGODB",
      "service": "ackee",
      "description": "MongoDB connection string, admin auth source",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ACKEE_PASSWORD",
      "service": "ackee",
      "description": "Dashboard sign-in password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "ACKEE_USERNAME",
      "service": "ackee",
      "description": "Dashboard sign-in username",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "ACKEE_AUTO_ORIGIN",
      "service": "ackee",
      "description": "Auto CORS headers for hostname-titled domains",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "MONGOHOST",
      "service": "MongoDB",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MONGOPORT",
      "service": "MongoDB",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "27017"
    },
    {
      "key": "MONGOUSER",
      "service": "MongoDB",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGO_URL",
      "service": "MongoDB",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MONGOPASSWORD",
      "service": "MongoDB",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGO_INITDB_ROOT_PASSWORD",
      "service": "MongoDB",
      "description": "Root password, set during initialization",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MONGO_INITDB_ROOT_USERNAME",
      "service": "MongoDB",
      "description": "Root user, created during initialization",
      "secret": false,
      "strategy": "default",
      "default": "mongo"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "ackee-analytics"
      }
    },
    "cli": "railway deploy --template ackee-analytics",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "b258b998-ef1d-47d0-bc8b-ac45aec053e0",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "7224bd46-fe85-44fd-ba34-c1f76b9825b5": {
                  "icon": "https://s.electerious.com/images/ackee/icon.png",
                  "name": "ackee",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "electerious/ackee:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP server listening port",
                      "defaultValue": "3000"
                    },
                    "ACKEE_MONGODB": {
                      "isOptional": false,
                      "description": "MongoDB connection string, admin auth source",
                      "defaultValue": "${{MongoDB.MONGO_URL}}/ackee?authSource=admin"
                    },
                    "ACKEE_PASSWORD": {
                      "isOptional": false,
                      "description": "Dashboard sign-in password",
                      "defaultValue": "{{ACKEE_PASSWORD}}"
                    },
                    "ACKEE_USERNAME": {
                      "isOptional": false,
                      "description": "Dashboard sign-in username",
                      "defaultValue": "admin"
                    },
                    "ACKEE_AUTO_ORIGIN": {
                      "isOptional": false,
                      "description": "Auto CORS headers for hostname-titled domains",
                      "defaultValue": "true"
                    },
                    "ACKEE_ALLOW_ORIGIN": {
                      "isOptional": true,
                      "description": "Explicit CORS origins; needs ACKEE_AUTO_ORIGIN=false",
                      "defaultValue": ""
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                },
                "923b5b96-5d9f-4a2c-87fd-16d688d67735": {
                  "icon": "https://cdn.simpleicons.org/mongodb/47A248.svg",
                  "name": "MongoDB",
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mongod --ipv6 --bind_ip ::,0.0.0.0 --setParameter diagnosticDataCollectionEnabled=false",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mongo:8.0"
                  },
                  "variables": {
                    "MONGOHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MONGOPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "27017"
                    },
                    "MONGOUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{MONGO_INITDB_ROOT_USERNAME}}"
                    },
                    "MONGO_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "mongodb://${{MONGO_INITDB_ROOT_USERNAME}}:${{MONGO_INITDB_ROOT_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:27017"
                    },
                    "MONGOPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{MONGO_INITDB_ROOT_PASSWORD}}"
                    },
                    "MONGO_INITDB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Root password, set during initialization",
                      "defaultValue": "{{MONGO_INITDB_ROOT_PASSWORD}}"
                    },
                    "MONGO_INITDB_ROOT_USERNAME": {
                      "isOptional": false,
                      "description": "Root user, created during initialization",
                      "defaultValue": "mongo"
                    }
                  },
                  "volumeMounts": {
                    "923b5b96-5d9f-4a2c-87fd-16d688d67735": {
                      "mountPath": "/data/db"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "ackee",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-16T22:14:52.145Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-16T20:16:09.883Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_ad2cbe206bcf488f96a3",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 101,
    "typical_build_seconds": 0,
    "typical_start_seconds": 20,
    "slowest_service": "ackee"
  }
}
