배포 추가 세팅
This commit is contained in:
		
							
								
								
									
										25
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										25
									
								
								Dockerfile
									
									
									
									
									
								
							@@ -1,25 +0,0 @@
 | 
				
			|||||||
# ./my-spring-app/Dockerfile
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# 공식 OpenJDK 이미지를 기반으로 사용
 | 
					 | 
				
			||||||
FROM openjdk:17-jdk-slim
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# 컨테이너의 작업 디렉터리를 설정
 | 
					 | 
				
			||||||
WORKDIR /app
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Gradle Wrapper와 빌드 파일을 컨테이너에 복사
 | 
					 | 
				
			||||||
COPY gradlew .
 | 
					 | 
				
			||||||
COPY gradle ./gradle
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# 프로젝트 설정 파일들을 복사
 | 
					 | 
				
			||||||
COPY build.gradle .
 | 
					 | 
				
			||||||
COPY settings.gradle .
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# 의존성을 미리 다운로드
 | 
					 | 
				
			||||||
RUN ./gradlew dependencies
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# 소스 파일들을 복사
 | 
					 | 
				
			||||||
COPY src ./src
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Gradle Wrapper를 사용하여 애플리케이션을 실행
 | 
					 | 
				
			||||||
# 이 명령어는 docker-compose.yml에서 개발용 명령으로 덮어쓸 것입니다.
 | 
					 | 
				
			||||||
CMD ["./gradlew", "bootRun"]
 | 
					 | 
				
			||||||
@@ -45,6 +45,8 @@ dependencies {
 | 
				
			|||||||
	// MyBatis
 | 
						// MyBatis
 | 
				
			||||||
	implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.3'
 | 
						implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.3'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						implementation 'org.springframework.boot:spring-boot-starter-actuator'
 | 
				
			||||||
 | 
						
 | 
				
			||||||
	// jwt
 | 
						// jwt
 | 
				
			||||||
	implementation 'io.jsonwebtoken:jjwt-api:0.12.5'
 | 
						implementation 'io.jsonwebtoken:jjwt-api:0.12.5'
 | 
				
			||||||
	runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.5'
 | 
						runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.5'
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,6 +3,11 @@
 | 
				
			|||||||
# ========================================
 | 
					# ========================================
 | 
				
			||||||
server.port=8080
 | 
					server.port=8080
 | 
				
			||||||
server.servlet.context-path=/service
 | 
					server.servlet.context-path=/service
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					management.endpoint.health.probes.enabled=true
 | 
				
			||||||
 | 
					management.health.livenessstate.enabled=true
 | 
				
			||||||
 | 
					management.health.readinessstate.enabled=true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
spring.application.name=bio_backend
 | 
					spring.application.name=bio_backend
 | 
				
			||||||
spring.output.ansi.enabled=always
 | 
					spring.output.ansi.enabled=always
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -114,7 +119,7 @@ springdoc.default-consumes-media-type=application/json
 | 
				
			|||||||
# ========================================
 | 
					# ========================================
 | 
				
			||||||
# 보안 설정 - 허용할 경로
 | 
					# 보안 설정 - 허용할 경로
 | 
				
			||||||
# ========================================
 | 
					# ========================================
 | 
				
			||||||
security.permit-all-paths=/login,/members/register,/swagger-ui/**,/swagger-ui.html,/swagger-ui/index.html,/api-docs,/api-docs/**,/v3/api-docs,/v3/api-docs/**,/ws/**
 | 
					security.permit-all-paths=/login,/members/register,/swagger-ui/**,/swagger-ui.html,/swagger-ui/index.html,/api-docs,/api-docs/**,/v3/api-docs,/v3/api-docs/**,/ws/**,/actuator/health/**
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# 파일 업로드 설정
 | 
					# 파일 업로드 설정
 | 
				
			||||||
# ========================================
 | 
					# ========================================
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user