Skip to content
Merged
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
# 2. ๋ฆด๋ฆฌ์Šค : main/develop ๋ธŒ๋žœ์น˜๋กœ Push๋  ๋•Œ๋งŒ ์‹คํ–‰
makeTagAndRelease:
name: Create Tag and Release
if: github.event_name == 'push'
# if: github.event_name == 'push'
needs: backend-ci
runs-on: ubuntu-latest
permissions:
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
# 3. ๋นŒ๋“œ ๋ฐ ๋ฐฐํฌ: main/develop ๋ธŒ๋žœ์น˜๋กœ Push๋  ๋•Œ๋งŒ ์‹คํ–‰
buildImageAndPush:
name: ๋„์ปค ์ด๋ฏธ์ง€ ๋นŒ๋“œ์™€ ํ‘ธ์‹œ
if: github.event_name == 'push'
# if: github.event_name == 'push'
needs: makeTagAndRelease
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -149,4 +149,4 @@ jobs:
no-cache: true
tags: |
ghcr.io/${{ env.OWNER_LC }}/catch-course:${{ needs.makeTagAndRelease.outputs.tag_name }}
ghcr.io/${{ env.OWNER_LC }}/catch-course:latest
ghcr.io/${{ env.OWNER_LC }}/catch-course:latest
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ COPY --from=builder /app/build/libs/*-SNAPSHOT.jar app.jar
# 8080 ํฌํŠธ๋ฅผ ์™ธ๋ถ€์— ๋…ธ์ถœ
EXPOSE 8080
# "java -jar app.jar" ๋ช…๋ น์–ด๋กœ Spring Boot ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ์‹คํ–‰
ENTRYPOINT ["java", "-jar", "app.jar"]
ENTRYPOINT ["java", "-jar", "app.jar"]
20 changes: 19 additions & 1 deletion backend/docker-compose-prod.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
services:
# Spring Boot ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ์„œ๋น„์Šค ์ถ”๊ฐ€
app-prod:
image: ghcr.io/wonseokyoon/catch-course:latest
container_name: app-prod
restart: always
depends_on:
- mysql-db-prod
- redis-prod
- kafka-prod
ports:
- "8080:8080"
networks:
- prod-network
environment:
- SPRING_PROFILES_ACTIVE=prod
- DB_USERNAME=${DB_USERNAME}
- DB_PASSWORD=${DB_PASSWORD}

mysql-db-prod:
image: mysql:8.0
container_name: mysql-db-prod
Expand Down Expand Up @@ -71,4 +89,4 @@ networks:
driver: bridge

volumes:
mysql_prod_data:
mysql_prod_data:
Loading