command
์ ๊ฐ์ด docker-compose.yml
๋ณ๊ฒฝํ๋ฉด docker-compose run
์ฌ์ฉํ ๋ ์ด๋ฌํ ๋ณ๊ฒฝ ์ฌํญ์ด ์๋์ผ๋ก ์ ํ๋์ง ์์ต๋๋ค.
docker-compose down -v --remove-orphans
๋ฅผ ์ฌ์ฉํ์ฌ ์ด๋ฌํ ๋ณ๊ฒฝ ์ฌํญ์ ๊ฐ์งํ๋๋ก ๊ฐ์ ํ ์ ์์ต๋๋ค.
์ด๊ฒ์ด ์๋์ผ๋ก ์ ์ฉ๋์ง ์๋ ์ด์ ๊ฐ ๋ฌด์์ ๋๊น?
์ ๊ฒฝ์ฐ์ง ๋ง์ธ์. run
๋ ๋ณ๊ฒฝ ์ฌํญ์ ๊ฐ์งํ์ง ๋ชปํ์ง๋ง up
๋
์ด์ํ๊ฒ๋ docker-compose.yml
์ฝ๊ฐ์ ๋ณ๊ฒฝ์ ๊ฐํ๊ณ docker-compose up์ ์คํํ๋ ค๊ณ ์๋ํ์ง๋ง ๋ณ๊ฒฝ ์ฌํญ์ด ์ ํ๋์ง ์์์ต๋๋ค.
๋ณ๊ฒฝ ์ฌํญ์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
ADD nginx_app.conf /etc/nginx/sites-enabled/
CMD systemctl reload nginx
@NinoSkopac Dockerfile
๋ฅผ ๋ณ๊ฒฝํ๋ฉด docker-compose build
๋ค์ ์คํํด์ผ ํฉ๋๋ค.
$ docker-compose build --help
Build or rebuild services.
Services are built once and then tagged as `project_service`,
e.g. `composetest_db`. If you change a service's `Dockerfile` or the
contents of its build directory, you can run `docker-compose build` to rebuild it.
...
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
์ ๊ฒฝ์ฐ์ง ๋ง์ธ์.
run
๋ ๋ณ๊ฒฝ ์ฌํญ์ ๊ฐ์งํ์ง ๋ชปํ์ง๋งup
๋