ํ‹ฐ์Šคํ† ๋ฆฌ ๋ทฐ

docker-compose.yml ํŒŒ์ผ ๋ช… ๋ณ€๊ฒฝํ•ด์„œ ์‚ฌ์šฉํ•˜๊ธฐ

docker-compose -f docker-compose.elastic.yml up -d

์—ฌ๋Ÿฌ ๊ฐœ์˜ docker-compose ํŒŒ์ผ ์‚ฌ์šฉํ•˜๊ธฐ | multiple docker-compose files

 

์—ฌ๋Ÿฌ ๊ฐœ์˜ docker-compose ํŒŒ์ผ ์‚ฌ์šฉํ•˜๊ธฐ | multiple docker-compose files

db์™€ ์—˜๋ผ์Šคํ‹ฑ์„œ์น˜ ์ปจํ…Œ์ด๋„ˆ๋ฅผ ๊ฐ™์€ docker-compose ํŒŒ์ผ์—์„œ ๋„์šฐ๋ฉด ๋‘˜ ์ค‘ ํ•˜๋‚˜๋งŒ ๋‹ค์šด์‹œํ‚ค๊ณ  ์‹ถ์„ ๋•Œ *๋ฌธ์ œ๊ฐ€ ๋  ์ˆ˜ ์žˆ๋‹ค. docker-compose up ์œผ๋กœ ์ปจํ…Œ์ด๋„ˆ๋ฅผ ๋”ฐ๋กœ ๋„์šธ ์ˆ˜๋Š” ์žˆ์ง€๋งŒ docker-compose down์€ ํŠน

another-light.tistory.com

 

docker-compose ์‹คํ–‰ ์ „ frontend ์ฝ”๋“œ (Vue) ๋นŒ๋“œํ•˜๊ธฐ

npm run build
  • distํด๋” ์ƒ๊ธฐ๋ฉด ์„ฑ๊ณต

 

 

backend, frontend ๊ฐ๊ฐ ๋นŒ๋“œ, ํƒœ๊ทธ ๋ณ€๊ฒฝ

docker build -t intern2022-back-nkim .

# Tag an image for a private repository
# To push an image to a private registry and not the central Docker registry you must tag it with the registry hostname and port (if needed).
docker tag intern2022-back-nkim registry-airi.local/airihq/intern2022-back-nkim:0.0.1

docker tag

 

docker tag

docker tag: An image name is made up of slash-separated name components, optionally prefixed by a registry hostname. The hostname must comply with standard DNS rules, but may not contain...

docs.docker.com

์ฐธ๊ณ ) ์ผ๋ฐ˜ tag ๋ณ€๊ฒฝ : https://miiingo.tistory.com/332

 

[Docker] Docker ์ด๋ฏธ์ง€๋ช… ๋˜๋Š” ํƒœ๊ทธ๋ช… ๋ณ€๊ฒฝ (docker image tag)

[Docker] Docker ์ด๋ฏธ์ง€๋ช… ๋˜๋Š” ํƒœ๊ทธ๋ช… ๋ณ€๊ฒฝ (docker image tag) ๊ธฐ์กด์˜ Docker ์ด๋ฏธ์ง€๋ช…์„ ์ƒˆ๋กœ์šด ์ด๋ฆ„์œผ๋กœ ๋ณ€๊ฒฝํ•˜๊ฑฐ๋‚˜, ์ƒˆ๋กœ์šด ํƒœ๊ทธ๋ช…์„ ๋ถ™์ผ ๋•Œ docker image tag ๋ช…๋ น์„ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. ๋™..

miiingo.tistory.com

 

 

push ํ•˜๊ธฐ ์ „์— docker login ํ•˜๊ธฐ

docker login # ๋„์ปค ๋กœ๊ทธ์ธ. ๋„์ปค ๋ฐ์Šคํฌํ†ฑ์— ๋กœ๊ทธ์ธ ๋˜์–ด์žˆ์œผ๋ฉด ๋น„๋ฒˆ ์•ˆ์ณ๋„ ์ž๋™์œผ๋กœ ๋กœ๊ทธ์ธ๋จ
docker info | grep Username # ์œ ์ €๋„ค์ž„ ํ™•์ธ

 

docker push

๋”๋ณด๊ธฐ

docker push <Docker Hub ์‚ฌ์šฉ์ž ๊ณ„์ •>/<์ด๋ฏธ์ง€ ์ด๋ฆ„>:<ํƒœ๊ทธ>

docker push registry-airi.local

docker push

 

docker push

docker push: Use `docker image push` to share your images to the [Docker Hub](https://hub.docker.com) registry or to a self-hosted one. Refer to the [`docker image tag`](tag.md) reference for more information...

docs.docker.com

๊ฐ€์žฅ ๋นจ๋ฆฌ ๋งŒ๋‚˜๋Š” Docker 13์žฅ - 2. push ๋ช…๋ น์œผ๋กœ ์ด๋ฏธ์ง€ ์˜ฌ๋ฆฌ๊ธฐ

 

๊ฐ€์žฅ ๋นจ๋ฆฌ ๋งŒ๋‚˜๋Š” Docker 13์žฅ - 2. push ๋ช…๋ น์œผ๋กœ ์ด๋ฏธ์ง€ ์˜ฌ๋ฆฌ๊ธฐ

 

pyrasis.com

๋Œ“๊ธ€