# Docker Compose

Roboflow Inference 컨테이너와 함께 다른 Docker 컨테이너를 실행하고 싶다면, 이를 사용하여 할 수 있습니다 [Docker Compose](https://docs.docker.com/compose/). 아래의 예시 docker-compose.yaml 파일을 통해 이를 보여드립니다:

```yaml
# Roboflow Inference Service를 Docker Compose 서비스로 실행"
services:
  roboflow-inference-service:
    image: roboflow/inference-server:cpu
    ports:
      - "9001:9001"

# 필요에 따라 여기에 다른 컨테이너나 서비스를 추가할 수도 있습니다, 
# 아래 예시를 통해 설명합니다;
# 따라서 애플리케이션에 필요한 만큼 roboflow inference 
# service와 여러 서비스를 "compose"할 수 있습니다

  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 컨테이너가 실행됩니다 - roboflow inference server와 또 다른 컨테이너가 `curl을 수행하며` 매 5초마다 inference server에 요청합니다.

이 예시를 확장하여 애플리케이션에 필요한 만큼 더 많은 컨테이너를 추가해 스택을 구성할 수 있습니다.


---

# 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-ko/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.
