DB를 MySQL에서 PostgreSQL로 전면 전환

- Sequelize dialect를 postgres로 변경, mysql2 대신 pg/pg-hstore 사용
- docker-compose: postgres:16-alpine + pg_isready healthcheck, 호스트 포트 5442
- 환경변수 MYSQL_PORT -> DB_PORT로 통일, .env.example 갱신

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-19 14:59:37 +09:00
parent e91e32c6fa
commit a45cb39a57
7 changed files with 190 additions and 146 deletions
+3 -3
View File
@@ -4,10 +4,10 @@
# 도커 배포 시에는 이 파일이 아니라 루트 .env 가 사용됩니다 (docker-compose 참고).
# ============================================================
# MySQL (로컬 개발 시 docker-compose의 mysql을 쓰면 host는 localhost, 포트는 3316)
MYSQL_PORT=3306
# PostgreSQL (로컬 개발 시 docker-compose의 postgres를 쓰면 host는 localhost, 포트는 5442)
DB_PORT=5432
DB_HOST=localhost
DB_USER=root
DB_USER=postgres
DB_PASSWORD=
DB_NAME=report_db