Skip to content

Commit

Permalink
Merge pull request #48 from KU-Taverse/fix/deploy
Browse files Browse the repository at this point in the history
fix: deploy
  • Loading branch information
david-parkk committed Sep 7, 2024
2 parents 4c1ce20 + 36243e9 commit a7572cf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
sudo docker-compose stop
sudo docker rm $(sudo docker ps -a -q)
sudo docker rmi ${{ secrets.DOCKER_REPO }}
sudo docker rmi ${{ sudo docker images -q }}
sudo docker pull ${{ secrets.DOCKER_REPO }}
sudo docker-compose up --build -d
Expand Down
5 changes: 4 additions & 1 deletion infra/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ services:
- mysql-data:/var/lib/mysql

springbootapp:
restart: on-failure
image: ji0513ji/game-server:latest
# build:
# context: .
Expand All @@ -26,7 +27,9 @@ services:
- redis
- mysql
environment:
- SPRING_PROFILES_ACTIVE=prodDB
SPRING_PROFILES_ACTIVE: prodDB
SPRING_DATA_MONGODB_URI: ${MONGODB_URL}
SPRING_R2DBC_PASSWORD: 12345678

volumes:
mysql-data:
16 changes: 1 addition & 15 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,10 @@ spring:
config:
activate:
on-profile: "localDB"
data:
redis:
host: localhost
port: 6379
password:
timeout: 5000


---

spring:
config:
activate:
on-profile: "prodDB"

data:
redis:
host: redis
port: 6379
password:
timeout: 5000
on-profile: "prodDB"

0 comments on commit a7572cf

Please sign in to comment.