Skip to content

Commit

Permalink
[#23] docker-compose.yaml 수정 6
Browse files Browse the repository at this point in the history
  • Loading branch information
chaiminwoo0223 committed Jun 10, 2024
1 parent 6f1b539 commit 7686ff6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
16 changes: 11 additions & 5 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
version: '3.8'

services:
server:
build:
Expand All @@ -7,7 +9,7 @@ services:
container_name: spring-boot-app
restart: on-failure
environment:
TZ: Asia/Seoul
JAVA_OPTS: "-Xms2048m -Xmx4096m" # JVM 힙 메모리 크기 설정
DB_JDBC_URL: ${DB_JDBC_URL}
DB_JDBC_USERNAME: ${DB_JDBC_USERNAME}
DB_JDBC_PASSWORD: ${DB_JDBC_PASSWORD}
Expand All @@ -25,12 +27,18 @@ services:
- "8080:8080"
networks:
- albeobsa-network
deploy:
resources:
limits:
memory: 8192M # 컨테이너에 할당된 최대 메모리
cpus: '2.0'
reservations:
memory: 4096M # 컨테이너에 예약된 메모리
cpus: '1.0'

nginx:
image: nginx:latest
restart: always
environment:
TZ: Asia/Seoul
volumes:
- ./conf/nginx.conf:/etc/nginx/nginx.conf
- ./data/certbot/conf:/etc/letsencrypt
Expand All @@ -48,8 +56,6 @@ services:
certbot:
image: certbot/certbot
restart: unless-stopped
environment:
TZ: Asia/Seoul
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/skhu/jijijig/config/SchedulerConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class SchedulerConfig {
@Bean
public ThreadPoolTaskScheduler taskScheduler() {
ThreadPoolTaskScheduler scheduler = new ThreadPoolTaskScheduler();
scheduler.setPoolSize(20); // 스레드 풀 크기 설정
scheduler.setPoolSize(20);
scheduler.setThreadNamePrefix("scheduled-task-");
scheduler.initialize();
return scheduler;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spring:
jpa:
database: mysql
hibernate:
ddl-auto: create
ddl-auto: update
show-sql: true
properties:
hibernate:
Expand Down

0 comments on commit 7686ff6

Please sign in to comment.