# Docker Compose

यदि आप Roboflow inference container के साथ-साथ अन्य docker containers चलाना चाहते हैं, तो आप इसका उपयोग करके ऐसा कर सकते हैं [Docker Compose](https://docs.docker.com/compose/). हम इसे एक उदाहरण docker-compose.yaml file के माध्यम से दिखाते हैं:

```yaml
# Roboflow Inference Service को एक Docker compose service के रूप में चलाएँ"
services:
  roboflow-inference-service:
    image: roboflow/inference-server:cpu
    ports:
      - "9001:9001"

# वैकल्पिक रूप से, यहाँ कोई भी अन्य containers या services जोड़ें जिनकी आपको आवश्यकता है, 
# जैसा कि नीचे इस उदाहरण के माध्यम से दिखाया गया है;
# इसलिए आप Roboflow inference service के साथ कई services को "compose" कर सकते हैं 
# जैसा कि आपकी application के लिए आवश्यक हो

  another-container-service:
    image:  curlimages/curl:8.00.1
    entrypoint:
      - /bin/ash
      - -c
      - |
        while true; do 
        curl -s -X GET http://roboflow-inference-service:9001 
        sleep 5; 
        done
      
    depends_on:
      - roboflow-inference-service
  
```

फाइल सेव करने के बाद, टर्मिनल में टाइप करें `docker-compose up` । दो docker containers शुरू होंगे - Roboflow inference server और एक अन्य container जो `curls` हर 5 सेकंड में inference server को।

आप इस उदाहरण को बढ़ाकर अपनी application की आवश्यकता के अनुसार अपने stack में और containers जोड़ सकते हैं।


---

# 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.roboflow.com/roboflow/roboflow-hi/deploy/enterprise-deployment/docker-compose.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.
