Skip to content

Commit

Permalink
feat : dokcer-compose 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
sangminee committed Nov 1, 2023
1 parent 8d0d289 commit 8d236a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ jobs:
sudo docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
sudo docker rm -f $(sudo docker ps -qa)
sudo docker-compose -f /path/on/ec2/docker-compose.yml up -d
sudo docker pull ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPO }}
sudo docker run -d -p 8081:8081 ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPO }}:latest
13 changes: 0 additions & 13 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,6 @@ services:
- "--character-set-server=utf8mb4"
- "--collation-server=utf8mb4_unicode_ci"

application:
container_name: springboot-test
build: .
ports:
- "8081:8081"
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://database-2.cksxigummbi6.ap-northeast-2.rds.amazonaws.com:3306/icedb?useSSL=false&allowPublicKeyRetrieval=true
SPRING_DATASOURCE_USERNAME: admin
SPRING_DATASOURCE_PASSWORD: admin1234
SPRING_PROFILES_ACTIVE: prod
depends_on:
- database

redis:
image: redis
container_name: token-redis
Expand Down

0 comments on commit 8d236a8

Please sign in to comment.