Skip to content

Latest commit

ย 

History

History
19 lines (15 loc) ยท 857 Bytes

README.md

File metadata and controls

19 lines (15 loc) ยท 857 Bytes

schoolvery-be

Docker ์‹คํ–‰

  1. .env.example ํŒŒ์ผ์˜ ๋ณต์‚ฌํ•˜๊ณ  ๋ณต์‚ฌ๋ณธ์˜ ์ด๋ฆ„์„ .env๋กœ ์ˆ˜์ •ํ•ฉ๋‹ˆ๋‹ค.
  2. ํ•ด๋‹น ํŒŒ์ผ์— ํ™˜๊ฒฝ๋ณ€์ˆ˜๋ฅผ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.
  3. application.properties์— jwt ๊ด€๋ จํ•œ ์„ค์ •์„ ์ฃผ์„ ํ•ด์ œ ํ•ด์ค๋‹ˆ๋‹ค.
  4. ./gradlew build ๋˜๋Š” ./build.sh๋ฅผ ํ†ตํ•ด jar ํŒŒ์ผ์„ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.
    ๋งŒ์•ฝ ./gradlew build๊ฐ€ ์•ˆ๋œ๋‹ค๋ฉด gradle wrapper ๋˜๋Š” ./initialize.sh์„ ์‹คํ–‰ํ•ด์ค๋‹ˆ๋‹ค.
    ๋งŒ์•ฝ contextLoads() FAILED ์—๋Ÿฌ๊ฐ€ ๋‚˜๋ฉด ๋ฌด์‹œํ•ด์ค˜๋„ ๋ฉ๋‹ˆ๋‹ค.
    build/libs ์•ˆ์— schoolvery-server-0.0.1-SNAPSHOT.jar(์ถ”ํ›„ ๋ณ€๊ฒฝ ๊ฐ€๋Šฅ) ๋ผ๋Š” ํŒŒ์ผ๋งŒ ์กด์žฌํ•œ๋‹ค๋ฉด ์‹คํ–‰ํ•˜๋Š”๋ฐ ๋ฌธ์ œ๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค.

์ผ๋ฐ˜(๊ฐœ๋ฐœ์šฉ) ์‹คํ–‰

docker compose up --build
์ค‘์ง€: docker compose down

ํ…Œ์ŠคํŠธ์šฉ ์‹คํ–‰

./scripts/production-run.sh
์ค‘์ง€: ./scripts/production-down.sh