Skip to main content

tuna and Docker

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

Step 1. Download the client

Инструкция доступна на странице.

Step 2. Clone the repository with examples

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

docker compose up -d

Make sure the container is running:

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:

tuna http 8000

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