
๐ค ๋ฌธ์ ์ํฉ
# docker-compose.yaml
version: '2'
services:
app01:
image: app
app02:
image: app
app03:
image: app
app04:
image: app
app05:
image: app
์์ ๊ฐ์ด ๊ฐ์ ์ด๋ฏธ์ง์ ๋ํด์ ๋ค์ค์ ์ปจํ ์ด๋๋ฅผ ์์ฑํด์ผํ ๋, ์์ ๊ฐ์ ๋นํจ์จ์ ์ธ ํ์ผ์ด ์์ฑ๋๋ค.
๋ง์ฝ ์ด๋ฏธ์ง๋ณ๋ก ๋ง์ ์ค์ ๋ค์ด ์๋ค๋ฉด ๋์ฑ๋ ๋ณต์กํด์ง ๊ฒ์ด๋ค.
๐ ํด๊ฒฐ
docker-compose up -d --scale app=5
docker-compose ํ์ผ์ ๋น๋ํ ๋ ์ค์ ๊ฐ์ ์์ ํ๋ฉด ๊ฐ๋จํ ํด๊ฒฐํ ์ ์๋ค!
ํ์์ ๊ฒฝ์ฐ, ๊ฐ์ airflow-worker ์ด๋ฏธ์ง์์ ๋ณต์์ ์ปจํ ์ด๋๋ฅผ ์์ฑํด์ผํด์ ์ฌ์ฉํ๊ฒ ๋์๋ค.
์ถ์ฒ
docker-compose creating multiple instances for the same image
I need to start multiple containers for the same image. If i create my compose file as shown below, it works fine. version: '2' services: app01: image: app app02: image: app app03:...
stackoverflow.com
'Engineering ๐ป > MLOps' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
| ํ์ง MLOps Engineer์ ์ฟ ๋ฒ๋คํฐ์ค(Kubernetes) ๊ฐ๋จํ ๊ณ ์ฐฐ (0) | 2025.01.11 |
|---|---|
| [MLOps] Windows ํ๊ฒฝ์์ kubeflow ์ค์นํ๊ธฐ (0) | 2023.03.27 |
| [Airflow] 2.3.0 ๋ฆด๋ฆฌ์ฆ ์ฃผ์ ๋ณํ ์ฌํญ์ ๊ฐ๋จํ๊ฒ ์์๋ณด์ (0) | 2022.05.03 |
| [Airflow] Docker๋ฅผ ํ์ฉํ Airflow ๊ตฌ์ถ (1) | 2022.04.18 |
| [Docker] ์ปจํ ์ด๋์ ๋์ปค ๊ทธ๋ฆฌ๊ณ ์ฟ ๋ฒ๋คํฐ์ค (0) | 2022.01.18 |