mirror of https://github.com/tikv/website.git
1.7 KiB
1.7 KiB
| title | description | weight |
|---|---|---|
| Quickstart | Run TiKV in your local environment using Docker Compose | 1 |
This guide describes how to quickly deploy a TiKV testing cluster using Docker Compose on a single machine. Currently, this installation method is supported only on Linux.
Prerequisites
Make sure that you have the following items installed on your machine:
-
Docker (17.06.0 or later) and Docker Compose
sudo yum install docker docker-compose -
curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash -
sudo yum install git
Install and deploy
-
Clone
tidb-docker-composegit clone https://github.com/pingcap/tidb-docker-compose.git cd tidb-docker-compose -
Edit the
compose/values.yamlfile to configure thenetworkModeandhostand comment thetidbsection out. -
Generate the
generated-docker-compose.ymlfilehelm template compose > generated-docker-compose.yml -
Create and start the cluster using the
generated-docker-compose.ymlfiledocker-compose -f generated-docker-compose.yml pull # Get the latest Docker images docker-compose -f generated-docker-compose.yml up -d
You can check whether the TiKV cluster has been successfully deployed using the following command:
curl localhost:2379/pd/api/v1/stores
If the state of all the TiKV instances is Up then you have successfully deployed a TiKV cluster!