Skip to content

Commit 7526d00

Browse files
authored
Merge pull request #101 from GTable/feature/#58-docker-setting
refactor: docker compose 파일 환경별로 분리
2 parents 43252a0 + f205143 commit 7526d00

11 files changed

Lines changed: 26 additions & 55 deletions

File tree

.github/ISSUE_TEMPLATE/needdelete.md

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: 백엔드 이슈
3+
about: 백엔드와 관련된 이슈
4+
title: "[백엔드] "
5+
labels: Backend
6+
assignees: ''
7+
8+
---
9+
10+
# 이슈 내용
11+
12+
13+
# 작업 목록
14+
- [ ]

.github/workflows/deploy-admin-docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ jobs:
7070
- name: Checkout
7171
uses: actions/checkout@v3
7272

73-
- name: Copy docker-compose.yml to EC2
73+
- name: Copy docker-compose.admin.yml to EC2
7474
uses: appleboy/scp-action@master
7575
with:
7676
host: ${{ secrets.EC2_HOST }}
7777
username: ${{ secrets.EC2_USER }}
7878
key: ${{ secrets.EC2_SSH_KEY }}
7979
port: ${{ secrets.EC2_PORT }}
80-
source: "docker-compose.yml"
80+
source: "docker-compose.admin.yml"
8181
target: ${{ env.EC2_DEPLOY_PATH }}
8282

8383
- name: Copy deploy-admin-docker.sh to EC2

.github/workflows/deploy-admin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Dev Admin CI/CD
33
on:
44
push:
55
branches:
6-
- develop
6+
- legacy
77
paths:
88
- 'nowait-app-admin-api/**'
99
- 'nowait-common/**'

.github/workflows/deploy-user-docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ jobs:
6767
- name: Checkout
6868
uses: actions/checkout@v3
6969

70-
- name: Copy docker-compose.yml to EC2
70+
- name: Copy docker-compose.user.yml to EC2
7171
uses: appleboy/scp-action@master
7272
with:
7373
host: ${{ secrets.EC2_HOST }}
7474
username: ${{ secrets.EC2_USER }}
7575
key: ${{ secrets.EC2_SSH_KEY }}
7676
port: ${{ secrets.EC2_PORT }}
77-
source: "docker-compose.yml"
77+
source: "docker-compose.user.yml"
7878
target: ${{ env.EC2_DEPLOY_PATH }}
7979

8080
- name: Copy deploy-user-docker to EC2

.github/workflows/deploy-user.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Dev User CI/CD
33
on:
44
push:
55
branches:
6-
- develop
6+
- legacy
77
paths:
88
- 'nowait-app-user-api/**'
99
- 'nowait-common/**'

docker-compose.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

nowait-app-admin-api/src/main/java/com/nowait/ApiAdminApplication.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ public static void main(String[] args) {
1010
org.springframework.boot.SpringApplication.run(ApiAdminApplication.class, args);
1111
}
1212
}
13+

nowait-app-user-api/src/main/java/com/nowait/ApiUserApplication.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ public static void main(String[] args) {
1111
SpringApplication.run(ApiUserApplication.class, args);
1212
}
1313
}
14+

scripts/deploy-admin-docker.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ else
1717
fi
1818

1919
echo "3. start container"
20-
sudo docker-compose -p nowait_dev pull nowait-app-admin-api
21-
sudo docker-compose -p nowait_dev up -d nowait-app-admin-api
20+
sudo docker-compose -f docker-compose.admin.yml -p nowait_dev pull nowait-app-admin-api
21+
sudo docker-compose -f docker-compose.admin.yml -p nowait_dev up -d nowait-app-admin-api
2222

2323
echo "4. check container status"
2424
NEW_CONTAINER_ID=$(docker ps -q --filter "name=nowait-app-admin-api")

0 commit comments

Comments
 (0)