-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat] docker network 설정으로 redis와 연결
- Loading branch information
1 parent
5ad18e3
commit d4b53dc
Showing
4 changed files
with
16 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,20 +77,23 @@ jobs: | |
host: ${{ secrets.HOST_DEV }} | ||
username: ${{ secrets.USER_DEV }} | ||
key: ${{ secrets.KEY_DEV }} | ||
script: mkdir -p ./dev | ||
script: mkdir -p ./ness | ||
|
||
## 소스 코드 복사 붙여넣기 | ||
- name: copy source via ssh key | ||
uses: burnett01/[email protected] | ||
with: | ||
switches: -avzr --delete | ||
path: ./config | ||
remote_path: ./dev | ||
remote_path: ./ness | ||
remote_host: ${{ secrets.HOST_DEV }} | ||
remote_user: ${{ secrets.USER_DEV }} | ||
remote_key: ${{ secrets.KEY_DEV }} | ||
|
||
## EC2에 배포(CD) | ||
## 아래 두 개는 이미 되어 있는 상태 | ||
## docker network create ness_network | ||
## docker network connect ness_network redis-server | ||
- name: executing remote ssh commands using password | ||
uses: appleboy/ssh-action@master | ||
with: | ||
|
@@ -104,4 +107,5 @@ jobs: | |
sudo docker rm $(sudo docker ps -a --filter="name=backend-server" -q) | ||
sudo docker rmi $(sudo docker images -q) | ||
docker pull jeonhaeseung/ness-server-dev:dev | ||
docker run -d --name backend-server -p 80:8080 --restart unless-stopped jeonhaeseung/ness-server-dev:dev | ||
docker run -d --name backend-server -p 80:8080 --restart unless-stopped jeonhaeseung/ness-server-dev:dev | ||
docker network connect ness_network backend-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,20 +82,23 @@ jobs: | |
host: ${{ secrets.HOST_PROD }} | ||
username: ${{ secrets.USER_PROD }} | ||
key: ${{ secrets.KEY_PROD }} | ||
script: mkdir -p ./prod | ||
script: mkdir -p ./ness | ||
|
||
## 소스 코드 복사 붙여넣기 | ||
- name: copy source via ssh key | ||
uses: burnett01/[email protected] | ||
with: | ||
switches: -avzr --delete | ||
path: ./config | ||
remote_path: ./prod | ||
remote_path: ./ness | ||
remote_host: ${{ secrets.HOST_PROD }} | ||
remote_user: ${{ secrets.USER_PROD }} | ||
remote_key: ${{ secrets.KEY_PROD }} | ||
|
||
## EC2에 배포(CD) | ||
## 아래 두 개는 이미 되어 있는 상태 | ||
## docker network create ness_network | ||
## docker network connect ness_network redis-server | ||
- name: executing remote ssh commands using password | ||
uses: appleboy/ssh-action@master | ||
with: | ||
|
@@ -109,4 +112,5 @@ jobs: | |
sudo docker rm $(sudo docker ps -a --filter="name=backend-server" -q) | ||
sudo docker rmi $(sudo docker images -q) | ||
docker pull jeonhaeseung/ness-server-prod:main | ||
docker run -d --name backend-server -p 80:8080 --restart unless-stopped jeonhaeseung/ness-server-prod:main | ||
docker run -d --name backend-server -p 80:8080 --restart unless-stopped jeonhaeseung/ness-server-prod:main | ||
docker network connect ness_network backend-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters