
Docker로 Mysql 사용해 NestJS 프로젝트와 연결하기
🐳 Mysql Docker Container 생성하기 먼저 mysql Official Image에서 사용법을 살펴보자 docker run --name {Container name} -e MYSQL_ROOT_PASSWORD={your password} -p 3306:3306 -d mysql:tag 1. --name : 컨테이너 이름을 명명한다. 2. MYSQL_ROOT_PASSWORD : 필수적으로 입력해야 하며 root 슈퍼유저의 비밀번호를 설정한다. 이를 이용해서 초기에 데이터베이스에 접근할 수 있다 ! MYSQL_ROOT_PASSWORD This variable is mandatory and specifies the password that will be set for the MySQL root su..