# Docker

Click the link below to get started

<https://github.com/getAlby/hub?tab=readme-ov-file#docker>

**Minimum Requirements:**

* Memory: 512MB (1GB recommended) + 1GB Swap (2GB recommended)
* Storage: 1GB+
* Persistent storage. When using Docker, it’s important to configure a **persistent volume** or a **bind mount** to ensure the data isn’t lost when the container restarts. \*

(\*) Our Docker examples contain the volume.

You can manually download the docker-compose.yml file and then run: docker compose up . Here is the command to run the Hub on Docker:

```
docker run -v ~/.local/share/albyhub:/data -e WORK_DIR='/data' -p 8080:8080 --pull always ghcr.io/getalby/hub:latest
```

{% hint style="warning" %}
We recommend having a solid understanding of Docker management before attempting to host your Alby Hub in a Docker container. If you're not experienced with Docker, please avoid this method, as it could lead to potential loss of funds.
{% endhint %}


---

# 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://guides.getalby.com/user-guide/alby-hub/alby-hub-flavors/docker.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.
