> For the complete documentation index, see [llms.txt](https://docs.roboflow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roboflow.com/roboflow/roboflow-ko/deploy/enterprise-deployment/docker-compose.md).

# Docker Compose

다른 Docker 컨테이너를 Roboflow inference 컨테이너와 함께 실행하고 싶다면, 다음을 사용해 그렇게 할 수 있습니다 [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와 함께 여러 서비스를 "compose"할 수 있습니다 
# 애플리케이션에서 필요로 하는 service

  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를 호출합니다.

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