๋ฐ์ธ๋ ๋ณผ๋ฅจ์ ์ค์ ํ๋ ค๊ณ ํ๋๋ฐ ์๋ํ์ง ์์ต๋๋ค.
์ค๋ช
์์ ๋ฐ๋ผ docker-compose
ํ์ผ์ ์์ฑํ์ต๋๋ค.
version: '3'
services:
web:
#build: .
image: fnndsc/fnndsc.babymri.org
ports:
- "8060:8080"
volumes:
- type: bind
source: .
target: /src/website
labels:
name: "FNNDSC Web App"
role: "FNNDSC Web App development server"
Docker ๋ฒ์ 17.03.1-ce, ๋น๋ c6d412e
docker-compose ๋ฒ์ 1.12.0, ๋น๋ b31ff33
docker-compose up
:
ERROR: The Compose file './docker-compose.yml' is invalid because:
services.web.volumes contains an invalid type, it should be a string
ํ์ฅ ํ๊ธฐ๋ฒ์๋ version: '3.2'
ํ์ํฉ๋๋ค.
๊ฐ์ฌ!
์ด๊ฒ์ ๋์์ด๋ฉ๋๋ค. '3'
๊ฐ ๋ ๋ฒ์งธ ๊ตฌ์ฑ ์์์ ์ต์ ๋ฒ์ ์ ์์ํ๋ค๊ณ ๊ฐ์ ํ์ง๋ง ๋ถ๋ช
ํ ๋ช
์ ์ ์ผ๋ก ๋ฒ์ ์ ๋ ๋ฒ์งธ ๊ตฌ์ฑ ์์๋ฅผ ์ง์ ํ๊ณ ์
๊ทธ๋ ์ด๋ํด์ผํฉ๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
ํ์ฅ ํ๊ธฐ๋ฒ์๋
version: '3.2'
ํ์ํฉ๋๋ค.