> 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/deployment/ko/self-hosted/enterprise/docker-compose.md).

# Docker Compose

Roboflow 추론 컨테이너와 함께 다른 Docker 컨테이너를 실행하려면 다음을 사용하면 됩니다 [Docker Compose](https://docs.docker.com/compose/). 이는 예시 docker-compose.yaml 파일로 설명합니다:

```yaml
# roboflow 추론 서비스를 Docker Compose 서비스로 실행하기"
services:
  roboflow-inference-service:
    image: roboflow/inference-server:cpu
    ports:
      - "9001:9001"

# 필요에 따라 여기에 필요한 다른 컨테이너나 서비스를 추가하세요, 
# 아래 예시로 설명합니다;
# 따라서 roboflow 추론으로 여러 서비스를 "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 추론 서버와 다음을 수행하는 다른 컨테이너입니다 `curl로 요청합니다` 추론 서버에 5초마다.

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