-
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.
#173 [ENV] : CI/CD 파이프라인 개선 - Docker 통합 및 Docker Compose 도입, Gradle 캐싱 (
#174) * #173 env: 도커 파일 수정 - 자바 버전 17로 업그레이드 - 포트 9010으로 설정 * #173 env: CI/CD 파이프라인 개선: Gradle 캐싱 추가 및 Docker 이미지 빌드/배포로 전환 - Gradle 캐싱을 통해 빌드 시간 최적화 - Docker Hub에 이미지 빌드 및 푸시 스크립트 작성 - EC2 환경에서 Docker Compose로 자동 배포 적용 * #173 chore: ci/cd 필요없는 트리거 삭제 * #173 chore: 도커 컴포즈 파일 추가
- Loading branch information
Showing
5 changed files
with
113 additions
and
69 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
FROM openjdk:11 | ||
FROM openjdk:17 | ||
EXPOSE 9010 | ||
ARG JAR_FILE=./build/libs/TogetUp-0.0.1-SNAPSHOT.jar | ||
COPY ${JAR_FILE} TogetUp.jar | ||
ENTRYPOINT ["java","-jar","TogetUp.jar"] | ||
ENTRYPOINT ["java","-jar","TogetUp.jar"] |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
version: '3.8' | ||
|
||
services: | ||
togetup-server: | ||
image: togetupdev/togetupdev | ||
ports: | ||
- "9010:9010" | ||
expose: | ||
- "9010" | ||
restart: always | ||
networks: | ||
- server-connection | ||
volumes: | ||
- /home/ubuntu/app/src/main/resources:/app/src/main/resources | ||
networks: | ||
server-connection: | ||
driver: bridge | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
version: '3.8' | ||
|
||
services: | ||
togetup-server: | ||
image: togetupdev/togetupprod | ||
ports: | ||
- "9010:9010" | ||
expose: | ||
- "9010" | ||
restart: always | ||
networks: | ||
- server-connection | ||
volumes: | ||
- /home/ubuntu/app/src/main/resources:/app/src/main/resources | ||
|
||
nginx: | ||
image: nginx:latest | ||
container_name: nginx | ||
ports: | ||
- "80:80" | ||
- "443:443" | ||
volumes: | ||
- /etc/nginx/nginx.conf:/etc/nginx/nginx.conf | ||
- /etc/nginx/sites-available:/etc/nginx/sites-available | ||
- /etc/nginx/sites-enabled:/etc/nginx/sites-enabled | ||
- /etc/letsencrypt:/etc/letsencrypt | ||
- /var/www/certbot:/var/www/certbot | ||
networks: | ||
- server-connection | ||
depends_on: | ||
- togetup-server | ||
restart: always | ||
|
||
networks: | ||
server-connection: | ||
driver: bridge |