-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into #10-auth-service
- Loading branch information
Showing
8 changed files
with
49 additions
and
21 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
name: Feature Template | ||
about: 기능 추가 이슈 템플릿 | ||
title: '' | ||
title: '[feat] ' | ||
labels: '' | ||
assignees: '' | ||
|
||
|
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,16 +1,15 @@ | ||
## #️⃣ 연관된 이슈 | ||
#이슈번호 | ||
|
||
- [ ] # | ||
|
||
|
||
## 📝 작업 내용 | ||
이번 PR에서 작업한 내용을 간략히 설명해주세요 | ||
- [ ] | ||
|
||
### 스크린샷 (선택) | ||
|
||
### 스크린샷 (선택) | ||
|
||
|
||
## 💬 리뷰 요구사항(선택) | ||
리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해주세요 | ||
|
||
ex) 메서드 XXX의 이름을 더 잘 짓고 싶은데 혹시 좋은 명칭이 있을까요? | ||
> |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
# 스크립트 실행 시 발생할 수 있는 오류에 대해 즉시 스크립트를 중단 | ||
set -e | ||
|
||
# 전체 컨테이너 재시작 | ||
############################################ | ||
echo "<< 전체 컨테이너 삭제 >>" | ||
sudo docker compose down | ||
|
||
echo "<< 전체 이미지 삭제 >>" | ||
sudo docker rmi -f $(sudo docker images -q) | ||
|
||
echo "<< spring app 빌드 >>" | ||
sudo chmod +x gradlew | ||
sudo ./gradlew build | ||
|
||
echo "<< 전체 재배포 >>" | ||
sudo docker compose up -d | ||
|
||
echo "<< 배포 성공 !! >>" |
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,3 @@ | ||
version: '3.8' | ||
services: | ||
spring-service: | ||
env_file: | ||
|
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,21 +1,28 @@ | ||
server: | ||
port: 8080 | ||
address: 0.0.0.0 | ||
|
||
spring: | ||
application: | ||
name: backend | ||
|
||
datasource: | ||
url: ${DB_IP}+${DB_SCHEMA}+${DB_SETTINGS} | ||
url: ${DB_URL} | ||
username: ${DB_USERNAME} | ||
password: ${DB_PASSWORD} | ||
driver-class-name: com.mysql.cj.jdbc.Driver | ||
|
||
jpa: | ||
hibernate: | ||
ddl-auto: create | ||
ddl-auto: create # entity 기반 스키마 생성 | ||
|
||
properties: | ||
hibernate: | ||
dialect: org.hibernate.dialect.MySQL8Dialect | ||
format_sql: true | ||
open-in-view: false | ||
defer-datasource-initialization: true # ddl-auto 실행 후 data.sql 로 데이터 삽입 | ||
|
||
flyway: | ||
enabled: true | ||
baseline-on-migrate: true | ||
sql: #data.sql 의 DDL 실행 | ||
init: | ||
mode: always |
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,3 @@ | ||
insert into user (login_id, password, sex, birth_date, email, phone, reg_date) | ||
values ('user1', 'useruser1!', '1', '1990-01-01', '[email protected]', '010-1111-1111', '2024-06-10'), | ||
('user2', 'useruser2!', '2', '2000-03-16', '[email protected]', '010-2222-2222', '2024-07-22'); |