traeon/backend/src/config/index.js
caadiq d02bc5f738 feat: 백엔드 초기 세팅 및 DB 테이블 생성
- Fastify 5 앱 구성 (fromis_9 패턴)
- MariaDB 연결 플러그인 및 자동 테이블 초기화
- carriers, parcels, tracking_events 테이블 생성
- 기본 택배사 8개 데이터 삽입
- Docker Compose에 백엔드 서비스 추가

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 15:05:02 +09:00

15 lines
392 B
JavaScript

export default {
server: {
port: parseInt(process.env.PORT) || 80,
host: '0.0.0.0',
},
db: {
host: process.env.DB_HOST || 'mariadb',
port: parseInt(process.env.DB_PORT) || 3306,
user: process.env.DB_USER || 'traeon',
password: process.env.DB_PASSWORD,
database: process.env.DB_NAME || 'traeon',
connectionLimit: 10,
waitForConnections: true,
},
};