sudo apt-get remove --purge mysql*
sudo rm -rf /etc/mysql /var/lib/mysql
sudo apt-get autoremove
sudo apt-get autoclean
dpkg -l | grep mysql
version: '3'
services:
mysql:
image: mysql:8.0
container_name: mysql
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: ${database명}
MYSQL_ROOT_PASSWORD: ${root 비밀번호}
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
volumes:
- ${볼륨 위치}:/var/lib/mysql