Skip to content

Commit

Permalink
MATE-100 : [FIX] 도커에 환경변수 전달
Browse files Browse the repository at this point in the history
  • Loading branch information
juchan204 committed Dec 5, 2024
1 parent 8d5f5d7 commit 012a700
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scripts/start-server.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
#!/bin/bash

#!/bin/bash
echo "--------------- 서버 배포 시작 -----------------"
docker stop catchmi-server || true
docker rm catchmi-server || true
docker pull 533267244952.dkr.ecr.ap-northeast-2.amazonaws.com/catchmi-server:latest
docker run -d --name catchmi-server -p 8080:8080 533267244952.dkr.ecr.ap-northeast-2.amazonaws.com/catchmi-server:latest
docker run -d --name catchmi-server \
-p 8080:8080 \
-e JWT_SECRET_KEY="${JWT_SECRET_KEY}" \
-e NAVER_CLIENT_ID="${NAVER_CLIENT_ID}" \
-e NAVER_REDIRECT_URI="${NAVER_REDIRECT_URI}" \
-e NAVER_CLIENT_SECRET="${NAVER_CLIENT_SECRET}" \
-e OPENWEATHER_API_KEY="${OPENWEATHER_API_KEY}" \
533267244952.dkr.ecr.ap-northeast-2.amazonaws.com/catchmi-server:latest
echo "--------------- 서버 배포 끝 -----------------"

0 comments on commit 012a700

Please sign in to comment.