# 02) Cosmos Server setup

Now we will install Cosmos Server. Previously, you could use Docker Compose to launch and use Cosmos Server. But since the release of Cosmos Server v0.14.x, this is not supported any longer.

### Preparing Docker Compose for later

We're going to create a folder for later use.

1. To make it easier to use `docker compose`, I always start by creating a new directory for all of my docker compose containers:

```bash
sudo mkdir -p /opt/docker-all && sudo chown -R $USER:$USER /opt/docker-all
```

### Installing Cosmos Server

Installing Cosmos Server is very simple. All you need is to run this command, and Docker will take care of the rest.

1. Run the following command:

```bash
docker run -d --network host  --privileged --name cosmos-server -h cosmos-server --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v /:/mnt/host -v /var/lib/cosmos:/config azukaar/cosmos-server:latest
```

2. The process should look like this:

[![asciicast](https://asciinema.org/a/tUNwrwP3rmGGADQjOIeQWEkcm.svg)](https://asciinema.org/a/tUNwrwP3rmGGADQjOIeQWEkcm)

### On to the next step!


---

# 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.engels.zip/docker-and-compose-setup/02-cosmos-server-setup.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.
