# Setup on docker (Deprecated)

{% hint style="warning" %}
The documentation is designed for Liker Land and LikeCoin v2. For information on [3ook.com](https://3ook.com/) and LikeCoin v3, please visit [docs.3ook.com](https://docs.3ook.com) and [dao.like.co](https://dao.like.co/).
{% endhint %}

### Setup steps

1. Clone the project
2. Build the Docker image
3. Initialize the node and account keys
4. Start up the node and wait for synchronization catch up

#### Clone the project

Run `git clone https://github.com/likecoin/likecoin-chain --branch release/v3.x --single-branch`, then `cd likecoin-chain`.

#### Build the Docker image

Run `make build-docker`.

#### Initialize the node and account keys

1. Run\
   `cp docker-compose.yml.template docker-compose.yml`\
   `cp .env.template .env`\
   \`\`for setting up the `docker-compose.yml` and `.env`.\\
2. Modify `.env` file for the network config.\
   For [mainnet](https://github.com/likecoin/mainnet):\
   `LIKECOIN_MONIKER="<change this for your node's name>"`\
   `LIKECOIN_DOCKER_IMAGE="likecoin/likecoin-chain:v4.2.0"`\
   `LIKECOIN_CHAIN_ID="likecoin-mainnet-2"`\
   `LIKECOIN_GENESIS_URL="https://gist.githubusercontent.com/williamchong/de1bdf2b2a8f3bce50a4b5e46af26959/raw/4e21bff586771c849d22e1916bcb88c6463fbaa0/genesis.json"`\
   `LIKECOIN_SEED_NODES="913bd0f4bea4ef512ffba39ab90eae84c1420862@34.82.131.35:26656,e44a2165ac573f84151671b092aa4936ac305e2a@nnkken.dev:26656"`\
   `\` For [testnet](https://github.com/likecoin/testnets):\
   `LIKECOIN_MONIKER="<change this for your node's name>"`\
   `LIKECOIN_DOCKER_IMAGE="likecoin/likecoin-chain:v4.2.0"`\
   `LIKECOIN_CHAIN_ID="likecoin-public-testnet-5"`\
   `LIKECOIN_GENESIS_URL="https://gist.githubusercontent.com/nnkken/4a161c14e9dc03f412c36d11cdf7ea27/raw/9265c348c9f79b918d99aeee7f6c29b6b3bc449f/genesis.json"`\
   `LIKECOIN_SEED_NODES="`49976c3bd43da9271f226cbedf02d4b6b8fc880c\@35.233.143.230:26656`"`\
   `\` Note that `LIKECOIN_MONIKER` is a custom name you decide for your node's name.\\
3. Run `docker-compose run --rm init` to create `.liked` directories, with node config and keys initialized.\\
4. Run `docker-compose run --rm liked-command keys add validator` to add an operator key. The command will output your operator address, and also a 12-24 words mnemonic phrase. Please backup the mnemonic phrase properly as it represents your validator's private key.\
   When asked, enter and repeat a passphrase for protecting your account key.

#### Start up the node

Run `docker-compose up -d`. This will create and run the Docker containers in background.

To see if the node is running well, you can input `docker-compose logs` to see if there is any error.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.v2.like.co/validator/likecoin-chain-node/setup-a-node/setup-on-docker-deprecated.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
