Start a Local Cache Development Cluster
Set up a single-node GridGain 8 cluster with Docker Compose for cache-centric development and testing.
Introduction
Your application needs a fast caching layer. In this tutorial, you start a single-node cluster with Docker Compose and verify it is running. Every subsequent tutorial in the cache-centric Foundations path builds on this environment.
The cache-centric architecture is used by GridGain 8. It organizes server nodes in a ring topology with no minimum node count.
A single server node is all you need to start developing. Later tutorials add nodes when you explore partition distribution and resilience.
Prerequisites
Docker 20.10 or later
Docker Compose 2.23.1 or later (ships with Docker Desktop)
Port 47500 available on your machine (cluster discovery)
Port 10800 available on your machine (client connections)
2 GB of available RAM for the server node
GridGain 8 Enterprise requires a trial license:
Go to gridgain.com/tryfree and request an Enterprise trial download
Check your email for a download link to
gridgain-enterprise-8.10.0.zipDownload and extract the zip file
Copy
gridgain-license.xmlfrom the top level of the extracted directory into your project directory (you create this directory in Step 1)
The trial license is valid for 30 days. The 1.1 GB zip contains the full binary distribution, but only the license file is needed for Docker.
What You Will Learn
A running single-node cluster verified through its startup log and a cluster state check. You will:
Start a cache-centric cluster node with Docker Compose
Read the topology snapshot log to confirm the node is active
Run a cluster state check to verify connectivity
Create the Docker Compose Environment
Create a project directory and the configuration files. The cluster needs a docker-compose.yml for the server container and an XML configuration for node discovery.
Create the XML configuration file that configures static IP discovery. Save this as cache-cluster/ignite-config.xml:
The TcpDiscoveryVmIpFinder configures static IP discovery. In a Docker network, node1 resolves to the container's IP address.
The peerClassLoadingEnabled flag has to match on every node in the cluster, server and client. Later tutorials in this path ship user-defined classes (cache configurations, compute tasks) from the client to the server, which requires the flag set to true. Setting it now avoids restarting the cluster with a new config when you reach those tutorials. A client that connects with a different value fails immediately with Remote node has peer class loading enabled flag different from local.
Now create the Docker Compose file. Save this as cache-cluster/docker-compose.yml:
The additional volume mount maps your trial license into the container at the path GridGain expects. Verify the license file is in your project directory before starting:
Your project directory should now contain:
Start the Cluster
Start the server node in detached mode and follow the logs:
The node takes 10-30 seconds to start (longer on Apple Silicon due to emulation). Watch for the banner and the topology snapshot:
The key line is the topology snapshot. It confirms:
servers=1means one server node is activeclients=0means no client applications have connected yet (you add one in a later tutorial)state=ACTIVEmeans the cluster is ready to accept operations
Press Ctrl+C to stop following the logs. The container continues running in the background.
Verify the Cluster is Active
Run a cluster state check to confirm the node is accepting connections:
The output confirms Cluster is active. The cluster ID and tag are auto-generated and will differ on your machine.
Why One Node?
Starting with one node gives you the fastest possible setup. Later tutorials add server nodes when you explore partition distribution and what happens when a node leaves the cluster.
Managing the Cluster
To stop the cluster and preserve its state for next time:
To restart:
To destroy the cluster and remove all data:
Summary
You started a single-node cache-centric cluster with Docker Compose and verified it is active. The server node is listening on port 47500 (discovery) and port 10800 (client connections).
Next Step
In Cache Data and Experience the Speed, you connect a Java application as a thick client, create caches, and store your first data. The thick client joins the cluster ring and enables features like near-cache that are unique to the cache-centric architecture.
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

