File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ services:
77 ports : ["8080:8080"]
88
99 # t2.micro 안전 제한
10- cpus : " 0.20 "
11- mem_limit : " 600m "
10+ cpus : " 0.25 "
11+ mem_limit : " 512m "
1212
1313 # 런타임에 생성한 RAM env 파일을 컨테이너로 그대로 주입
1414 env_file :
@@ -25,3 +25,28 @@ services:
2525 -XX:ReservedCodeCacheSize=48m
2626 -XX:+UseSerialGC
2727 -XX:+ExitOnOutOfMemoryError
28+
29+ depends_on :
30+ - postgres
31+
32+ postgres :
33+ image : postgres:17
34+ container_name : saerok-postgres-dev
35+ restart : unless-stopped
36+ stop_grace_period : 15s
37+
38+ # 로컬 개발/디버깅도 필요하면 열어두고, 진짜 막고 싶으면 나중에 빼면 됨
39+ ports :
40+ - " 5432:5432"
41+
42+ environment :
43+ POSTGRES_DB : saerok
44+ POSTGRES_USER : ${DB_USERNAME}
45+ POSTGRES_PASSWORD : ${DB_PASSWORD}
46+
47+ volumes :
48+ - ./postgres-data:/var/lib/postgresql/data
49+
50+ # t2.micro 고려한 소박한 리소스
51+ cpus : " 0.25"
52+ mem_limit : " 256m"
You can’t perform that action at this time.
0 commit comments