# tuna and Docker

Example of running tuna to provide access to a server launched with Docker and Docker Compose.

## Step 1. Download the client

Instructions are available on the [installation page](https://tuna.am/en/docs/guides/install.md).

## Step 2. Clone the repository with examples

```shell
git clone https://gitlab.com/yuccastream/tuna-examples.git
cd tuna-examples/docker-compose

```

info

If you want the tuna client to also run with docker-compose, then check the example from the `tuna-examples/docker-compose-v2` directory.

## Step 3. Run the server

```shell
docker compose up -d

```

Make sure the container is running:

```shell
docker compose ps
NAME                    IMAGE                                  COMMAND             SERVICE             CREATED             STATUS              PORTS
docker-compose-web-1    docker-compose-web                     "python3 app.py"    web                 9 minutes ago       Up 2 seconds        0.0.0.0:8000->8000/tcp

```

## Step 4. Run tuna

Specify your server port in the startup arguments:

```bash
tuna http 8000

```

To stop and remove all running containers, use the command `docker compose rm -sf`.
