Inicializar el Proyecto en Spring Initializr:
Abrir el Proyecto en IntelliJ:
Crear docker-compose.yml en Build.gradle: yaml version: "3"
services: db: image: mysql:8.0 restart: always environment: MYSQL_DATABASE: 'employees' MYSQL_USER: 'test' MYSQL_PASSWORD: 'test' MYSQL_ROOT_PASSWORD: 'test' ports:
redis: image: redis:7.0.7 ports:
Configurar application.properties: properties spring.application.name=lab2 spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
Levantar los Servicios con Docker Compose:
Cargar Datos en el Contenedor MySQL: