Skip to content

Commit

Permalink
refactor(CD): 서버 재부팅 시 Docker 컨테이너 자동 시작 설정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
limehee committed Jan 7, 2025
1 parent 45f78b1 commit 34e752f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cd/Jenkinsfile.core
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ def deployNewInstance() {
-v ${env.HOST_LOGS_PATH}:${env.CONTAINER_LOGS_PATH} \\
-e LOG_PATH=${env.CONTAINER_LOGS_PATH} \\
-e SPRING_PROFILES_ACTIVE=${env.PROFILE} \\
--restart unless-stopped \\
${env.IMAGE_NAME}:${env.DEPLOY_CONTAINER}

echo "Checking if infra network ${env.INFRA_NETWORK} exists"
Expand Down
1 change: 1 addition & 0 deletions cd/Jenkinsfile.rhythm
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ def deployNewInstance() {
docker run -d --name ${env.CONTAINER_NAME} \\
-p ${env.APP_PORT}:5000 \\
--network ${env.APPLICATION_NETWORK} \\
--restart always \\
${env.IMAGE_NAME}:${env.CONTAINER_NAME}

echo "Checking if infra network ${env.INFRA_NETWORK} exists"
Expand Down

0 comments on commit 34e752f

Please sign in to comment.