# Deploy Worker Nodes

The worker node is containerized and can be run on a virtual machine.

### Requirement <a href="#requirement" id="requirement"></a>

* CPU: 2 vCPUs
* Memory: 4 GB
* Disk Space: 100 GB
* Operating System: Ubuntu 20.04 LTS

### Create a Virtual machine <a href="#create-a-virtual-machine" id="create-a-virtual-machine"></a>

To create a virtual machine in your cloud provider. Ensure the virtual machine matches the minimum requirements listed in the above section.

### Deployment Guide <a href="#deployment-guide" id="deployment-guide"></a>

Clone the following repository - [![](https://github.com/fluidicon.png)GitHub - energywebfoundation/greenproofs-worker-guide](https://github.com/energywebfoundation/greenproofs-worker-guide)

It contains the guide and files required to run the worker image.

### Deploying Worker Image to Virtual Machine <a href="#deploying-worker-image-to-virtual-machine" id="deploying-worker-image-to-virtual-machine"></a>

Once connected to the VM. Follow the steps to run the container image.

**Install docker**

`sudo snap install docker`

**Confirm docker and docker-compose are installed**

`docker -v docker-compose -v`

**Application setup**

Once done, ensure to the **.env** file contains all environment variables required in the same directory as the **docker-compose.yml** file.

Finally, run the command

`docker-compose up -d`

This would bring up all services. You can reach out to the team for further help or check out the Docker Compose cheat sheet for more debugging tips [here](https://dockerlabs.collabnix.com/intermediate/docker-compose/compose-cheatsheet.html).


---

# 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.energyweb.org/legacy-documentation/ew-dos-technology-components-2023/worker-nodes/worker-node-guides/deploy-worker-nodes.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.
