Docker (1) 썸네일형 리스트형 MariaDB 사용하기 1. 볼륨 폴더 생성 mkdir -p /home/ubuntu/volumes/mariadb/data cd /home/ubuntu/volumes/mariadb 2. docker compose 파일 생성 vi docker-compose.yml version: '3.1' networks: db-connection: driver: bridge services: db: container_name: db image: mariadb:10.8.2-rc restart: always environment: MARIADB_ROOT_PASSWORD: 1234 ports: - 3306:3306 volumes: - /home/ubuntu/volumes/mariadb/data:/var/lib/mysql networks: - db-c.. 이전 1 다음