Skip to content

Commit

Permalink
deploy: 도커 컨테이너에서 타임존 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
minsu20 authored Nov 22, 2023
1 parent 6346bd4 commit 203b633
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if [ -z "$EXIST_BLUE" ] && [ -z "$EXIST_GREEN" ]; then
docker rm ${DOCKER_APP_NAME}-blue
fi

docker run -d --name ${DOCKER_APP_NAME}-blue -p 8081:8080 ${DOCKER_USERNAME}/moing:blue
docker run -d --name ${DOCKER_APP_NAME}-blue -p 8081:8080 -e TZ=Asia/Seoul ${DOCKER_USERNAME}/moing:blue
BEFORE_COMPOSE_COLOR="green"
AFTER_COMPOSE_COLOR="blue"
elif [ -z "$EXIST_BLUE" ]; then
Expand All @@ -29,7 +29,7 @@ elif [ -z "$EXIST_BLUE" ]; then
docker rm ${DOCKER_APP_NAME}-blue
fi

docker run -d --name ${DOCKER_APP_NAME}-blue -p 8081:8080 ${DOCKER_USERNAME}/moing:blue
docker run -d --name ${DOCKER_APP_NAME}-blue -p 8081:8080 -e TZ=Asia/Seoul ${DOCKER_USERNAME}/moing:blue
BEFORE_COMPOSE_COLOR="green"
AFTER_COMPOSE_COLOR="blue"
else
Expand All @@ -40,7 +40,7 @@ else
docker rm ${DOCKER_APP_NAME}-green
fi

docker run -d --name ${DOCKER_APP_NAME}-green -p 8082:8080 ${DOCKER_USERNAME}/moing:green
docker run -d --name ${DOCKER_APP_NAME}-green -p 8082:8080 -e TZ=Asia/Seoul ${DOCKER_USERNAME}/moing:green
BEFORE_COMPOSE_COLOR="blue"
AFTER_COMPOSE_COLOR="green"
fi
Expand Down

0 comments on commit 203b633

Please sign in to comment.