Skip to content

Commit 38c986c

Browse files
committed
chore: set docker limit
1 parent 7628894 commit 38c986c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Step 1: OpenJDK 17 기반 이미지로 시작
2-
FROM eclipse-temurin:21-jdk-jammy as build
2+
FROM amazoncorretto:21-alpine-jdk as build
33

44
# Step 2: Spring Boot 애플리케이션을 위한 작업 디렉토리 설정
55
WORKDIR /app

docker-compose.tpl.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ services:
1313
command: ["java", "-jar", "/app/app.jar", "--spring.profiles.active=prod"]
1414
networks:
1515
- mysql-network
16+
mem_limit: 500m
17+
cpus: 0.4
1618

1719
nginx:
1820
image: lkh8033/nextlevel-nginx:latest
@@ -26,6 +28,8 @@ services:
2628
- springboot
2729
networks:
2830
- mysql-network
31+
mem_limit: 128m
32+
cpus: 0.2
2933

3034
networks:
3135
mysql-network:

0 commit comments

Comments
 (0)