We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05db119 commit 82f8153Copy full SHA for 82f8153
2 files changed
.github/workflows/dev_deploy.yml
@@ -58,6 +58,7 @@ jobs:
58
# 1. EC2 서버에 .env 파일을 새로 생성합니다.
59
# GitHub Secrets의 값을 가져와 파일에 한 줄씩 씁니다.
60
cat << EOF > .env
61
+ DOCKER_IMAGE_NAME=${{ secrets.DOCKER_USERNAME }}/withmorning:latest
62
DB_URL=${{ secrets.DB_URL }}
63
DB_USER=${{ secrets.DB_USER }}
64
DB_PASS=${{ secrets.DB_PASS }}
docker-compose.yml
@@ -3,6 +3,7 @@ version: '3.8' # Docker Compose 파일 버전
3
services:
4
# Spring Boot 애플리케이션 서비스
5
app:
6
+ image: ${DOCKER_IMAGE_NAME}
7
container_name: withmorning-app
8
ports:
9
- "8080:8080" # 호스트의 8080 포트를 컨테이너의 8080 포트와 연결합니다.
0 commit comments